summaryrefslogtreecommitdiffstats
path: root/main/policyd-spf-fs/APKBUILD
blob: 74c2b0a550efe8fb4902ef3ce54c067325fd6980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=policyd-spf-fs
pkgver=23
pkgrel=2
pkgdesc="Policy daemon for checking SPF records in postfix"
url="http://www.freestone.net/software/policyd-spf-fs/"
arch="all"
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"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	mv "$srcdir"/${pkgname}_$pkgver "$srcdir"/$pkgname-$pkgver
	cd "$_builddir"
	for i in ../*.patch; do
		msg "Apply $i"
		patch -p1 < $i || return 1
	done
	sed -i -e 's/-lnsl//' Makefile

	make CFLAGS+=-DHAVE_NS_TYPE || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/bin
	make PREFIX="$pkgdir"/usr install
}

md5sums="781552698358fa94dc2df7258177776d  policyd-spf-fs_23.tar.gz
3ec7873341af655ac940db3e62733060  policyd-spf-fs-localpolicy-fix.patch"