pam: switch to /usr.

This commit is contained in:
Juan RP 2012-07-09 15:05:50 +02:00
parent 219a2be6da
commit ab52b76b4d
4 changed files with 23 additions and 29 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'pam-devel'.
#
depends="cracklib-devel db-devel pam"
noarch=yes
depends="cracklib-devel db-devel pam>=$version"
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install() {
vmove usr/include usr
vmove usr/share/man/man3 usr/share/man

View file

@ -8,9 +8,7 @@ long_desc="${long_desc}
username, and the data fields corresponding to the username keys are the
passwords."
do_install()
{
vmove lib/security/pam_userdb.so lib/security
do_install() {
vmove usr/lib/security/pam_userdb.so usr/lib/security
vmove usr/share/man/man8/pam_userdb.8 usr/share/man/man8
}

View file

@ -0,0 +1,10 @@
--- modules/pam_unix/pam_unix_acct.c.orig 2012-07-09 15:01:11.592269364 +0200
+++ modules/pam_unix/pam_unix_acct.c 2012-07-09 15:01:54.615228076 +0200
@@ -47,6 +47,7 @@
#include <time.h> /* for time() */
#include <errno.h>
#include <sys/wait.h>
+#include <sys/resource.h> /* for RLIMIT_NOFILE */
#include <security/_pam_macros.h>

View file

@ -1,15 +1,18 @@
# Template file for 'pam'
pkgname=pam
version=1.1.5
revision=4
wrksrc="Linux-PAM-$version"
#distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2"
distfiles="https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$version.tar.bz2"
revision=3
makedepends="flex cracklib-devel db-devel"
build_style=gnu-configure
configure_args="--libdir=/usr/lib --sbindir=/usr/sbin --docdir=/usr/share/doc/pam"
subpackages="pam-devel pam-userdb"
makedepends="flex cracklib-devel db-devel libtirpc-devel"
short_desc="A flexible mechanism for authenticating users"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/pub/linux/libs/pam/"
license="GPL-2"
#distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2"
distfiles="https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$version.tar.bz2"
checksum=65def4df04254dc4c5156859d36c34ad6d7afbcf3adbf2780530ebc4dbf2a116
long_desc="
Linux-PAM provides a flexible mechanism for authenticating users.
@ -23,26 +26,10 @@ conf_files="
/etc/security/namespace.conf
/etc/security/pam_env.conf
/etc/security/time.conf"
subpackages="pam-devel pam-userdb"
do_configure() {
./configure ${CONFIGURE_SHARED_ARGS} \
--disable-selinux --libdir=/lib \
--disable-rpath --docdir=/usr/share/doc/pam \
--enable-read-both-confs DESTDIR=${DESTDIR}
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
rm -rf ${DESTDIR}/var
post_install() {
# Fix unix_chkpwd perms.
chmod 4755 ${DESTDIR}/sbin/unix_chkpwd
chmod 4755 ${DESTDIR}/usr/sbin/unix_chkpwd
#
# Fix a syntax error in namespace.init, -p flag is unknown
# at least to dash and bash.