diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-06-21 11:36:18 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-06-21 11:36:18 -0500 |
commit | b1abb04596bc35950af8f18b9799afe3a75a4377 (patch) | |
tree | e78239e016d79dc5e798be622c72742052282fed /testing/linux-pam/APKBUILD | |
parent | f17d07341e5c1d9f3cdbad12e03015562e2a7b59 (diff) | |
download | aports-b1abb04596bc35950af8f18b9799afe3a75a4377.tar.bz2 aports-b1abb04596bc35950af8f18b9799afe3a75a4377.tar.xz |
testing/linux-pam: new aport
Diffstat (limited to 'testing/linux-pam/APKBUILD')
-rw-r--r-- | testing/linux-pam/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/linux-pam/APKBUILD b/testing/linux-pam/APKBUILD new file mode 100644 index 0000000000..db71a30bd3 --- /dev/null +++ b/testing/linux-pam/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=linux-pam +pkgver=1.1.3 +pkgrel=0 +pkgdesc="pluggable authentication modules for linux" +url="http://www.kernel.org/pub/linux/libs/pam" +arch="all" +license="BSD" +depends= +depends_dev="gettext-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$pkgver.tar.bz2 + linux-pam-innetgr.patch" + +_builddir="$srcdir"/Linux-PAM-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LIBS="-lintl" ./configure --prefix=/usr \ + --libdir=/lib \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-libintl-prefix \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="6db7fcb5db6253350e3a4648ceac40e7 Linux-PAM-1.1.3.tar.bz2 +c309401e103cc86e8b25557ff3eb0b53 linux-pam-innetgr.patch" |