diff options
-rw-r--r-- | mail/exim-old/Makefile | 1 | ||||
-rw-r--r-- | mail/exim-old/files/POST-INSTALL-NOTES | 5 | ||||
-rw-r--r-- | mail/exim-old/files/exim.sh.sample | 31 | ||||
-rw-r--r-- | mail/exim-old/pkg-plist | 1 | ||||
-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 |
8 files changed, 76 insertions, 0 deletions
diff --git a/mail/exim-old/Makefile b/mail/exim-old/Makefile index 0867c3ed61e..cc9229cc25e 100644 --- a/mail/exim-old/Makefile +++ b/mail/exim-old/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-old/files/POST-INSTALL-NOTES b/mail/exim-old/files/POST-INSTALL-NOTES index 2505505a6d1..622361aed3a 100644 --- a/mail/exim-old/files/POST-INSTALL-NOTES +++ b/mail/exim-old/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-old/files/exim.sh.sample b/mail/exim-old/files/exim.sh.sample new file mode 100644 index 00000000000..de6fd4dbcdf --- /dev/null +++ b/mail/exim-old/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-old/pkg-plist b/mail/exim-old/pkg-plist index 996ab003b2a..39e6876173a 100644 --- a/mail/exim-old/pkg-plist +++ b/mail/exim-old/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 diff --git a/mail/exim/Makefile b/mail/exim/Makefile index 0867c3ed61e..cc9229cc25e 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 2505505a6d1..622361aed3a 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 00000000000..de6fd4dbcdf --- /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 996ab003b2a..39e6876173a 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 |