summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules34
1 files changed, 16 insertions, 18 deletions
diff --git a/debian/rules b/debian/rules
index dbccafd..22546ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -324,6 +324,12 @@ common-install-indep::
#--------------------------------------------------------------------
# install-indep
#
+ # Correct some paths in upstream documentation
+ sed -i \
+ -e "s?/usr/libexec?${libexecdir}?g" \
+ -e "s?/usr/ucb/vacation?${libexecdir}/vacation.sendmail?g" \
+ -e "s?/usr/adm/sm.bin?${sysconfdir}/mail/smrsh?g" \
+ ${DEB_SRCDIR}/smrsh/README
# sendmail operations guide and other documentation
${INSTALL} -d ${PKG_DOC}/op
$(INSTALL_DATA) ${DEB_SRCDIR}/doc/op/op.ps ${PKG_DOC}/op/
@@ -336,11 +342,7 @@ common-install-indep::
$(INSTALL_DATA) ${DEB_SRCDIR}/sendmail/SECURITY ${PKG_DOC}/sendmail/
$(INSTALL_DATA) ${DEB_SRCDIR}/sendmail/TRACEFLAGS ${PKG_DOC}/sendmail/
$(INSTALL_DATA) ${DEB_SRCDIR}/sendmail/TUNING ${PKG_DOC}/sendmail/
- sed -e "s?/usr/libexec?${libexecdir}?g" \
- -e "s?/usr/ucb/vacation?${libexecdir}/vacation.sendmail?g" \
- -e "s?/usr/adm/sm.bin?/etc/mail/smrsh?g" \
- ${DEB_SRCDIR}/smrsh/README \
- > ${PKG_DOC}/smrsh.README;
+ $(INSTALL_DATA) ${DEB_SRCDIR}/smrsh/README ${PKG_DOC}/smrsh.README
$(INSTALL_DATA) debian/faq.txt ${PKG_DOC}/
${INSTALL} -d ${PKG_DOC}/libmilter/html
$(INSTALL_DATA) ${DEB_SRCDIR}/libmilter/README ${PKG_DOC}/libmilter/README
@@ -386,6 +388,13 @@ common-install-arch::
#--------------------------------------------------------------------
# install-arch
#
+ # Correct some paths in upstream man pages
+ sed -i \
+ -e "s?/usr/adm/sm.bin?${sysconfdir}/mail/smrsh?g" \
+ ${DEB_SRCDIR}/smrsh/smrsh.8
+ sed -i \
+ -e "s?/etc/mail/statistics?${localstatedir}/lib/sendmail/sendmail.st?g" \
+ ${DEB_SRCDIR}/sendmail/sendmail.8
# sendmail install proper... with a little help ;-}
#$(MAKE) install DESTDIR="$(CURDIR)/${PKG_DIR}";
# Finally, install the whole enchilada
@@ -427,25 +436,14 @@ common-install-arch::
${PKG_DIR}${mandir}/man1/mailq.sendmail.1;
mv ${PKG_DIR}${mandir}/man1/newaliases.1 \
${PKG_DIR}${mandir}/man8/newaliases.sendmail.8;
+ mv ${PKG_DIR}${mandir}/man8/sendmail.8 \
+ ${PKG_DIR}${mandir}/man8/sendmail.sendmail.8
# Special handling of vacation - Debian has a seperate package
# with a different version (sigh) keep our copy just in case...
mv ${PKG_DIR}${libexecdir}/vacation \
${PKG_DIR}${libexecdir}/vacation.sendmail; \
mv ${PKG_DIR}${mandir}/man1/vacation.1 \
${PKG_DIR}${mandir}/man1/vacation.sendmail.1; \
- # Correct some paths in upstream man pages
- sed -e "s?/usr/adm/sm.bin?${sysconfdir}/mail/smrsh?g" \
- -e "s?sm.bin?${sysconfdir}/mail/smrsh?g" \
- ${DEB_SRCDIR}/smrsh/smrsh.8 \
- > ${DEB_SRCDIR}/smrsh/smrsh.8.new;
- mv ${DEB_SRCDIR}/smrsh/smrsh.8.new ${DEB_SRCDIR}/smrsh/smrsh.8;
- sed -e "s?/etc/mail/statistics?${localstatedir}/lib/sendmail/sendmail.st?g"\
- ${DEB_SRCDIR}/sendmail/sendmail.8 \
- > ${DEB_SRCDIR}/sendmail/sendmail.8.new;
- mv ${DEB_SRCDIR}/sendmail/sendmail.8.new \
- ${PKG_DIR}${mandir}/man8/sendmail.sendmail.8;
- $(RM) ${DEB_SRCDIR}/sendmail/sendmail.8;
- $(RM) ${PKG_DIR}${mandir}/man8/sendmail.8
# Debian stuff
(cd debian/sensible_mda && \
$(MAKE) -f Makefile install-arch \