wok-next diff pam/receipt @ rev 20135
wvstreams: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 31 17:06:41 2017 +0100 (2017-10-31) |
parents | 18c4d15a72df |
children | 0e7893ac206d |
line diff
1.1 --- a/pam/receipt Fri Jan 27 15:35:03 2017 +0200 1.2 +++ b/pam/receipt Tue Oct 31 17:06:41 2017 +0100 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pam" 1.8 VERSION="1.3.0" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="Pluggable Authentication Modules." 1.11 +SHORT_DESC="Pluggable Authentication Modules for Linux" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="BSD GPL2" 1.14 WEB_SITE="http://www.linux-pam.org/" 1.15 @@ -12,35 +12,46 @@ 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2" 1.18 1.19 -DEPENDS="glibc-base libdb" 1.20 -BUILD_DEPENDS="flex db-dev libdb" 1.21 +BUILD_DEPENDS="db-dev gettext" 1.22 +SPLIT="pam-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 ./configure \ 1.28 --sysconfdir=/etc \ 1.29 + --libdir=/usr/lib \ 1.30 + --disable-regenerate-docu \ 1.31 + --enable-securedir=/lib/security \ 1.32 + --docdir=/usr/share/doc/Linux-PAM-$VERSION \ 1.33 $CONFIGURE_ARGS && 1.34 - make && make install 1.35 + make && make install && 1.36 + 1.37 + mkdir -p $install/etc/pam.d && 1.38 + cp $stuff/other $install/etc/pam.d && 1.39 + 1.40 + chmod -v 4755 $install/sbin/unix_chkpwd && 1.41 + 1.42 + for file in pam pam_misc pamc; do 1.43 + mv -v $install/usr/lib/lib$file.so.* $install/lib && 1.44 + ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \ 1.45 + $install/usr/lib/lib$file.so 1.46 + done 1.47 } 1.48 1.49 # Rules to gen a SliTaz package suitable for Tazpkg. 1.50 genpkg_rules() 1.51 { 1.52 - mkdir -p $fs/lib 1.53 - cp -a $install/etc $fs 1.54 - cp -a $install/sbin $fs 1.55 - cp -a $install/lib/*so* $fs/lib 1.56 - cp -a $install/lib/security $fs/lib 1.57 - rm -f $fs/lib/security/*.la 1.58 - cp -a $stuff/* $fs 1.59 + case $PACKAGE in 1.60 + pam) copy @std; DEPENDS="libdb";; 1.61 + *-dev) copy @dev; DEPENDS="pam db-dev";; 1.62 + esac 1.63 } 1.64 1.65 -pre_remove() 1.66 -{ 1.67 - # If busybox-pam is installed, trigger its removal right now. Once pam shared 1.68 - # library will be removed, it will be too late. Don't worry about this, while 1.69 - # removing busybox-pam will replace itself by a non-pam busybox. 1.70 +# If busybox-pam is installed, trigger its removal right now. Once pam shared 1.71 +# library will be removed, it will be too late. Don't worry about this, while 1.72 +# removing busybox-pam will replace itself by a non-pam busybox. 1.73 +pre_remove_pam() { 1.74 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then 1.75 tazpkg remove busybox-pam --auto 1.76 fi