aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-01-21 11:00:29 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-01-21 09:03:06 +0000
commit2d3c79e192dadc2f29a681a0532b0d71bd637ad8 (patch)
tree9ec741be531d7681d6c049e47f10963cb8228919 /main/libspf2
parentae7227ce28913fa6bc85ecc3540196fc65025614 (diff)
downloadaports-2d3c79e192dadc2f29a681a0532b0d71bd637ad8.tar.bz2
aports-2d3c79e192dadc2f29a681a0532b0d71bd637ad8.tar.xz
main/libspf2: split -tools subpackage
daemon and query utility moved to -tools subpackage all other binaries removed
Diffstat (limited to 'main/libspf2')
-rw-r--r--main/libspf2/APKBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD
index 5484e468cf..4d22d8b6c9 100644
--- a/main/libspf2/APKBUILD
+++ b/main/libspf2/APKBUILD
@@ -1,15 +1,16 @@
+#Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libspf2
pkgver=1.2.10
-pkgrel=1
+pkgrel=2
pkgdesc="Sender Policy Framework library, a part of the SPF/SRS protocol pair."
url="http://www.libspf2.org"
arch="all"
license="LGPL2.1 BSD-2"
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-tools"
makedepends="autoconf automake libtool"
depends=
-source="http://www.libspf2.org/spf/libspf2-$pkgver.tar.gz
+source="http://www.libspf2.org/spf/$pkgname-$pkgver.tar.gz
0001-provide-dn_skipname.patch
libspf2-libreplace-fix.patch
netdb_success.patch
@@ -44,6 +45,15 @@ package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
+
+tools() {
+ pkgdesc="SPF daemon and command-line utility"
+ mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/sbin
+ mv "$pkgdir"/usr/bin/spfquery "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/spfd "$subpkgdir"/usr/sbin
+ rm -fr "$pkgdir"/usr/bin
+}
+
md5sums="7bb9937d0705649eaa8646de66dc3562 libspf2-1.2.10.tar.gz
24b77cb74901d56de89b24ef10b46b85 0001-provide-dn_skipname.patch
6dd2d5f33c5f1a5b7c14eec4c71767cd libspf2-libreplace-fix.patch