diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-01-25 03:57:54 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-01-25 03:57:54 +0800 |
commit | 411a8f78ec69049c90abd407953278633eaba7e0 (patch) | |
tree | 1b72caebf884492ff0e0440e24addfb1a54cf083 /mail/sendmail | |
parent | 2deaa39599eddc5d4c814b68de90c9d82538d4b6 (diff) | |
download | freebsd-ports-gnome-411a8f78ec69049c90abd407953278633eaba7e0.tar.gz freebsd-ports-gnome-411a8f78ec69049c90abd407953278633eaba7e0.tar.zst freebsd-ports-gnome-411a8f78ec69049c90abd407953278633eaba7e0.zip |
- drop old rc.d scripts
Diffstat (limited to 'mail/sendmail')
-rw-r--r-- | mail/sendmail/Makefile | 13 | ||||
-rw-r--r-- | mail/sendmail/files/sendmail.sh | 66 | ||||
-rw-r--r-- | mail/sendmail/files/sm-client.sh | 31 | ||||
-rw-r--r-- | mail/sendmail/pkg-plist | 2 |
4 files changed, 0 insertions, 112 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index 867791513acb..2b7a1508b23c 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -146,9 +146,6 @@ USE_OPENSSL= yes .if ! exists(${DESTDIR}/etc/mail/mailer.conf) PREFIX?= /usr MANPREFIX?= /usr/share -PLIST_SUB+= ETCPORT="@comment " -.else -PLIST_SUB+= ETCPORT="" .endif .if !defined(SENDMAIL_WITHOUT_MILTER) @@ -169,10 +166,6 @@ SED_SCRIPT+= -e "s;-DNIS ;;" .endif post-patch: - @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sm-client.sh \ - > ${WRKSRC}/sm-client.sh - @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sendmail.sh \ - > ${WRKSRC}/sendmail.sh @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \ -e "s=%%LOCALBASE%%=${LOCALBASE}=g" \ -e "s=%%PORTSDIR%%=${PORTSDIR}=g" \ @@ -303,12 +296,6 @@ post-install: ${LN} -sf libmilter.so.${MILTER_SOVER} ${PREFIX}/lib/libmilter.so .endif .endif -.if exists(${DESTDIR}/etc/mail/mailer.conf) - ${INSTALL_SCRIPT} ${WRKSRC}/sm-client.sh \ - ${LOCALBASE}/etc/rc.d/sm-client.sh.sample - ${INSTALL_SCRIPT} ${WRKSRC}/sendmail.sh \ - ${LOCALBASE}/etc/rc.d/sendmail.sh.sample -.endif ${CHOWN} smmsp:smmsp /var/spool/clientmqueue ${CHMOD} 770 /var/spool/clientmqueue .for i in ${MAN8} diff --git a/mail/sendmail/files/sendmail.sh b/mail/sendmail/files/sendmail.sh deleted file mode 100644 index bafd58a6ab55..000000000000 --- a/mail/sendmail/files/sendmail.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -if ! test -x %%PREFIX%%/sbin/sendmail -then - exit 0 -fi -# -case "$1" in -start) - # If there is a global system configuration file, suck it in. - # - if [ -r /etc/defaults/rc.conf ]; then - . /etc/defaults/rc.conf - source_rc_confs - elif [ -r /etc/rc.conf ]; then - . /etc/rc.conf - fi - - # Flags to sendmail (as a server) - sendmail_flags="${sendmail_flags--L sm-mta -bd -q30m}" - # Flags for sendmail_msp_queue daemon. - sendmail_msp_queue_flags=" - ${sendmail_msp_queue_flags--L sm-msp-queue -Ac -q30m}" - # - %%PREFIX%%/sbin/sendmail ${sendmail_flags} && - echo -n ' sendmail' - %%PREFIX%%/sbin/sendmail ${sendmail_msp_queue_flags} && - echo -n ' sm-msp-queue' - ;; -stop) - if test -e /var/run/sendmail.pid - then - kill `head -1 /var/run/sendmail.pid` - rm -f /var/run/sendmail.pid - else - echo "ERROR: pidfile /var/run/sendmail.pid does not exist." - fi - if test -e /var/spool/clientmqueue/sm-client.pid - then - kill `head -1 /var/spool/clientmqueue/sm-client.pid` - rm -f /var/spool/clientmqueue/sm-client.pid - else - echo "ERROR: pidfile /var/spool/clientmqueue/sm-client.pid does not exist." - fi - ;; -restart) - if test -e /var/run/sendmail.pid - then - kill -1 `head -1 /var/run/sendmail.pid` - else - echo "ERROR: pidfile /var/run/sendmail.pid does not exist." - fi - if test -e /var/spool/clientmqueue/sm-client.pid - then - kill -1 `head -1 /var/spool/clientmqueue/sm-client.pid` - else - echo "ERROR: pidfile /var/spool/clientmqueue/sm-client.pid does not exist." - fi - ;; -*) - echo "Usage: ${0##*/}: { start | stop | restart }" >&2 - exit 64 - ;; -esac diff --git a/mail/sendmail/files/sm-client.sh b/mail/sendmail/files/sm-client.sh deleted file mode 100644 index 4e9570eec4e7..000000000000 --- a/mail/sendmail/files/sm-client.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/mail/sendmail/files/Attic/sm-client.sh,v 1.4 2003-12-04 03:24:09 dinoex Exp $ -# -if ! test -x %%PREFIX%%/sbin/sendmail -then - exit 0 -fi -case "$1" in -start) - %%PREFIX%%/sbin/sendmail -L sm-msp-queue -Ac -q30m - echo -n ' sm-msp-queue' - ;; -stop) - if test -e /var/spool/clientmqueue/sm-client.pid - then - kill `head -1 /var/spool/clientmqueue/sm-client.pid` - rm -f /var/spool/clientmqueue/sm-client.pid - fi - ;; -restart) - if test -e /var/spool/clientmqueue/sm-client.pid - then - kill -1 `head -1 /var/spool/clientmqueue/sm-client.pid` - fi - ;; -*) - echo "Usage: ${0##*/}: { start | stop | restart }" >&2 - exit 64 - ;; -esac diff --git a/mail/sendmail/pkg-plist b/mail/sendmail/pkg-plist index 9c78a9a982ef..d87478e9ead0 100644 --- a/mail/sendmail/pkg-plist +++ b/mail/sendmail/pkg-plist @@ -11,8 +11,6 @@ bin/newaliases bin/purgestat bin/rmail bin/vacation -%%ETCPORT%%etc/rc.d/sm-client.sh.sample -%%ETCPORT%%etc/rc.d/sendmail.sh.sample libexec/mail.local libexec/smrsh sbin/editmap |