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-old | |
parent | Update to adzap-20020220 (a.k.a 20/02/2002 palindrome release :-) (diff) |
Cope with the fact that at least one 3rd-party package against which
Exim may be linked (MySQL) uses a startup script to add its library
path to the linker hints.
Explain the problem in POST-INSTALL-NOTES and provide a sample
startup script.
I think such packages should do away with the script and provide
POST-INSTALL-NOTES that encourage the operator to add the library
path to ldconfig_paths in /etc/rc.conf, but provide this work-around
anyway.
Reported by: Oliver Brandmueller <ob@e-Gitt.NET>
Notes
Notes:
svn path=/head/; revision=55230
Diffstat (limited to 'mail/exim-old')
-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 |
4 files changed, 38 insertions, 0 deletions
diff --git a/mail/exim-old/Makefile b/mail/exim-old/Makefile index 0867c3ed61ef..cc9229cc25ee 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 2505505a6d1f..622361aed3a0 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 000000000000..de6fd4dbcdff --- /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 996ab003b2a9..39e6876173a6 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 |