2009-02-25 06:15:20 +01:00
|
|
|
# Template file for 'pam'
|
|
|
|
pkgname=pam
|
2009-12-31 22:37:40 +01:00
|
|
|
version=1.1.1
|
2010-02-17 05:40:55 +01:00
|
|
|
revision=4
|
2008-10-26 06:55:05 +01:00
|
|
|
wrksrc="Linux-PAM-$version"
|
2009-04-19 00:31:39 +02:00
|
|
|
distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2"
|
2008-10-26 06:55:05 +01:00
|
|
|
build_style=gnu_configure
|
2009-03-18 10:02:43 +01:00
|
|
|
configure_args="--disable-selinux --libdir=/lib --disable-rpath
|
2009-04-21 17:56:06 +02:00
|
|
|
--docdir=/usr/share/doc/pam --enable-read-both-confs
|
|
|
|
DESTDIR=$XBPS_DESTDIR/$pkgname-$version"
|
2008-10-26 06:55:05 +01:00
|
|
|
short_desc="A flexible mechanism for authenticating users"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-12-31 22:37:40 +01:00
|
|
|
checksum=608d3eb9d7a5e1a7505fff62e6a583fdb6e52dc05bf54dc9661c5f395b1fb904
|
2008-10-26 06:55:05 +01:00
|
|
|
long_desc="
|
|
|
|
Linux-PAM provides a flexible mechanism for authenticating users.
|
|
|
|
PAM was invented by SUN Microsystems."
|
|
|
|
|
2010-01-09 00:09:45 +01:00
|
|
|
conf_files="
|
2010-01-17 22:48:29 +01:00
|
|
|
/etc/environment
|
2010-01-09 00:09:45 +01:00
|
|
|
/etc/security/access.conf
|
|
|
|
/etc/security/group.conf
|
|
|
|
/etc/security/limits.conf
|
|
|
|
/etc/security/namespace.conf
|
|
|
|
/etc/security/pam_env.conf
|
|
|
|
/etc/security/time.conf"
|
|
|
|
subpackages="pam-devel pam-userdb"
|
2009-10-15 16:34:31 +02:00
|
|
|
|
2009-12-31 22:37:40 +01:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run cracklib
|
2009-02-25 06:15:20 +01:00
|
|
|
Add_dependency build flex
|
2009-10-30 22:14:09 +01:00
|
|
|
Add_dependency build gettext
|
2009-12-31 22:37:40 +01:00
|
|
|
Add_dependency build cracklib-devel
|
2010-01-07 21:38:12 +01:00
|
|
|
Add_dependency build db-devel
|
2009-04-21 17:56:06 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
rm -rf ${DESTDIR}/var
|
2009-04-21 18:07:01 +02:00
|
|
|
# Fix unix_chkpwd perms.
|
|
|
|
chmod 4755 ${DESTDIR}/sbin/unix_chkpwd
|
2010-01-17 22:48:29 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Fix a syntax error in namespace.init, -p flag is unknown
|
|
|
|
# at least to dash and bash.
|
|
|
|
#
|
|
|
|
sed -i -e "s|^#!/bin/sh -p$|#!/bin/sh|" \
|
|
|
|
${DESTDIR}/etc/security/namespace.init || return 1
|
|
|
|
chmod 755 ${DESTDIR}/etc/security/namespace.init || return 1
|
2009-04-21 17:56:06 +02:00
|
|
|
}
|