diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-04-20 11:11:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-04-20 11:50:32 +0000 |
commit | 63f54393e2a1971d9b19f4d3927b6ac0a9b31a2e (patch) | |
tree | 5492fa3e2ed968f5dc102222efc3dca74099f134 /main/libspf2/APKBUILD | |
parent | 18cebf3338f941fe3235933395610035d855c7ae (diff) | |
download | aports-63f54393e2a1971d9b19f4d3927b6ac0a9b31a2e.tar.bz2 aports-63f54393e2a1971d9b19f4d3927b6ac0a9b31a2e.tar.xz |
main/libspf": provide dn_skipname if system does not
Diffstat (limited to 'main/libspf2/APKBUILD')
-rw-r--r-- | main/libspf2/APKBUILD | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD index 266147d8d6..da5ba38415 100644 --- a/main/libspf2/APKBUILD +++ b/main/libspf2/APKBUILD @@ -1,29 +1,41 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libspf2 pkgver=1.2.9 -pkgrel=0 +pkgrel=1 pkgdesc="Sender Policy Framework library, a part of the SPF/SRS protocol pair." url="http://www.libspf2.org" license="LGPL-2.1 BSD-2" subpackages="$pkgname-dev" -makedepends= +makedepends="autoconf automake libtool bind-dev" depends= source="http://www.libspf2.org/spf/libspf2-$pkgver.tar.gz - libspf2-localpolicy-fix.patch" + libspf2-localpolicy-fix.patch + 0001-provide-dn_skipname.patch + " - -build() { - cd "$srcdir"/$pkgname-$pkgver +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" for i in ../*.patch; do msg "Apply $i" patch -p1 < $i || return 1 done + libtoolize --force && aclocal && automake && autoconf && autoheader +} + +build() { + cd "$_builddir" ./configure --prefix=/usr \ || return 1 # uclibc claims to have res_ninit() but it doesnt. sed -i -e 's:HAVE_DECL_RES_NINIT 1:HAVE_DECL_RES_NINIT 0:' config.h make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="3305df4d1b13ca964d80b23bb5e4e2b6 libspf2-1.2.9.tar.gz -48d82a6af8c513d75a7402f2933b8b0a libspf2-localpolicy-fix.patch" +48d82a6af8c513d75a7402f2933b8b0a libspf2-localpolicy-fix.patch +201889cbd209aa7cae9ce11ed5ebaaa6 0001-provide-dn_skipname.patch" |