Date: Mon, 18 Apr 2005 11:58:22 -0300 (BRT) From: Marcus Grando <marcus@corp.grupos.com.br> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/80072: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf Message-ID: <20050418145822.D55CB569E@corp.grupos.com.br> Resent-Message-ID: <200504181500.j3IF0e85027996@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80072 >Category: ports >Synopsis: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Apr 18 15:00:40 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marcus Grando >Release: FreeBSD 4.11-STABLE i386 >Organization: Grupos Internet S/A >Environment: System: FreeBSD corp.grupos.com.br 4.11-STABLE FreeBSD 4.11-STABLE #47: Thu Apr 7 19:39:31 BRT 2005 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386 >Description: REPOCOPY: mail/policyd -> mail/postfix-policyd-spf - After repocopy please apply patch below and add comments in ports/UPDATING - Remove mail/policyd >How-To-Repeat: >Fix: --- postfix-policyd-spf.patch begins here --- 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 Mon Apr 18 11:51:37 2005 @@ -10,19 +10,25 @@ 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 +PLIST_FILES= sbin/postfix-policyd-spf + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} .if !defined(NOPORTDOCS) PORTDOCS= * @@ -33,5 +39,24 @@ @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif + @${ECHO_CMD} "" + @${ECHO_CMD} "*** Now sbin/policyd has renamed to sbin/postfix-policyd-spf ***" + @${ECHO_CMD} "" + @${ECHO_CMD} "To run this from ${PREFIX}/etc/postfix/master.cf:" + @${ECHO_CMD} "" + @${ECHO_CMD} "policy unix - n n - - spawn" + @${ECHO_CMD} " user=nobody argv=${PREFIX}/sbin/postfix-policyd-spf" + @${ECHO_CMD} "" + @${ECHO_CMD} "To use this from Postfix SMTPD, use in ${PREFIX}/etc/postfix/main.cf:" + @${ECHO_CMD} "" + @${ECHO_CMD} "smtpd_recipient_restrictions = ..." + @${ECHO_CMD} " reject_unknown_sender_domain" + @${ECHO_CMD} " reject_unauth_destination" + @${ECHO_CMD} " check_policy_service unix:private/policy" + @${ECHO_CMD} " ..." + @${ECHO_CMD} "" + @${ECHO_CMD} "NOTE: specify check_policy_service AFTER reject_unauth_destination" + @${ECHO_CMD} "or else your system can become an open relay." + @${ECHO_CMD} "" .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 Mon Apr 18 11:25:44 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 + --- postfix-policyd-spf.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050418145822.D55CB569E>