ports/142809: [PATCH] mail/spamguard: use $SUB_FILES to dynamically adjust pkg-message

Sevan Janiyan venture37 at geeklan.co.uk
Thu Jan 14 03:10:03 UTC 2010


>Number:         142809
>Category:       ports
>Synopsis:       [PATCH] mail/spamguard: use $SUB_FILES to dynamically adjust pkg-message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 14 03:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD newbie.thingamajig-systems.co.uk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58 UTC
>Description:
No need to invoke sed manually, SUB_FILES will take care of this

Added file(s):
- files/pkg-message.in

Removed file(s):
- pkg-message

Port maintainer (ofsen at enderunix.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- spamguard-1.6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/spamguard/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	21 Aug 2008 06:17:39 -0000	1.4
+++ Makefile	14 Jan 2010 02:59:26 -0000
@@ -18,10 +18,12 @@
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
 DOCS=		AUTHORS CHANGELOG COPYING INSTALL \
-		POST-INSTALL README THANKS 
+		POST-INSTALL README THANKS
 DOCS_TR=	BENIOKU COPYING DEGISIKLIKLER KURULUM \
 		KURULUM-SONRASI YAPILACAKLAR YAZARLAR
 
+SUB_FILES=	pkg-message
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/spamguard ${PREFIX}/bin
 	${INSTALL_DATA} ${WRKSRC}/*.sample ${PREFIX}/etc
@@ -30,6 +32,6 @@
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 	cd ${WRKSRC}/tr && ${INSTALL_DATA} ${DOCS_TR} ${DOCSDIR}/tr
 .endif
-	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' pkg-message > ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	18 Nov 2003 21:56:41 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
-
-Edit %%PREFIX%%/etc/spamguard.conf
-After that edit %%PREFIX%%/etc/spam-ignore.txt
-
-Finally you have to add a crontab entry in order to get spamguard work like:
-
-0/5 * * * * %%PREFIX%%/bin/spamguard 1>/dev/null 2>/dev/null
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	14 Jan 2010 02:59:26 -0000
@@ -0,0 +1,7 @@
+
+Edit %%PREFIX%%/etc/spamguard.conf
+After that edit %%PREFIX%%/etc/spam-ignore.txt
+
+Finally you have to add a crontab entry in order to get spamguard work like:
+
+0/5 * * * * %%PREFIX%%/bin/spamguard 1>/dev/null 2>/dev/null
--- spamguard-1.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list