aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1998-07-28 08:54:06 +0800
committerhoek <hoek@FreeBSD.org>1998-07-28 08:54:06 +0800
commitc8e729e99b3155571918633028d04785ea24c039 (patch)
tree441f2852d7c356c574e5f6df860ed535af8e610b /mail/qmail
parent5dd78ec0e53088aa698b5105130ef1e51a88ceb6 (diff)
downloadfreebsd-ports-gnome-c8e729e99b3155571918633028d04785ea24c039.tar.gz
freebsd-ports-gnome-c8e729e99b3155571918633028d04785ea24c039.tar.zst
freebsd-ports-gnome-c8e729e99b3155571918633028d04785ea24c039.zip
Add a '&' to all bootfiles so they can be used directly as
/usr/local/etc/rc.d/x.sh.
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile20
-rw-r--r--mail/qmail/files/maildir2
2 files changed, 18 insertions, 4 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index af227bb45997..4439543e800d 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -3,7 +3,7 @@
# Date created: 25 May 1998
# Whom: Mario S F Ferreira <lioux@gns.com.br> et al.
#
-# $Id: Makefile,v 1.4 1998/07/25 12:15:37 asami Exp $
+# $Id: Makefile,v 1.5 1998/07/25 21:49:36 hoek Exp $
#
DISTNAME= qmail-1.03
@@ -94,6 +94,8 @@ do-configure:
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-qmail
@${SED} s+@DOCDIR@+${DOCDIR}+g ${FILESDIR}/pkg.PLIST > ${PLIST}
+post-patch: thereal-post-patch
+
do-install:
@# Check again, just in case (ideally should error if not found)
@PKG_PREFIX=${PREFIX} /usr/bin/perl ${PKGDIR}/INSTALL
@@ -128,6 +130,20 @@ do-install:
@${ECHO}
@${SED} s!/usr/local/!${PREFIX}/!g ${PKGDIR}/MESSAGE | /usr/bin/fmt
+.include <bsd.port.mk>
+
+# Ugh... ;-)
+thereal-post-patch:
+.for i in ${BOOTFILES}
+ if [ `dirname $i` != ${FILESDIR} ] ; \
+ then \
+ ${CP} $i.sh $i.sh.orig; \
+ (head -c `expr \`ls -l $i.sh.orig \
+ | ${AWK} '{print $$5}'\` - 1` $i.sh.orig ; ${ECHO} '&') \
+ > $i.sh ; \
+ fi
+.endfor
+
# The users are instructed (in PORT_NOTES) to install ${QUEUE_DIR}/rc
# themselves. Each /var/qmail/ should have its own rc. On many machines,
# /usr/local/ is nfs mounted and /var/qmail/ is local. An individual
@@ -136,5 +152,3 @@ do-install:
# Wouldn't hurt to provide an "enable_qmail" and "disable_sendmail" target
# that do 1) and 2) above and disable the existing sendmail, respectively.
-
-.include <bsd.port.mk>
diff --git a/mail/qmail/files/maildir b/mail/qmail/files/maildir
index 1e7aac8f5628..1992e9fd981b 100644
--- a/mail/qmail/files/maildir
+++ b/mail/qmail/files/maildir
@@ -4,4 +4,4 @@
# Using qmail-local to deliver messages to Maildir format by default
exec env - PATH="@PREFIX@/qmail/bin:$PATH" \
-qmail-start ./Maildir/ splogger qmail
+qmail-start ./Maildir/ splogger qmail &