summaryrefslogtreecommitdiffstats
path: root/main/policyd-spf-fs/APKBUILD
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-09-21 16:06:02 +0300
committerTimo Teras <timo.teras@iki.fi>2009-09-21 16:16:49 +0300
commit5b7a7340a7ebe9bb52bd3d5fc37dacd6e910db3a (patch)
tree7504a3265c99ae719d6a821ce7a57571c3818dfd /main/policyd-spf-fs/APKBUILD
parent6a6e29b745233deb108bc324e34f0497053bffc6 (diff)
downloadaports-5b7a7340a7ebe9bb52bd3d5fc37dacd6e910db3a.tar.bz2
aports-5b7a7340a7ebe9bb52bd3d5fc37dacd6e910db3a.tar.xz
main/policyd-spf-fs: new aport
a libspf2 based policy daemon for postfix.
Diffstat (limited to 'main/policyd-spf-fs/APKBUILD')
-rw-r--r--main/policyd-spf-fs/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/policyd-spf-fs/APKBUILD b/main/policyd-spf-fs/APKBUILD
new file mode 100644
index 000000000..34c7e90f9
--- /dev/null
+++ b/main/policyd-spf-fs/APKBUILD
@@ -0,0 +1,39 @@
+# 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"