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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --with autoreconf
override_dh_autoreconf:
[ ! -x "./autogen.sh" ] || ./autogen.sh
intltoolize --automake --copy --force
dh_autoreconf
# --enable-werror will cause FTBFS on GNU Hurd:
# src/vfs/fish/fish.c: In function 'fish_fh_open':
# fish.c:1517:5: error: 'and' of mutually exclusive equal-tests is always 0 [-Werror]
#
# AWK="awk" is inheritance of 4.7.* series, see http://bugs.debian.org/499723
# might be still necessary for extfs scripts
override_dh_auto_configure:
# Ensure reproducible timestamp on mcedit manpage, which is
# patched from debian/patches
touch -d@$(SOURCE_DATE_EPOCH) doc/man/mcedit.1.in
dh_auto_configure -- AWK="awk" X11_WWW="x-www-browser" \
--libexecdir='/usr/lib' \
--with-x \
--with-screen=slang \
--disable-rpath \
--disable-static \
--disable-silent-rules \
--enable-aspell \
--enable-vfs-sftp \
--enable-vfs-undelfs \
--enable-tests
# --enable-vfs-smb=yes
override_dh_auto_build:
# update translations
cd po && $(MAKE) update-po
dh_auto_build
override_dh_auto_test:
## allow test(s) failure
-dh_auto_test
execute_before_dh_auto_install:
## make thin_skins:
mkdir -v -p debian/tmp/skins
cp misc/skins/modar* debian/tmp/skins/
debian/skins/mc_skin2thin.pl debian/tmp/skins
$(RM) -rf debian/tmp/skins
override_dh_auto_install:
dh_auto_install --max-parallel=1
override_dh_fixperms:
-chmod -c 755 debian/mc/etc/mc/*.rc
dh_fixperms
# cons.saver has to be sgid tty to access vcsa
chgrp tty debian/mc/usr/lib/mc/cons.saver || true
chmod g+s debian/mc/usr/lib/mc/cons.saver || true
override_dh_installchangelogs:
dh_installchangelogs doc/NEWS
override_dh_strip:
dh_strip --dbgsym-migration='mc-dbg (<< 3:4.8.17~)'
|