pam: update to 1.1.4.

This commit is contained in:
Juan RP 2011-07-09 17:49:33 +02:00
parent 0f18825af9
commit 8c46457c45
3 changed files with 22 additions and 23 deletions

View file

@ -11,9 +11,6 @@ Add_dependency run pam
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/lib/security vmove usr/include usr
mkdir -p ${DESTDIR}/usr/share/man vmove usr/share/man/man3 usr/share/man
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
} }

View file

@ -8,19 +8,12 @@ long_desc="${long_desc}
username, and the data fields corresponding to the username keys are the username, and the data fields corresponding to the username keys are the
passwords." passwords."
revision=1
Add_dependency run glibc Add_dependency run glibc
Add_dependency run libdb Add_dependency run libdb
Add_dependency run pam Add_dependency run pam
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/lib/security vmove lib/security/pam_userdb.so lib/security
mkdir -p ${DESTDIR}/usr/share/man/man8 vmove usr/share/man/man8/pam_userdb.8 usr/share/man/man8
mv ${SRCPKGDESTDIR}/lib/security/pam_userdb.so \
${DESTDIR}/lib/security
mv ${SRCPKGDESTDIR}/usr/share/man/man8/pam_userdb.8 \
${DESTDIR}/usr/share/man/man8
} }

View file

@ -1,15 +1,14 @@
# Template file for 'pam' # Template file for 'pam'
pkgname=pam pkgname=pam
version=1.1.3 version=1.1.4
wrksrc="Linux-PAM-$version" wrksrc="Linux-PAM-$version"
distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2" distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2"
build_style=gnu_configure build_style=custom-install
configure_args="--disable-selinux --libdir=/lib --disable-rpath
--docdir=/usr/share/doc/pam --enable-read-both-confs
DESTDIR=$XBPS_DESTDIR/$pkgname-$version"
short_desc="A flexible mechanism for authenticating users" short_desc="A flexible mechanism for authenticating users"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=17b268789b935a76e736a1150210dd12f156972973e79347668f828d43632652 homepage="http://www.kernel.org/pub/linux/libs/pam/"
license="GPL-2"
checksum=ccd89331914390b1e9e99c954471d65f19b660d81e15a46eeb96cee125d44056
long_desc=" long_desc="
Linux-PAM provides a flexible mechanism for authenticating users. Linux-PAM provides a flexible mechanism for authenticating users.
PAM was invented by SUN Microsystems." PAM was invented by SUN Microsystems."
@ -31,8 +30,18 @@ Add_dependency build gettext
Add_dependency build cracklib-devel Add_dependency build cracklib-devel
Add_dependency build db-devel Add_dependency build db-devel
post_install() do_build()
{ {
./configure ${CONFIGURE_SHARED_ARGS} --disable-selinux --libdir=/lib \
--disable-rpath --docdir=/usr/share/doc/pam \
--enable-read-both-confs DESTDIR=${DESTDIR}
make ${makejobs}
}
do_install()
{
make DESTDIR=${DESTDIR} install
rm -rf ${DESTDIR}/var rm -rf ${DESTDIR}/var
# Fix unix_chkpwd perms. # Fix unix_chkpwd perms.
chmod 4755 ${DESTDIR}/sbin/unix_chkpwd chmod 4755 ${DESTDIR}/sbin/unix_chkpwd
@ -42,6 +51,6 @@ post_install()
# at least to dash and bash. # at least to dash and bash.
# #
sed -i -e "s|^#!/bin/sh -p$|#!/bin/sh|" \ sed -i -e "s|^#!/bin/sh -p$|#!/bin/sh|" \
${DESTDIR}/etc/security/namespace.init || return 1 ${DESTDIR}/etc/security/namespace.init
chmod 755 ${DESTDIR}/etc/security/namespace.init || return 1 chmod 755 ${DESTDIR}/etc/security/namespace.init
} }