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
|
include /usr/share/dpkg/pkg-info.mk
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")
%:
dh $@ --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- --libdir=\$${prefix}/lib
override_dh_auto_install:
dh_auto_install
mkdir -p debian/netgen-lvs/usr/lib/netgen/bin
mv debian/netgen-lvs/usr/bin/netgen debian/netgen-lvs/usr/lib/netgen/bin/netgen
$(RM) -r debian/netgen-lvs/usr/lib/netgen/doc
sed -i 's;^
chmod +x debian/netgen-lvs/usr/lib/netgen/ntk2adl.sh debian/netgen-lvs/usr/lib/netgen/spice
sed -i 's;
override_dh_clean:
dh_clean
$(RM) netgen/tclnetgen.so
$(RM) debian/man/*.1
override_dh_installman:
cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
dh_installman
|