aboutsummaryrefslogtreecommitdiff
path: root/mail/exim/pkg-install
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-07-17 14:21:13 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-07-17 14:21:13 +0000
commit32ed790ca91dc62b1295df2d61a54e3a21a284a9 (patch)
tree8f7bfc558cb7847081728c7e048014f93c9ae2fa /mail/exim/pkg-install
parentf03644e35f3462e05435e7a752763108725a05ee (diff)
downloadports-32ed790ca91dc62b1295df2d61a54e3a21a284a9.tar.gz
ports-32ed790ca91dc62b1295df2d61a54e3a21a284a9.zip
Notes
Diffstat (limited to 'mail/exim/pkg-install')
-rw-r--r--mail/exim/pkg-install7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/exim/pkg-install b/mail/exim/pkg-install
index 9011e4b69514..2c5fa39eebe0 100644
--- a/mail/exim/pkg-install
+++ b/mail/exim/pkg-install
@@ -12,10 +12,11 @@
#
PKG_PREFIX=${PKG_PREFIX:=%%PREFIX%%}
+PKG_DESTDIR=${PKG_DESTDIR:=}
user=%%EXIM_USER%%
group=%%EXIM_GROUP%%
-logdir=%%LOGDIR%%
+logdir=$PKG_DESTDIR%%LOGDIR%%
if [ "$2" = "PRE-INSTALL" ]; then
if ! /usr/bin/id ${user} > /dev/null; then
@@ -31,7 +32,7 @@ if [ "$2" = "PRE-INSTALL" ]; then
fi
if [ "$2" = "POST-INSTALL" ]; then
- cf=$PKG_PREFIX/etc/exim/configure
+ cf=$PKG_DESTDIR$PKG_PREFIX/etc/exim/configure
if [ -e $cf ]; then
if /usr/bin/grep -q '^[^#]*hostlist.*relay_from_hosts.*=.*127.0.0.1' $cf
then
@@ -49,7 +50,7 @@ if [ "$2" = "POST-INSTALL" ]; then
echo "============================================================"
fi
fi
- if ! /usr/bin/grep -qs "^exim_enable" /etc/rc.conf
+ if ! /usr/bin/grep -qs "^exim_enable" $PKG_DESTDIR/etc/rc.conf
then
echo
echo "Don't forget to add 'exim_enable=\"YES\"' to rc.conf(5)"