aboutsummaryrefslogtreecommitdiffstats
path: root/main/policyd-spf-fs
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-09-23 08:36:41 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-09-23 08:38:14 +0000
commit714711d05d6cc684f45343e7f9ae4eb1808b0e40 (patch)
treedec7c3cf744d3dd5e7148c87170ba3a04738c58f /main/policyd-spf-fs
parente538da9cc5e12851ca7e1d67a6b0fcdaa57d44d7 (diff)
downloadaports-714711d05d6cc684f45343e7f9ae4eb1808b0e40.tar.bz2
aports-714711d05d6cc684f45343e7f9ae4eb1808b0e40.tar.xz
main/policyd-spf-fs: enable build
Diffstat (limited to 'main/policyd-spf-fs')
-rw-r--r--main/policyd-spf-fs/APKBUILD15
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