summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-06-22 08:21:54 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-06-22 08:23:52 -0500
commit5aa21ff841cd96852cb924f893f3ce29113a4210 (patch)
tree2983cd116a70233219e354e5471303c828db41d1 /testing
parent3570515bc4aba95787c16968bfdb3aae53090225 (diff)
downloadaports-5aa21ff841cd96852cb924f893f3ce29113a4210.tar.bz2
aports-5aa21ff841cd96852cb924f893f3ce29113a4210.tar.xz
testing/shadow: install custom pam configuration for /bin/login.
Diffstat (limited to 'testing')
-rw-r--r--testing/shadow/APKBUILD14
-rw-r--r--testing/shadow/login.pamd6
2 files changed, 15 insertions, 5 deletions
diff --git a/testing/shadow/APKBUILD b/testing/shadow/APKBUILD
index 591e2c6dc..82b7a947e 100644
--- a/testing/shadow/APKBUILD
+++ b/testing/shadow/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=shadow
pkgver=4.1.4.3
-pkgrel=2
+pkgrel=3
pkgdesc="PAM-using login and passwd utilities"
url="http://pkg-shadow.alioth.debian.org/"
arch="all"
@@ -12,7 +12,8 @@ depends_dev="linux-pam-dev"
makedepends="$depends_dev"
install="$pkgname.post-upgrade $pkgname.post-deinstall"
subpackages="$pkgname-doc"
-source="http://pkg-shadow.alioth.debian.org/releases/shadow-$pkgver.tar.bz2"
+source="http://pkg-shadow.alioth.debian.org/releases/shadow-$pkgver.tar.bz2
+ login.pamd"
_builddir="$srcdir"/shadow-$pkgver
prepare() {
@@ -43,8 +44,11 @@ package() {
make DESTDIR="$pkgdir" install || return 1
# do not install these pam.d files they are broken and outdated
- # plus, the default policy should "just work"
- rm -rf "$pkgdir"/etc/pam.d
+ rm "$pkgdir"/etc/pam.d/*
+
+ # however, install our own for login
+ cp "$srcdir"/login.pamd "$pkgdir"/etc/pam.d/login
}
-md5sums="b8608d8294ac88974f27b20f991c0e79 shadow-4.1.4.3.tar.bz2"
+md5sums="b8608d8294ac88974f27b20f991c0e79 shadow-4.1.4.3.tar.bz2
+72dfc077a61ab7163e312640cc98bba8 login.pamd"
diff --git a/testing/shadow/login.pamd b/testing/shadow/login.pamd
new file mode 100644
index 000000000..ad4555809
--- /dev/null
+++ b/testing/shadow/login.pamd
@@ -0,0 +1,6 @@
+# /bin/login opens an interactive session.
+
+auth include base-auth
+account include base-account
+password include base-password
+session include base-session