summaryrefslogtreecommitdiffstats
path: root/extra/linux-pam/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 20:47:28 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 20:47:28 +0200
commitb748f98f0683893285e69d9420ca408ca586547f (patch)
tree060308a4bc04771268f195d6f23243aa6c15b404 /extra/linux-pam/Pkgfile
parentc89e076f76da041a214e3f554b4271d014daa6ec (diff)
downloadnutyx-pakxe-b748f98f0683893285e69d9420ca408ca586547f.tar.gz
nutyx-pakxe-b748f98f0683893285e69d9420ca408ca586547f.tar.bz2
nutyx-pakxe-b748f98f0683893285e69d9420ca408ca586547f.tar.xz
nutyx-pakxe-b748f98f0683893285e69d9420ca408ca586547f.zip
Ajout de linux-pam#0.99.10.0-1
Diffstat (limited to 'extra/linux-pam/Pkgfile')
-rwxr-xr-xextra/linux-pam/Pkgfile41
1 files changed, 41 insertions, 0 deletions
diff --git a/extra/linux-pam/Pkgfile b/extra/linux-pam/Pkgfile
new file mode 100755
index 000000000..ab8256950
--- /dev/null
+++ b/extra/linux-pam/Pkgfile
@@ -0,0 +1,41 @@
+# Description: Permet à l'administateur locale de choisir comment les applications identifie les utilisateurs
+# URL: http://www.kernel.org/pub/libs/pam
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on:
+
+name=linux-pam
+version=0.99.10.0
+release=1
+source=(http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-$version.tar.bz2\
+ pam.conf other)
+
+
+build() {
+ mkdir -p $PKG/etc/pam.d
+ install -m644 other $PKG/etc/pam.d/other
+ install -m644 pam.conf $PKG/etc/pam.conf
+ cd Linux-PAM-$version
+ ./configure --sysconfdir=/etc \
+ --libdir=/usr/lib \
+ --sbindir=/lib/security \
+ --enable-securedir=/lib/security \
+ --docdir=/usr/share/doc/Linux-PAM-$version \
+ --enable-read-both-confs \
+ --with-xauth=/usr/X11R6/bin/xauth \
+ --enable-fakeroot="$PKG"
+ make
+ make DESTDIR=$PKG install
+ chmod -v 4755 $PKG/lib/security/unix_chkpwd
+ mkdir -p $PKG/{sbin,usr/lib}
+ mv -v $PKG/lib/security/pam_tally $PKG/sbin
+# mv -v $PKG/lib/libpam{,c,_misc}.la $PKG/usr/lib
+ sed -i 's| /lib| /usr/lib|' $PKG/usr/lib/libpam_misc.la
+ if [ -L $PKG/lib/libpam.so ]; then
+ for LINK in libpam{,c,_misc}.so; do
+ ln -v -sf ../../lib/$(readlink /lib/${LINK}) \
+ $PKG/usr/lib/${LINK} &&
+ rm -v $PKG/lib/${LINK}
+ done
+ fi
+}