pam: switch to /usr.
This commit is contained in:
parent
219a2be6da
commit
ab52b76b4d
|
@ -1,13 +1,12 @@
|
||||||
# Template file for 'pam-devel'.
|
# 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)"
|
short_desc="${short_desc} (development files)"
|
||||||
long_desc="${long_desc}
|
long_desc="${long_desc}
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
This package contains files for development, headers, static libs, etc."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
vmove usr/share/man/man3 usr/share/man
|
vmove usr/share/man/man3 usr/share/man
|
||||||
|
|
|
@ -8,9 +8,7 @@ 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."
|
||||||
|
|
||||||
|
do_install() {
|
||||||
do_install()
|
vmove usr/lib/security/pam_userdb.so usr/lib/security
|
||||||
{
|
|
||||||
vmove lib/security/pam_userdb.so lib/security
|
|
||||||
vmove usr/share/man/man8/pam_userdb.8 usr/share/man/man8
|
vmove usr/share/man/man8/pam_userdb.8 usr/share/man/man8
|
||||||
}
|
}
|
||||||
|
|
10
srcpkgs/pam/patches/pam_unix_sys_resource.patch
Normal file
10
srcpkgs/pam/patches/pam_unix_sys_resource.patch
Normal 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>
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
# Template file for 'pam'
|
# Template file for 'pam'
|
||||||
pkgname=pam
|
pkgname=pam
|
||||||
version=1.1.5
|
version=1.1.5
|
||||||
|
revision=4
|
||||||
wrksrc="Linux-PAM-$version"
|
wrksrc="Linux-PAM-$version"
|
||||||
#distfiles="${KERNEL_SITE}/libs/pam/library/Linux-PAM-$version.tar.bz2"
|
build_style=gnu-configure
|
||||||
distfiles="https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$version.tar.bz2"
|
configure_args="--libdir=/usr/lib --sbindir=/usr/sbin --docdir=/usr/share/doc/pam"
|
||||||
revision=3
|
subpackages="pam-devel pam-userdb"
|
||||||
makedepends="flex cracklib-devel db-devel"
|
makedepends="flex cracklib-devel db-devel libtirpc-devel"
|
||||||
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>"
|
||||||
homepage="http://www.kernel.org/pub/linux/libs/pam/"
|
homepage="http://www.kernel.org/pub/linux/libs/pam/"
|
||||||
license="GPL-2"
|
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
|
checksum=65def4df04254dc4c5156859d36c34ad6d7afbcf3adbf2780530ebc4dbf2a116
|
||||||
long_desc="
|
long_desc="
|
||||||
Linux-PAM provides a flexible mechanism for authenticating users.
|
Linux-PAM provides a flexible mechanism for authenticating users.
|
||||||
|
@ -23,26 +26,10 @@ conf_files="
|
||||||
/etc/security/namespace.conf
|
/etc/security/namespace.conf
|
||||||
/etc/security/pam_env.conf
|
/etc/security/pam_env.conf
|
||||||
/etc/security/time.conf"
|
/etc/security/time.conf"
|
||||||
subpackages="pam-devel pam-userdb"
|
|
||||||
|
|
||||||
|
post_install() {
|
||||||
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
|
|
||||||
# Fix unix_chkpwd perms.
|
# 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
|
# Fix a syntax error in namespace.init, -p flag is unknown
|
||||||
# at least to dash and bash.
|
# at least to dash and bash.
|
||||||
|
|
Loading…
Reference in a new issue