Date: Tue, 17 Aug 2004 17:59:43 -0400 (EDT) From: Vivek Khera <vivek@khera.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/70595: add SPF patch to postfix Message-ID: <20040817215943.B0A28142AA3@staging.int.kcilink.com> Resent-Message-ID: <200408172200.i7HM0jOO089826@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70595 >Category: ports >Synopsis: add SPF patch to postfix >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Aug 17 22:00:45 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 4.10-STABLE i386 >Organization: >Environment: System: FreeBSD staging.int.kcilink.com 4.10-STABLE FreeBSD 4.10-STABLE #7: Wed Jun 9 17:06:08 EDT 2004 khera@staging.int.kcilink.com:/usr/obj/amd/yertle/u/sources/usr/src/sys/STAGING i386 >Description: add patch to optionally use libspf2 in postfix. no version bump since it is a compile time option that doesn't require anyone to update if they don't want this feature. >How-To-Repeat: >Fix: diff -Pru postfix/distinfo postfix.new/distinfo --- postfix/distinfo Thu Jul 15 09:48:59 2004 +++ postfix.new/distinfo Tue Aug 17 16:58:27 2004 @@ -6,3 +6,5 @@ SIZE (postfix/ipv6-1.25-pf-2.1.3.patch.gz) = 79473 MD5 (postfix/tls+ipv6-1.25-pf-2.1.3.patch.gz) = 71181d8dcf26c24e6fe373ad1ac7e741 SIZE (postfix/tls+ipv6-1.25-pf-2.1.3.patch.gz) = 256591 +MD5 (postfix/postfix-libspf2-2.1.3-4.patch) = 0312a568fdf96861dbd6ac206b395630 +SIZE (postfix/postfix-libspf2-2.1.3-4.patch) = 25713 diff -Pru postfix/pkg-plist postfix.new/pkg-plist --- postfix/pkg-plist Wed May 12 09:59:31 2004 +++ postfix.new/pkg-plist Tue Aug 17 17:25:46 2004 @@ -130,6 +130,7 @@ %%PORTDOCS%%%%DOCSDIR%%/SMTPD_POLICY_README.html %%PORTDOCS%%%%DOCSDIR%%/SMTPD_PROXY_README %%PORTDOCS%%%%DOCSDIR%%/SMTPD_PROXY_README.html +%%PORTDOCS%%%%SUB_SPF%%%%DOCSDIR%%/SPF_README %%PORTDOCS%%%%DOCSDIR%%/STANDARD_CONFIGURATION_README %%PORTDOCS%%%%DOCSDIR%%/STANDARD_CONFIGURATION_README.html %%PORTDOCS%%%%DOCSDIR%%/TUNING_README diff -Pru postfix/scripts/configure.postfix postfix.new/scripts/configure.postfix --- postfix/scripts/configure.postfix Thu Jul 15 09:48:59 2004 +++ postfix.new/scripts/configure.postfix Tue Aug 17 17:56:28 2004 @@ -24,6 +24,7 @@ SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ SASLKRB "If your SASL requires Kerberos select this option" "$status_SASLKRB" \ SASLKRB5 "If your SASL requires Kerberos5 select this option" "$status_SASLKRB5" \ +SPF "SPF support" "$status_SPF" \ TLS "SSL and TLS" "$status_TLS" \ IPv6 "IPv6 support" "$status_IPv6" \ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ @@ -65,6 +66,7 @@ SUB_TLS="@comment " SUB_TEST="@comment " SUB_IPV6="@comment " +SUB_SPF="@comment " while [ "$1" ]; do case $1 in @@ -204,6 +206,19 @@ # echo "MAN1+= smtp-sink.1 smtp-source.1 qmqp-sink.1 qmqp-source.1" SUB_TEST="" ;; + SPF) + # see http://www.ipnet6.org/postfix/spf/ + echo "LIB_DEPENDS+= spf2.1:\${PORTSDIR}/mail/libspf2" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/spf/p4/" + echo "PATCHFILES+= postfix-libspf2-2.1.3-4.patch" + echo "PATCH_DIST_STRIP= -p1" + echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include" + echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lspf2" + echo "SPF_SUFFIX= +spf" +## echo "README+= SPF_README" + echo "" + SUB_SPF="" + ;; IPv6) if [ X$SUB_TLS = "X" ]; then /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr @@ -247,9 +262,10 @@ echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" echo "PLIST_SUB+= SUB_TEST=\"${SUB_TEST}\"" echo "PLIST_SUB+= SUB_IPV6=\"${SUB_IPV6}\"" +echo "PLIST_SUB+= SUB_SPF=\"${SUB_SPF}\"" # for some reason, if we alter the pkg name this way, the first build (where # we ask the configure questions) doesn't pick up the extensions, but # any subsequent build will. so "make; make install" will build twice. # don't do this for now. -#echo "PKGNAMESUFFIX= \${NOPCRE_SUFFIX}\${SASL_SUFFIX}\${DB_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}" +#echo "PKGNAMESUFFIX= \${NOPCRE_SUFFIX}\${SASL_SUFFIX}\${DB_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}\${SPF_SUFFIX}" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040817215943.B0A28142AA3>