diff options
-rw-r--r-- | main/cyrus-sasl/APKBUILD | 17 |
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" |