aboutsummaryrefslogtreecommitdiffstats
path: root/main/cyrus-sasl/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-30 07:34:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-30 07:47:13 +0000
commitdb6ccb5a98ffac9b06bf643c7f43bf5c4f11c048 (patch)
treeac20c0979516256ca3ef420fdace50f857f7cb14 /main/cyrus-sasl/APKBUILD
parent87095c2c29331e45a428f73616c533938e815c93 (diff)
downloadaports-db6ccb5a98ffac9b06bf643c7f43bf5c4f11c048.tar.bz2
aports-db6ccb5a98ffac9b06bf643c7f43bf5c4f11c048.tar.xz
main/cyrus-sasl: split out gssapiv2, gs2 plugin modules
Diffstat (limited to 'main/cyrus-sasl/APKBUILD')
-rw-r--r--main/cyrus-sasl/APKBUILD17
1 files changed, 15 insertions, 2 deletions
diff --git a/main/cyrus-sasl/APKBUILD b/main/cyrus-sasl/APKBUILD
index 568b0902b7..33a54cb433 100644
--- a/main/cyrus-sasl/APKBUILD
+++ b/main/cyrus-sasl/APKBUILD
@@ -2,12 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cyrus-sasl
pkgver=2.1.26
-pkgrel=3
+pkgrel=4
pkgdesc="Cyrus Simple Authentication Service Layer (SASL)"
url="http://cyrusimap.web.cmu.edu/downloads.html#sasl"
arch="all"
license="custom"
-subpackages="$pkgname-dev $pkgname-doc libsasl"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-gssapi $pkgname-gs2
+ libsasl"
depends=
makedepends="db-dev openssl-dev heimdal-dev
autoconf automake libtool"
@@ -68,6 +69,18 @@ package() {
install -d "$pkgdir"/var/run/saslauthd
}
+_plugindir=usr/lib/sasl2
+_plugin() {
+ depends=
+ replaces="libsasl"
+ pkgdesc="Cyrus SASL plugin for $1"
+ mkdir -p "$subpkgdir"/$_plugindir || return 1
+ mv "$pkgdir"/$_plugindir/lib${1}.so* "$subpkgdir"/$_plugindir/
+}
+
+gssapi() { _plugin gssapiv2; }
+gs2() { _plugin gs2; }
+
libsasl() {
depends=
pkgdesc="Cyrus Simple Authentication and Security Layer (SASL) library"