diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2002-02-25 20:51:33 +0800 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2002-02-25 20:51:33 +0800 |
commit | 8f2b1e3b3ef308179bc162b675985482231b190b (patch) | |
tree | 5fb28af768a032019a42898423383f5a139a697f /mail/exim-old | |
parent | 58b5051cf2ed57697960e88ed6ed893e47ba77c9 (diff) | |
download | freebsd-ports-gnome-8f2b1e3b3ef308179bc162b675985482231b190b.tar.gz freebsd-ports-gnome-8f2b1e3b3ef308179bc162b675985482231b190b.tar.zst freebsd-ports-gnome-8f2b1e3b3ef308179bc162b675985482231b190b.zip |
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>
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 |