summaryrefslogtreecommitdiff
path: root/mail/milter-regex/pkg-install
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-11-02 06:52:54 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-11-02 06:52:54 +0000
commit9c99ed6527b15918c2fe1ba284d54351e832fd9f (patch)
tree0925341faebbf19c2c6baff70289499ce7a9f9fa /mail/milter-regex/pkg-install
parent- Update to 1.2.2 (diff)
- Add support for rc.d style startup scripts for mail/milter-regex port.
- reset maintainership PR: ports/103114 Submitted by: Derek Marcotte <derekm dot nospam_AT_rogers dot com> Approved by: maintainer (dhartmei)
Notes
Notes: svn path=/head/; revision=176169
Diffstat (limited to 'mail/milter-regex/pkg-install')
-rw-r--r--mail/milter-regex/pkg-install55
1 files changed, 0 insertions, 55 deletions
diff --git a/mail/milter-regex/pkg-install b/mail/milter-regex/pkg-install
deleted file mode 100644
index 1d4ae61441d0..000000000000
--- a/mail/milter-regex/pkg-install
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-set -e
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-PREFIX=${PKG_PREFIX:-/usr/local}
-MAILUSER=mailnull
-SPOOLDIR=/var/spool/milter-regex
-
-do_notice()
-{
- echo
- echo "+---------------"
- echo "| milter-regex has been installed as $PREFIX/libexec/milter-regex."
- echo "| See milter-regex(8) for instructions on how to register the plugin."
- echo "|"
- echo "| To start the plugin automatically on startup, one can use:"
- echo "|"
- echo "| /etc/rc.conf.local"
- echo "| milter_regex=YES"
- echo "|"
- echo "| /etc/rc.local"
- echo "| if [ X\"\${milter_regex}\" == X\"YES\" -a \\"
- echo "| -x $PREFIX/libexec/milter-regex ]; then"
- echo "| echo -n ' milter-regex'"
- echo "| $PREFIX/libexec/milter-regex"
- echo "| fi"
- echo "|"
- echo "+---------------"
- echo
-}
-
-if [ $# -ne 2 ]; then
- echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
- exit 1
-fi
-
-case $2 in
- PRE-INSTALL)
- ;;
- POST-INSTALL)
- if [ ! -d $SPOOLDIR ]; then
- install -d -o $MAILUSER -g daemon -m 0700 $SPOOLDIR
- fi
- do_notice
- ;;
- *)
- echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
- exit 1
- ;;
-esac
-
-exit 0