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
|
#!/usr/bin/make -f
# This file is PUBLIC DOMAIN. © 2001,2003 Jeff Bailey, Jordi Mallach.
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
RUNTESTFLAGS = -v -v -v --debug
endif
DEB_CONFIGURE_USER_FLAGS := \
--with-lispdir=\$${prefix}/share/emacs/site-lisp \
--enable-virtual-domains --enable-mh-utils \
--with-gnutls --with-gdbm --with-gssapi --with-gsasl \
--with-mysql --disable-rpath
DEB_MAKE_CHECK_TARGET = check RUNTESTFLAGS="$(RUNTESTFLAGS)"
build/mailutils-doc::
$(DEB_MAKE_INVOKE) html
clean::
rm -f *.1 *.8
install/mailutils::
# These binaries conflict with elm-me. We need to rename them, as
# we're using alternatives for them.
cd debian/tmp; \
for i in dotlock frm from messages movemail readmsg; do \
mv usr/bin/$$i usr/bin/$$i.mailutils; \
done
install -d -m 755 $(CURDIR)/debian/tmp/etc
install -m 644 -p $(CURDIR)/debian/mail.rc $(CURDIR)/debian/tmp/etc/mail.rc
# Generate manpages, but remove the s[ug]id bits from binaries
# so LD_LIBRARY_PATH works.
chmod 755 $(CURDIR)/debian/tmp/usr/bin/dotlock.mailutils
sh debian/mangen.sh $(CURDIR)/debian/tmp/usr
# Restore correct perms to the binaries that need it.
chmod 2755 $(CURDIR)/debian/tmp/usr/bin/dotlock.mailutils
DEB_FIXPERMS_EXCLUDE = dotlock.mailutils
DEB_INSTALL_CHANGELOGS_ALL :=
DEB_INSTALL_CHANGELOGS_mailutils-doc = ChangeLog
DEB_INSTALL_DOCS_mailutils-doc = AUTHORS NEWS README THANKS TODO \
doc/texinfo/mailutils.html
DEB_INSTALL_DOCS_mailutils-mh = mh/README mh/TODO
DEB_SHLIBDEPS_INCLUDE := $(CURDIR)/debian/libmailutils0/usr/lib
|