ports/92635: Update port: mail/clamfilter add mastersite, change to use sub_files
Jean Milanez Melo
jmelo at freebsdbrasil.com.br
Tue Jan 31 19:30:05 UTC 2006
>Number: 92635
>Category: ports
>Synopsis: Update port: mail/clamfilter add mastersite, change to use sub_files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 31 19:30:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jean Milanez Melo
>Release: FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD capeta.freebsdbrasil.com.br 5.3-STABLE FreeBSD 5.3-STABLE #5: Wed Mar 2 15:03:19 BRT 2005 eksffa at capeta.freebsdbrasil.com.br:/usr/obj/usr/src/sys/CAPETA i386
>Description:
- The tarball is unfetchable since Jan 1. I added another mastersite to fix it.
- I've changed the port to use SUB_FILES, it's better then SED ;)
- Maintainer has been CCed.
>How-To-Repeat:
>Fix:
--- clamfilter.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/clamfilter/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 27 Feb 2005 11:10:22 -0000 1.1
+++ Makefile 31 Jan 2006 19:21:38 -0000
@@ -8,18 +8,18 @@
PORTNAME= clamfilter
PORTVERSION= 0.5
CATEGORIES= mail
-MASTER_SITES= http://www.ensita.net/products/clamfilter/
+MASTER_SITES= http://www.ensita.net/products/clamfilter/ \
+ http://ftp.osuosl.org/pub/FreeBSD/distfiles/
MAINTAINER= sead at mail.ru
COMMENT= A small, efficient clamav content filter for Postfix
RUN_DEPENDS= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
-PKGMESSAGE= ${WRKSRC}/pkg-message
+SUB_FILES= pkg-message
PLIST_FILES= bin/clamfilter
post-install:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
Index: files/pkg-message
===================================================================
RCS file: files/pkg-message
diff -N files/pkg-message
--- files/pkg-message 27 Feb 2005 11:10:23 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-======================================================================
-For Postfix users:
-
-1. Edit master.cf and put there:
-filter unix - n n - - pipe flags=R user=postfix \
- argv=%%PREFIX%%/bin/clamfilter -F admin at domain.com \
- -f ${sender} -- ${recipient}
-
-2. Add the content_filter option to smtpd binary:
-smtp inet n - n - - smtpd -o content_filter=filter:dummy
-
-3. Restart Postfix.
-======================================================================
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in 31 Jan 2006 19:21:38 -0000
@@ -0,0 +1,13 @@
+======================================================================
+For Postfix users:
+
+1. Edit master.cf and put there:
+filter unix - n n - - pipe flags=R user=postfix \
+ argv=%%PREFIX%%/bin/clamfilter -F admin at domain.com \
+ -f ${sender} -- ${recipient}
+
+2. Add the content_filter option to smtpd binary:
+smtp inet n - n - - smtpd -o content_filter=filter:dummy
+
+3. Restart Postfix.
+======================================================================
--- clamfilter.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list