From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 22 20:00:38 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8709416A4CE for ; Fri, 22 Apr 2005 20:00:38 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E48E43D1F for ; Fri, 22 Apr 2005 20:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3MK0Ud7065791 for ; Fri, 22 Apr 2005 20:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3MK0UF8065784; Fri, 22 Apr 2005 20:00:30 GMT (envelope-from gnats) Date: Fri, 22 Apr 2005 20:00:30 GMT Message-Id: <200504222000.j3MK0UF8065784@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Marcus Grando Subject: Re: ports/80072: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marcus Grando List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 20:00:38 -0000 The following reply was made to PR ports/80072; it has been noted by GNATS. From: Marcus Grando To: bug-followup@FreeBSD.org, tobez@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@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 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--