diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-09-21 16:05:27 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-09-21 16:16:49 +0300 |
commit | 6a6e29b745233deb108bc324e34f0497053bffc6 (patch) | |
tree | fb29c2056dd3a1d34966ef88808c8af1d20668e0 /main/libspf2 | |
parent | 2b0ba39974539e7a30d741d2ff2cbf92131555ac (diff) | |
download | aports-6a6e29b745233deb108bc324e34f0497053bffc6.tar.bz2 aports-6a6e29b745233deb108bc324e34f0497053bffc6.tar.xz |
main/libspf2: new aport
Diffstat (limited to 'main/libspf2')
-rw-r--r-- | main/libspf2/APKBUILD | 29 | ||||
-rw-r--r-- | main/libspf2/libspf2-localpolicy-fix.patch | 20 |
2 files changed, 49 insertions, 0 deletions
diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD new file mode 100644 index 0000000000..266147d8d6 --- /dev/null +++ b/main/libspf2/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libspf2 +pkgver=1.2.9 +pkgrel=0 +pkgdesc="Sender Policy Framework library, a part of the SPF/SRS protocol pair." +url="http://www.libspf2.org" +license="LGPL-2.1 BSD-2" +subpackages="$pkgname-dev" +makedepends= +depends= +source="http://www.libspf2.org/spf/libspf2-$pkgver.tar.gz + libspf2-localpolicy-fix.patch" + + +build() { + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Apply $i" + patch -p1 < $i || return 1 + done + ./configure --prefix=/usr \ + || return 1 + # uclibc claims to have res_ninit() but it doesnt. + sed -i -e 's:HAVE_DECL_RES_NINIT 1:HAVE_DECL_RES_NINIT 0:' config.h + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="3305df4d1b13ca964d80b23bb5e4e2b6 libspf2-1.2.9.tar.gz +48d82a6af8c513d75a7402f2933b8b0a libspf2-localpolicy-fix.patch" diff --git a/main/libspf2/libspf2-localpolicy-fix.patch b/main/libspf2/libspf2-localpolicy-fix.patch new file mode 100644 index 0000000000..346bfbfd7d --- /dev/null +++ b/main/libspf2/libspf2-localpolicy-fix.patch @@ -0,0 +1,20 @@ +--- libspf2-1.2.9/src/libspf2/spf_interpret.c Wed Oct 22 15:47:43 2008 ++++ libspf2-1.2.9.patched/src/libspf2/spf_interpret.c Mon Sep 21 12:22:51 2009 +@@ -1261,6 +1261,7 @@ + */ + + if ( mech == local_policy ) { ++ spf_request->use_local_policy = 0; + err = SPF_record_interpret(spf_server->local_policy, + spf_request, spf_response, depth + 1); + +--- libspf2-1.2.9/src/spfquery/spfquery.c Mon Sep 15 00:17:49 2008 ++++ libspf2-1.2.9.patched/src/spfquery/spfquery.c Mon Sep 21 12:14:38 2009 +@@ -602,6 +602,7 @@ + FREE_RESPONSE(spf_response); + + spf_request = SPF_request_new(spf_server); ++ spf_request->use_local_policy = 1; + + if (SPF_request_set_ipv4_str(spf_request, req->ip) + && SPF_request_set_ipv6_str(spf_request, req->ip)) { |