ports/80072: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf

Marcus Grando marcus at corp.grupos.com.br
Fri Apr 22 20:00:38 UTC 2005


The following reply was made to PR ports/80072; it has been noted by GNATS.

From: Marcus Grando <marcus at corp.grupos.com.br>
To: bug-followup at FreeBSD.org, tobez at tobez.org
Cc:  
Subject: Re: ports/80072: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf
Date: Fri, 22 Apr 2005 16:55:04 -0300

 This is a multi-part message in MIME format.
 --------------070106070702000507090500
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Now, new attached patch.
 
 REPOCOPY: mail/policyd -> mail/postfix-policyd-spf
 
 - After repocopy please apply patch attached and add comments in 
 ports/UPDATING
 - Remove mail/policyd
 
 Thanks
 
 -- 
 Marcus Grando
 Grupos Internet S/A
 marcus(at)corp.grupos.com.br
 
 --------------070106070702000507090500
 Content-Type: text/plain;
  name="postfix-policyd-spf.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="postfix-policyd-spf.patch"
 
 diff -ruN postfix-policyd-spf.orig/Makefile postfix-policyd-spf/Makefile
 --- postfix-policyd-spf.orig/Makefile	Fri Jan 14 01:01:28 2005
 +++ postfix-policyd-spf/Makefile	Fri Apr 22 16:49:19 2005
 @@ -10,28 +10,39 @@
  PORTREVISION=		1
  CATEGORIES=		mail
  MASTER_SITES=		http://www.libspf2.org/patch/
 +PKGNAMEPREFIX=		postfix-
 +PKGNAMESUFFIX=		-spf
  
  MAINTAINER=		marcus at corp.grupos.com.br
  COMMENT=		Implements SPF for postfix, as a policy daemon
  
  LIB_DEPENDS=		spf2.1:${PORTSDIR}/mail/libspf2
  
 +CONFLICTS=		policyd-1.*
 +
  CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include"
  CONFIGURE_ENV+=		CFLAGS="-I${LOCALBASE}/include"
  CONFIGURE_ENV+=		LDFLAGS="-L${LOCALBASE}/lib"
  GNU_CONFIGURE=		yes
  USE_GETOPT_LONG=	yes
  
 -PLIST_FILES=		sbin/policyd
 +PKGMESSAGE=		${WRKDIR}/pkg-message
 +PLIST_FILES=		sbin/postfix-policyd-spf
 +
 +DOCSDIR=		${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
  
  .if !defined(NOPORTDOCS)
  PORTDOCS=	*
  .endif
  
 +post-configure:
 +	@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${MASTERDIR}/pkg-message > ${PKGMESSAGE}
 +
  post-install:
  .if !defined(NOPORTDOCS)
  	@${MKDIR} ${DOCSDIR}
  	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
  .endif
 +	@${CAT} ${PKGMESSAGE}
  
  .include <bsd.port.mk>
 diff -ruN postfix-policyd-spf.orig/files/patch-Makefile.in postfix-policyd-spf/files/patch-Makefile.in
 --- postfix-policyd-spf.orig/files/patch-Makefile.in	Wed Dec 31 21:00:00 1969
 +++ postfix-policyd-spf/files/patch-Makefile.in	Fri Apr 22 16:31:00 2005
 @@ -0,0 +1,13 @@
 +--- Makefile.in.orig	Mon Jun 28 13:59:26 2004
 ++++ Makefile.in	Mon Apr 18 11:24:56 2005
 +@@ -192,8 +192,8 @@
 + 	     || test -f $$p1 \
 + 	  ; then \
 + 	    f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
 +-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/$$f"; \
 +-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/$$f; \
 ++	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/postfix-policyd-spf"; \
 ++	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/postfix-policyd-spf; \
 + 	  else :; fi; \
 + 	done
 + 
 diff -ruN postfix-policyd-spf.orig/pkg-message postfix-policyd-spf/pkg-message
 --- postfix-policyd-spf.orig/pkg-message	Wed Dec 31 21:00:00 1969
 +++ postfix-policyd-spf/pkg-message	Fri Apr 22 16:48:07 2005
 @@ -0,0 +1,19 @@
 +***
 +*** NOTE: Now %%PREFIX%%/sbin/policyd has renamed to %%PREFIX%%/sbin/postfix-policyd-spf
 +***
 +
 +To run this from %%PREFIX%%/etc/postfix/master.cf:
 +
 +policy  unix  -       n       n       -       -       spawn
 +  user=nobody argv=%%PREFIX%%/sbin/postfix-policyd-spf
 +
 +To use this from Postfix SMTPD, use in %%PREFIX%%/etc/postfix/main.cf:
 +
 +smtpd_recipient_restrictions = ...
 +                               reject_unknown_sender_domain
 +                               reject_unauth_destination
 +                               check_policy_service unix:private/policy
 +                               ...
 +
 +NOTE: specify check_policy_service AFTER reject_unauth_destination
 +or else your system can become an open relay.
 
 --------------070106070702000507090500--



More information about the freebsd-ports-bugs mailing list