aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shadow/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/shadow/APKBUILD')
-rw-r--r--testing/shadow/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/shadow/APKBUILD b/testing/shadow/APKBUILD
index d5be67a7fb..ba9d8e3bc0 100644
--- a/testing/shadow/APKBUILD
+++ b/testing/shadow/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=shadow
pkgver=4.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="PAM-using login and passwd utilities (usermod / useradd / newuidmap etc)"
url="http://pkg-shadow.alioth.debian.org/"
arch="all"
@@ -14,6 +14,7 @@ install="$pkgname.post-upgrade $pkgname.post-deinstall"
subpackages="$pkgname-doc"
source="http://pkg-shadow.alioth.debian.org/releases/shadow-$pkgver.tar.xz
login.pamd"
+options="suid"
_builddir="$srcdir"/shadow-$pkgver
prepare() {
@@ -34,6 +35,7 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--without-nscd \
+ --without-nologin \
--disable-nls \
|| return 1
make || return 1
@@ -44,7 +46,10 @@ package() {
make DESTDIR="$pkgdir" install || return 1
# do not install these pam.d files they are broken and outdated
- rm "$pkgdir"/etc/pam.d/*
+ # nologin is provided by util-linux
+ rm "$pkgdir"/etc/pam.d/* \
+ "$pkgdir"/sbin/nologin \
+ || return 1
# however, install our own for login
cp "$srcdir"/login.pamd "$pkgdir"/etc/pam.d/login