CMDLINE_CPPFLAGS="$(shell $(D_BUILDFLAGS) --get CPPFLAGS) -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" \
CMDLINE_LDFLAGS="$(shell $(D_BUILDFLAGS) --get LDFLAGS)"
-build:
- $(checkdir)
+%:
+ dh $@
+
+override_dh_auto_build:
set -e; for s in $(subdirs_build_arch); do \
dh_auto_build --sourcedirectory=$$s -- all $(makebuildargs); \
done
- touch build
-build-indep: build
-build-arch: build
-clean:
- $(checkdir)
+override_dh_auto_clean:
rm -f build
set -e; for s in $(subdirs_build_arch); do \
$(MAKE) -C $$s -i distclean || \
$(MAKE) -C $$s -f Makefile.in distclean; \
done
rm -rf debian/sv-*
- dh_clean
-binary-prep:
- $(checkdir)
- rm -rf debian/tmp*
+override_dh_auto_install:
# The ownership information will be reset later to root:root in
# the `dpkg-deb` call, so the actual ownership here is of no
# consequence as long as we are allowed to perform the action.
debian/chiark-utils-bin/usr/share/man/man8/trivsoundd.8
rmdir debian/chiark-utils-bin/usr/sbin
+ # We are not installing these. To avoid dh_missing complaining,
+ # lets just remove them (Could also be moved to debian/not-installed)
+ rm -fr debian/tmp/fishdescriptor/usr/lib/python2.7
+ rm -fr debian/tmp/fishdescriptor/usr/lib/python3
+ rm -f debian/tmp/fishdescriptor/usr/bin/fishdescriptor
+
- dh_installchangelogs
- dh_installdocs
- dh_installman
- dh_installexamples
- dh_compress
-
-binary-indep: build binary-prep
- dh_lintian -i
- dh_link -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
-
-binary-arch: build binary-prep
- $(checkdir)
- dh_strip
+override_dh_shlibdeps:
dh_shlibdeps -p chiark-rwbuffer
dh_shlibdeps -p chiark-really
a="$$a -d$$d $$f"; \
done; set -x; \
dh_shlibdeps -p chiark-utils-bin -- $$a
- dh_lintian -a
- dh_link -a
- dh_fixperms -a
- chmod u+s,o-x debian/chiark-really/usr/sbin/really
- dh_installdeb -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
-
-define checkdir
- test -f cprogs/writebuffer.c
-endef
-# Below here is fairly generic really
-binary: binary-indep binary-arch
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-.PHONY: binary binary-arch binary-indep clean
+execute_after_dh_fixperms:
+ chmod u+s,o-x debian/chiark-really/usr/sbin/really