Commit 5b7a7340 authored by Timo Teräs's avatar Timo Teräs

main/policyd-spf-fs: new aport

a libspf2 based policy daemon for postfix.
parent 6a6e29b7
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=policyd-spf-fs
pkgver=23
pkgrel=0
pkgdesc="Policy daemon for checking SPF records in postfix"
url="http://www.freestone.net/software/policyd-spf-fs/"
license="GPL"
depends=""
makedepends="libspf2-dev"
install=
subpackages=""
source="http://www.freestone.net/ftp/policyd-spf-fs/${pkgname}_$pkgver.tar.gz
policyd-spf-fs-localpolicy-fix.patch"
# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"
build() {
mv "$srcdir"/${pkgname}_$pkgver "$srcdir"/$pkgname-$pkgver
cd "$srcdir"/$pkgname-$pkgver
for i in ../*.patch; do
msg "Apply $i"
patch -p1 < $i || return 1
done
make CFLAGS+=-DHAVE_NS_TYPE || return 1
mkdir -p "$pkgdir"/usr/bin
make PREFIX="$pkgdir"/usr install
# remove the 2 lines below (and this) if there is no init.d script
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="781552698358fa94dc2df7258177776d policyd-spf-fs_23.tar.gz
3ec7873341af655ac940db3e62733060 policyd-spf-fs-localpolicy-fix.patch"
--- policyd-spf-fs_23/policyd-spf-fs.c Tue Sep 11 06:57:55 2007
+++ policyd-spf-fs-23.patched/policyd-spf-fs.c Mon Sep 21 12:09:33 2009
@@ -624,6 +624,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)) {
syslog(LOG_WARNING, "Invalid IP address.\n" );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment