diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2002-02-25 12:51:33 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2002-02-25 12:51:33 +0000 |
commit | 2515226235aab0e2eb1630fb74cf6d487c5532ce (patch) | |
tree | 0e8f0cab2c130de51c93e67d3e9375568bd08a7d /mail/exim | |
parent | 24eec91e80ae6a078694e642208d61b0ae118fc3 (diff) | |
download | ports-2515226235aab0e2eb1630fb74cf6d487c5532ce.tar.gz ports-2515226235aab0e2eb1630fb74cf6d487c5532ce.zip |
Notes
Diffstat (limited to 'mail/exim')
-rw-r--r-- | mail/exim/Makefile | 1 | ||||
-rw-r--r-- | mail/exim/files/POST-INSTALL-NOTES | 5 | ||||
-rw-r--r-- | mail/exim/files/exim.sh.sample | 31 | ||||
-rw-r--r-- | mail/exim/pkg-plist | 1 |
4 files changed, 38 insertions, 0 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index 0867c3ed61ef..cc9229cc25ee 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -198,6 +198,7 @@ pre-install: @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: + ${INSTALL_SCRIPT} ${FILESDIR}/exim.sh.sample ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/exim ${INSTALL_DATA} ${FILESDIR}/POST-INSTALL-NOTES ${PREFIX}/share/doc/exim diff --git a/mail/exim/files/POST-INSTALL-NOTES b/mail/exim/files/POST-INSTALL-NOTES index 2505505a6d1f..622361aed3a0 100644 --- a/mail/exim/files/POST-INSTALL-NOTES +++ b/mail/exim/files/POST-INSTALL-NOTES @@ -30,6 +30,11 @@ To run Exim instead of sendmail on startup: as appropriate in rc.conf(5). 4) Start exim with appropriate command-line options. +However, if Exim is linked against 3rd-party libraries that are not in +the standard library search path (such as MySQL), then it should be +started with ${PREFIX}/etc/rc.d/exim.sh, after said library support is +enabled through its own startup script. + You may also want to configure newsyslog(8) to rotate Exim log files: /var/log/exim/mainlog mailnull:mail 640 7 * @T00 Z diff --git a/mail/exim/files/exim.sh.sample b/mail/exim/files/exim.sh.sample new file mode 100644 index 000000000000..de6fd4dbcdff --- /dev/null +++ b/mail/exim/files/exim.sh.sample @@ -0,0 +1,31 @@ +#!/bin/sh +# +# This script can be used as an alternative method of starting up Exim. +# Most installations should simply edit /etc/mail/mailer.conf and then +# allow the system startup scripts to start Exim as sendmail. +# +# However, if Exim is linked against 3rd-party libraries that are not in +# the standard library search path (such as MySQL), then it should be +# started here, after said library support is enabled through its own +# startup script. +# +# $Id$ +# +args='-bd -q30m' + +case "$1" in +start) + [ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' e +xim' + ;; +stop) + kill `cat /var/run/exim.pid` && echo -n ' exim' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 + diff --git a/mail/exim/pkg-plist b/mail/exim/pkg-plist index 996ab003b2a9..39e6876173a6 100644 --- a/mail/exim/pkg-plist +++ b/mail/exim/pkg-plist @@ -1,4 +1,5 @@ etc/exim/configure.default +etc/rc.d/exim.sh.sample info/exim_overview.info info/exim.info info/exim_filter.info |