summaryrefslogtreecommitdiff
path: root/mail/qmail
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>1998-07-28 00:54:06 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>1998-07-28 00:54:06 +0000
commitbce869518294498e96e77e10414375c45f35bc36 (patch)
tree092cc5c286e8273dc368269e42430a2b6f98f9d1 /mail/qmail
parentGuess I'll watch over this. (diff)
Add a '&' to all bootfiles so they can be used directly as
/usr/local/etc/rc.d/x.sh.
Notes
Notes: svn path=/head/; revision=12175
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 &