diff options
-rw-r--r-- | main/policyd-spf-fs/APKBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/main/policyd-spf-fs/APKBUILD b/main/policyd-spf-fs/APKBUILD index 3026f890e4..74c2b0a550 100644 --- a/main/policyd-spf-fs/APKBUILD +++ b/main/policyd-spf-fs/APKBUILD @@ -5,7 +5,7 @@ pkgver=23 pkgrel=2 pkgdesc="Policy daemon for checking SPF records in postfix" url="http://www.freestone.net/software/policyd-spf-fs/" -arch="" +arch="all" license="GPL" depends="" makedepends="libspf2-dev" @@ -14,13 +14,11 @@ 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" +_builddir="$srcdir"/$pkgname-$pkgver build() { mv "$srcdir"/${pkgname}_$pkgver "$srcdir"/$pkgname-$pkgver - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" for i in ../*.patch; do msg "Apply $i" patch -p1 < $i || return 1 @@ -28,13 +26,12 @@ build() { 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 - - # 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 |