Re: UPDATE: mail/p5-Mail-SPF-Query

2006-02-01 Thread David Hill
On Tue, Jan 31, 2006 at 11:51:15PM +0100, steven mestdagh wrote:
 On Tue, Jan 31, 2006 at 09:58:19AM -0500, David Hill wrote:
  This updates adds a postfix flavor which will install the postfix policy
  daemon.
  
  - David
 
 does it make more sense to skip the flavor stuff and just have this port
 install the bundled examples?
 
 ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-Mail-SPF-Query
 ${INSTALL_DATA} ${WRKSRC}/examples/* \
   ${PREFIX}/share/examples/p5-Mail-SPF-Query
 
 
  Index: ports/mail/p5-Mail-SPF-Query//Makefile
  ===
  RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/Makefile,v
  retrieving revision 1.1.1.1
  diff -u -r1.1.1.1 Makefile
  --- ports/mail/p5-Mail-SPF-Query//Makefile  21 Jan 2006 23:35:16 -  
  1.1.1.1
  +++ ports/mail/p5-Mail-SPF-Query//Makefile  31 Jan 2006 14:56:54 -
  @@ -8,6 +8,9 @@
   
   MAINTAINER=David Hill [EMAIL PROTECTED]
   
  +FLAVORS=   postfix
  +FLAVOR?=
  +
   # GPL/Artistic
   PERMIT_PACKAGE_CDROM=  Yes
   PERMIT_PACKAGE_FTP=Yes
  @@ -22,6 +25,12 @@
  :p5-URI-*:www/p5-URI
   
   BUILD_DEPENDS= ${RUN_DEPENDS}
  +
  +.if ${FLAVOR:L:Mpostfix}
  +post-install:
  +   ${INSTALL_DATA_DIR} ${PREFIX}/libexec
  +   ${INSTALL_SCRIPT} ${WRKSRC}/examples/postfix-policyd-spf 
  ${PREFIX}/libexec
  +.endif
   
   CONFIGURE_STYLE=   perl
   
  Index: ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
  ===
  RCS file: ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
  diff -N ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
  --- /dev/null   1 Jan 1970 00:00:00 -
  +++ ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix 31 Jan 2006 14:56:54 
  -
  @@ -0,0 +1 @@
  +libexec/postfix-policyd-spf
  Index: ports/mail/p5-Mail-SPF-Query//pkg/PLIST
  ===
  RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/pkg/PLIST,v
  retrieving revision 1.1.1.1
  diff -u -r1.1.1.1 PLIST
  --- ports/mail/p5-Mail-SPF-Query//pkg/PLIST 21 Jan 2006 23:35:16 -  
  1.1.1.1
  +++ ports/mail/p5-Mail-SPF-Query//pkg/PLIST 31 Jan 2006 14:56:54 -
  @@ -4,6 +4,7 @@
   ${P5SITE}/Mail/
   ${P5SITE}/Mail/SPF/
   ${P5SITE}/Mail/SPF/Query.pm
  +%%postfix%%
   @man man/man1/spfd.1
   @man man/man1/spfquery.1
   @man man/man3p/Mail::SPF::Query.3p
 
 
 Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Yes, that is a much better idea.

Here is a new patch.

- David

Index: ports/mail/p5-Mail-SPF-Query/Makefile
===
RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- ports/mail/p5-Mail-SPF-Query/Makefile   21 Jan 2006 23:35:16 -  
1.1.1.1
+++ ports/mail/p5-Mail-SPF-Query/Makefile   1 Feb 2006 16:30:26 -
@@ -27,4 +27,9 @@
 
 PKG_ARCH=  *
 
+post-install:
+   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-Mail-SPF-Query
+   ${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
+   ${PREFIX}/share/examples/p5-Mail-SPF-Query
+
 .include bsd.port.mk
Index: ports/mail/p5-Mail-SPF-Query/pkg/PLIST
===
RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- ports/mail/p5-Mail-SPF-Query/pkg/PLIST  21 Jan 2006 23:35:16 -  
1.1.1.1
+++ ports/mail/p5-Mail-SPF-Query/pkg/PLIST  1 Feb 2006 16:30:26 -
@@ -7,3 +7,9 @@
 @man man/man1/spfd.1
 @man man/man1/spfquery.1
 @man man/man3p/Mail::SPF::Query.3p
+share/examples/p5-Mail-SPF-Query/
+share/examples/p5-Mail-SPF-Query/README
+share/examples/p5-Mail-SPF-Query/exim-acl
+share/examples/p5-Mail-SPF-Query/postfix-policyd-spf
+share/examples/p5-Mail-SPF-Query/sendmail-milter
+share/examples/p5-Mail-SPF-Query/sendmail-milter-INSTALL.txt


pgp45he1keL9e.pgp
Description: PGP signature


Re: UPDATE: mail/p5-Mail-SPF-Query

2006-01-31 Thread steven mestdagh
On Tue, Jan 31, 2006 at 09:58:19AM -0500, David Hill wrote:
 This updates adds a postfix flavor which will install the postfix policy
 daemon.
 
 - David

does it make more sense to skip the flavor stuff and just have this port
install the bundled examples?

${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-Mail-SPF-Query
${INSTALL_DATA} ${WRKSRC}/examples/* \
${PREFIX}/share/examples/p5-Mail-SPF-Query


 Index: ports/mail/p5-Mail-SPF-Query//Makefile
 ===
 RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/Makefile,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 Makefile
 --- ports/mail/p5-Mail-SPF-Query//Makefile21 Jan 2006 23:35:16 -  
 1.1.1.1
 +++ ports/mail/p5-Mail-SPF-Query//Makefile31 Jan 2006 14:56:54 -
 @@ -8,6 +8,9 @@
  
  MAINTAINER=  David Hill [EMAIL PROTECTED]
  
 +FLAVORS= postfix
 +FLAVOR?=
 +
  # GPL/Artistic
  PERMIT_PACKAGE_CDROM=Yes
  PERMIT_PACKAGE_FTP=  Yes
 @@ -22,6 +25,12 @@
   :p5-URI-*:www/p5-URI
  
  BUILD_DEPENDS=   ${RUN_DEPENDS}
 +
 +.if ${FLAVOR:L:Mpostfix}
 +post-install:
 + ${INSTALL_DATA_DIR} ${PREFIX}/libexec
 + ${INSTALL_SCRIPT} ${WRKSRC}/examples/postfix-policyd-spf 
 ${PREFIX}/libexec
 +.endif
  
  CONFIGURE_STYLE= perl
  
 Index: ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
 ===
 RCS file: ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
 diff -N ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix
 --- /dev/null 1 Jan 1970 00:00:00 -
 +++ ports/mail/p5-Mail-SPF-Query//pkg/PFRAG.postfix   31 Jan 2006 14:56:54 
 -
 @@ -0,0 +1 @@
 +libexec/postfix-policyd-spf
 Index: ports/mail/p5-Mail-SPF-Query//pkg/PLIST
 ===
 RCS file: /cvs/ports/mail/p5-Mail-SPF-Query/pkg/PLIST,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 PLIST
 --- ports/mail/p5-Mail-SPF-Query//pkg/PLIST   21 Jan 2006 23:35:16 -  
 1.1.1.1
 +++ ports/mail/p5-Mail-SPF-Query//pkg/PLIST   31 Jan 2006 14:56:54 -
 @@ -4,6 +4,7 @@
  ${P5SITE}/Mail/
  ${P5SITE}/Mail/SPF/
  ${P5SITE}/Mail/SPF/Query.pm
 +%%postfix%%
  @man man/man1/spfd.1
  @man man/man1/spfquery.1
  @man man/man3p/Mail::SPF::Query.3p


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm