FreeBSD Bugzilla – Attachment 52738 Details for
Bug 79856
[MAINTAINER UPDATE] Update mail/spamd to 3.7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-spamd
patch-spamd (text/plain), 5.25 KB, created by
Xin LI
on 2005-04-13 11:20:26 UTC
(
hide
)
Description:
patch-spamd
Filename:
MIME Type:
Creator:
Xin LI
Created:
2005-04-13 11:20:26 UTC
Size:
5.25 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/mail/spamd/Makefile,v >retrieving revision 1.7 >diff -u -r1.7 Makefile >--- Makefile 12 Oct 2004 10:38:24 -0000 1.7 >+++ Makefile 13 Apr 2005 09:50:02 -0000 >@@ -6,13 +6,13 @@ > # > > PORTNAME= spamd >-PORTVERSION= 3.5 >-PORTREVISION= 2 >+PORTVERSION= 3.7 > CATEGORIES= mail >-MASTER_SITES= http://resources.delphij.net/pf/ >+MASTER_SITES= ${MASTER_SITE_LOCAL} >+MASTER_SITE_SUBDIR= delphij > DISTNAME= ${PORTNAME}_${PORTVERSION} > >-MAINTAINER= delphij@FreeBSD.org.cn >+MAINTAINER= delphij@FreeBSD.org > COMMENT= Traps spammers with a very slow smtp-login and return 4xx error > > USE_BZIP2= yes >@@ -20,11 +20,14 @@ > .include <bsd.port.pre.mk> > > .if ${OSVERSION} < 502117 >-IGNORE= "OpenBSD 3.5 pf/pfctl is necessary for this port to function properly." >+IGNORE= OpenBSD 3.5 pf/pfctl is necessary for this port to function properly. > .else > LOCAL_PFCTL= /sbin/pfctl > .endif > >+USE_RC_SUBR= yes >+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} >+ > USE_REINPLACE= yes > > .if !defined(BATCH) && !defined(PACKAGE_BUILDING) >@@ -35,7 +38,6 @@ > MAN8= spamd.8 spamd-setup.8 spamdb.8 spamlogd.8 > > SAMPLE_SPAMD_CONF= ${PREFIX}/etc/spamd.conf.sample >-SAMPLE_SPAMD_RC= ${PREFIX}/etc/rc.d/pf-spamd.sh > > post-patch: > @${REINPLACE_CMD} -e 's|%%LOCAL_PFCTL%%|${LOCAL_PFCTL}|; \ >@@ -43,6 +45,8 @@ > ${WRKSRC}/spamd-setup/spamd-setup.c > @${REINPLACE_CMD} -e 's|/etc/spamd.conf|${PREFIX}/etc/spamd.conf|' \ > ${WRKSRC}/spamd/spamd.8 ${WRKSRC}/spamd-setup/spamd-setup.8 >+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ >+ ${FILESDIR}/pfspamd.sh > ${WRKDIR}/pfspamd.sh > > pre-su-install: > .if !defined(BATCH) && !defined(PACKAGE_BUILDING) >@@ -59,11 +63,7 @@ > ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/man/man8 > ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/man/man8 > ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/man/man8 >- @if [ ! -f ${SAMPLE_SPAMD_RC} ]; then \ >- ${ECHO_MSG} "Installing ${SAMPLE_SPAMD_RC} startup file."; \ >- ${INSTALL_SCRIPT} ${FILESDIR}/spamd.sh.sample \ >- ${SAMPLE_SPAMD_RC}; \ >- fi >+ @${INSTALL_SCRIPT} -m 555 ${WRKDIR}/pfspamd.sh ${PREFIX}/etc/rc.d/pfspamd.sh > @if [ ! -f ${SAMPLE_SPAMD_CONF} ]; then \ > ${ECHO_MSG} "Installing ${SAMPLE_SPAMD_CONF} file."; \ > ${INSTALL_DATA} ${WRKSRC}/doc/spamd.conf \ >Index: distinfo >=================================================================== >RCS file: /home/ncvs/ports/mail/spamd/distinfo,v >retrieving revision 1.4 >diff -u -r1.4 distinfo >--- distinfo 18 Jul 2004 22:54:29 -0000 1.4 >+++ distinfo 13 Apr 2005 08:37:54 -0000 >@@ -1,2 +1,2 @@ >-MD5 (spamd_3.5.tar.bz2) = e30f1ee8212b31fb4d71b6a8fd7f1204 >-SIZE (spamd_3.5.tar.bz2) = 26427 >+MD5 (spamd_3.7.tar.bz2) = e1d96b9d7b1d4189dca510ff0000383f >+SIZE (spamd_3.7.tar.bz2) = 28066 >Index: pkg-plist >=================================================================== >RCS file: /home/ncvs/ports/mail/spamd/pkg-plist,v >retrieving revision 1.3 >diff -u -r1.3 pkg-plist >--- pkg-plist 12 Oct 2004 10:38:24 -0000 1.3 >+++ pkg-plist 13 Apr 2005 09:46:35 -0000 >@@ -2,5 +2,5 @@ > libexec/spamlogd > sbin/spamd-setup > sbin/spamdb >-etc/rc.d/pf-spamd.sh >+etc/rc.d/pfspamd.sh > etc/spamd.conf.sample >Index: files/pfspamd.sh >=================================================================== >RCS file: files/pfspamd.sh >diff -N files/pfspamd.sh >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/pfspamd.sh 13 Apr 2005 09:31:53 -0000 >@@ -0,0 +1,39 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+# PROVIDE: pfspamd >+# REQUIRE: NETWORKING >+# BEFORE: mail >+# KEYWORD: shutdown >+ >+# >+# Add the following lines to /etc/rc.conf to enable spamd: >+# pfspamd_enable (bool): Set to "NO" by default. >+# Set it to "YES" to enable spamd >+# pfspamd_flags (str): Set to "" by default. >+# Extra flags passed to start command. >+ >+. %%RC_SUBR%% >+ >+name="pfspamd" >+rcvar=`set_rcvar` >+ >+command="%%PREFIX%%/libexec/spamd" >+start_postcmd="pfspamd_postcmd" >+restart_postcmd="pfspamd_postcmd" >+ >+[ -z "$pfspamd_enable" ] && pfspamd_enable="NO" >+[ -z "$pfspamd_flags" ] && pfspamd_flags="" >+ >+load_rc_config $name >+ >+pfspamd_postcmd() >+{ >+ if [ -x %%PREFIX%%/sbin/spamd-setup ]; then >+ %%PREFIX%%/sbin/spamd-setup >+ fi >+} >+ >+run_rc_command "$1" >Index: files/spamd.sh.sample >=================================================================== >RCS file: files/spamd.sh.sample >diff -N files/spamd.sh.sample >--- files/spamd.sh.sample 29 Sep 2003 23:01:21 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,40 +0,0 @@ >-#!/bin/sh >-# >-# $FreeBSD: ports/mail/spamd/files/spamd.sh.sample,v 1.1 2003/09/29 23:01:21 edwin Exp $ >- >-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >- echo "$0: Cannot determine the PREFIX" >&2 >- echo "Please use the complete pathname." >&2 >- exit 1 >-fi >- >-if [ -z "${source_rc_confs_defined}" ]; then >- if [ -r /etc/defaults/rc.conf ]; then >- . /etc/defaults/rc.conf >- source_rc_confs >- elif [ -r /etc/rc.conf ]; then >- . /etc/rc.conf >- fi >-fi >- >-case "$1" in >-start) >- case "${spamd_enable}" in >- [Yy][Ee][Ss]) >- echo -n ' spamd' >- ${PREFIX}/libexec/spamd ${spamd_flags} >- if [ -x ${PREFIX}/sbin/spamd-setup ]; then >- ${PREFIX}/sbin/spamd-setup >- fi >- ;; >- esac >- ;; >-stop) >- killall spamd >- ;; >-*) >- echo "Usage: `basename $0` {start|stop}" >&2 >- ;; >-esac >- >-exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 79856
: 52738