summaryrefslogtreecommitdiffstats
path: root/main/linux-pam/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-07 13:42:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-07 13:45:00 +0000
commit075587b5927ff04267a2e42579efd0a52792b93d (patch)
tree1e8fa3fa32a15bade3859317f52f85282a559770 /main/linux-pam/APKBUILD
parent6a7a6ebb1a5f0f9c929cebbf4a62ffac45450617 (diff)
downloadaports-075587b5927ff04267a2e42579efd0a52792b93d.tar.bz2
aports-075587b5927ff04267a2e42579efd0a52792b93d.tar.xz
main/pam: moved from testing
Diffstat (limited to 'main/linux-pam/APKBUILD')
-rw-r--r--main/linux-pam/APKBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/main/linux-pam/APKBUILD b/main/linux-pam/APKBUILD
new file mode 100644
index 000000000..dbfb97f19
--- /dev/null
+++ b/main/linux-pam/APKBUILD
@@ -0,0 +1,77 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=linux-pam
+pkgver=1.1.3
+pkgrel=4
+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 bison flex"
+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
+ base-auth.pamd
+ base-account.pamd
+ base-password.pamd
+ base-session.pamd
+ base-session-noninteractive.pamd
+ other.pamd"
+
+_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"
+ ./configure --prefix=/usr \
+ --libdir=/lib \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-nls \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ # do not install pam.d files bundled with the source, they could be broken
+ rm -rf "$pkgdir"/etc/pam.d
+
+ # install our pam.d files
+ mkdir "$pkgdir"/etc/pam.d
+ for i in $source; do
+ case $i in
+ *.pamd)
+ basename=$(echo $i | cut -d. -f1)
+ cp "$srcdir"/$i "$pkgdir"/etc/pam.d/"$basename"
+ ;;
+ esac
+ done
+
+ # delete pointless libtool archives.
+ find "$pkgdir" -name *.la -print | xargs rm
+}
+
+md5sums="6db7fcb5db6253350e3a4648ceac40e7 Linux-PAM-1.1.3.tar.bz2
+c309401e103cc86e8b25557ff3eb0b53 linux-pam-innetgr.patch
+aa5bb7c9d8e4687aea1ae69b7447254a base-auth.pamd
+fafcf29cb9bab788cb4933106be31883 base-account.pamd
+117535e4938f478efced1398b408cf96 base-password.pamd
+baec6808544bf6cebc59e07467f8c213 base-session.pamd
+afbdd8eb4db5c31dfd8e8da35c698b90 base-session-noninteractive.pamd
+b8e839ece64df173f16d28520eb8d66c other.pamd"