1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DATE=$(shell date --date=@$(SOURCE_DATE_EPOCH) '+%d %B %Y')
MANPAGES=debian/man/stenocurl.1 \
debian/man/stenoread.1 \
debian/man/stenographer.1 \
debian/man/stenotype.1 \
debian/man/stenokeys.1
%:
dh $@ --buildsystem=golang --with=golang
%.1: %.1.txt
TZ=UTC LC_ALL=C \
txt2man -d "$(DATE)" \
-s 1 -r "stenographer $(DEB_VERSION_UPSTREAM)" \
-t $(shell basename -a -s.1 $@) \
$< > $@
override_dh_auto_build:
dh_auto_build
dh_auto_build --buildsystem=makefile --sourcedirectory=stenotype
override_dh_auto_test:
cp -r testdata /tmp/stenographer-testdata
dh_auto_test
rm -rf /tmp/stenographer-testdata
override_dh_auto_install:
dh_auto_install -- --no-source
override_dh_installdocs:
dh_installdocs -pstenographer-common
override_dh_installchangelogs:
dh_installchangelogs -pstenographer-common
overide_dh_installexamples:
dh_installexamples -pstenographer-common
override_dh_dwz:
# pass
override_dh_auto_clean:
dh_auto_clean
dh_auto_clean --buildsystem=makefile --sourcedirectory=stenotype
rm -rf $(MANPAGES) stenokeys /tmp/stenographer-testdata
override_dh_installman: $(MANPAGES)
dh_installman
override_dh_install-arch:
dh_install -X/usr/share/gocode/src
mv debian/stenographer/usr/bin debian/stenographer/usr/sbin
override_dh_install-indep:
cp stenokeys.sh stenokeys
dh_install -X/usr/share/gocode/src
install -D -m644 configs/steno.conf \
debian/stenographer-common/etc/stenographer/config
install -D -m644 configs/limits.conf \
debian/stenographer-common/etc/security/limits.d/stenographer.conf
override_dh_installsystemd:
# Do not start stenographer by default.
# The user should start it only after making sure the configuration is
# appropriate for their installation.
dh_installsystemd --no-start --no-enable
|