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 74
|
#!/usr/bin/make -f
# debian/rules for nmh. GNU copyright 1998 by Philip Hands.
# inspired by Joey Hess' example from the debhelper package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build:
dh_testdir
RANLIB=: LORDER=echo TSORT=cat ./configure --prefix= \
--bindir='$${prefix}/usr/bin/mh' --sysconfdir='$${prefix}/etc/nmh' \
--libdir='$${prefix}/usr/lib/mh' --mandir='$${prefix}/usr/man' \
--with-editor=/usr/bin/sensible-editor \
--with-pager=/usr/bin/sensible-pager \
--enable-nmh-pop
$(MAKE) CFLAGS="-O2 -g -Wall" LDFLAGS=
touch build
clean:
dh_testdir
dh_testroot
-rm -f build
-make distclean
dh_clean
binary-indep: build
# nothing to do
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
make install prefix=`pwd`/debian/tmp
ln -s folder.1.gz debian/tmp/usr/man/man1/folders.1.gz
ln -s flist.1.gz debian/tmp/usr/man/man1/flists.1.gz
dh_undocumented viamail.1 mhtest.1
dh_installdocs README TODO DIFFERENCES FAQ INSTALL MACHINES \
MAIL.FILTERING ZSH.COMPLETION
dh_installexamples
dh_installchangelogs ChangeLog
dh_strip
dh_compress
dh_fixperms
# override nmh-provided mhn.defaults
cp debian/mhn.defaults debian/tmp/etc/nmh/mhn.defaults
# provide legacy symlinks for mh-e
ln -s /etc/nmh/components debian/tmp/usr/lib/mh/components
ln -s /etc/nmh/replcomps debian/tmp/usr/lib/mh/replcomps
# make inc setgid mail
chown root.mail debian/tmp/usr/bin/mh/inc
chmod g+s debian/tmp/usr/bin/mh/inc
dh_suidregister
chmod g-s debian/tmp/usr/bin/mh/inc
chown root.root debian/tmp/usr/bin/mh/inc
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: clean binary binary-arch binary-indep
|