[proaudio] [1287] updated pam ebuild

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1287
Author:   evermind
Date:     2008-08-09 17:50:19 +0200 (Sat, 09 Aug 2008)

Log Message:
-----------
updated pam ebuild

Modified Paths:
--------------
    trunk/overlays/proaudio/sys-libs/pam/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/eclass/pam_helper.eclass
    trunk/overlays/proaudio/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch
    trunk/overlays/proaudio/sys-libs/pam/pam-1.0.1.ebuild

Removed Paths:
-------------
    trunk/overlays/proaudio/sys-libs/pam/files/pam-0.78-realtime.patch
    trunk/overlays/proaudio/sys-libs/pam/files/system-auth.pamd.0.78
    trunk/overlays/proaudio/sys-libs/pam/pam-0.78-r6.ebuild
    trunk/overlays/proaudio/sys-libs/pam/pam-0.99.8.1.ebuild


Added: trunk/overlays/proaudio/eclass/pam_helper.eclass
===================================================================
--- trunk/overlays/proaudio/eclass/pam_helper.eclass	                        (rev 0)
+++ trunk/overlays/proaudio/eclass/pam_helper.eclass	2008-08-09 15:50:19 UTC (rev 1287)
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: Frieder Buerzele <evermind@xxxxxxxxxxxxx>
+# Purpose: Display msg after install and add realtime settings to
+#		/etc/security/limits.conf
+#
+
+ECLASS="pam_helper"
+
+inherit pam
+
+add_rt_limits() {
+cat << EOT >> "${S}/modules/pam_limits/limits.conf"
+
+# REALTIME support for audio group users
+@audio          -       rtprio          100
+@audio          -       nice            -10
+@audio          -       memlock         250000
+EOT
+}
+
+pam_helper_pkg_postinst() {
+	elog
+	elog "Please edit file /etc/security/limits.conf"
+	elog "and change this settings to suit your needs"
+	elog
+	elog "@audio          -       rtprio          100"
+	elog "@audio          -       nice            -10"
+	elog "@audio          -       memlock         250000"
+	elog
+}
+EXPORT_FUNCTIONS pkg_postinst

Modified: trunk/overlays/proaudio/sys-libs/pam/Manifest
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/Manifest	2008-08-09 11:41:56 UTC (rev 1286)
+++ trunk/overlays/proaudio/sys-libs/pam/Manifest	2008-08-09 15:50:19 UTC (rev 1287)
@@ -1,15 +1,8 @@
 AUX Linux-PAM-0.99.7.0-disable-regenerate-man.patch 667 RMD160 ad4b61f010ec6f3e8bd9ff137375c64ec594f438 SHA1 7b578fedf5ee73f82575feadfeea7a8d5b98bda0 SHA256 e4deb0732039dd29774248bb33271d578c69b76f86c015e8ffd296fa2bb6be3b
+AUX Linux-PAM-0.99.8.1-xtests.patch 726 RMD160 4740f7039305c2520add212a576c9f16eb6c0db9 SHA1 716cd42c4c785db666b6c9911222760285a79e8f SHA256 6dbbadc4d9a5d08e55b381746dffd501bdd7dc07fdcb741b8ac95df07d5e1223
 AUX other.pamd 139 RMD160 d0f52fd0b830c86b0e933ebfaa8c2c1545337e43 SHA1 6d1f1a5f55c65f13b7fd35396c7f302c1946116e SHA256 3df996d0f5713c92598ac2d3be2b139ec79f3d1e2010bbc53da14c3dd55e64c2
-AUX pam-0.78-realtime.patch 1328 RMD160 6a59772f5caaeaf16d40aa9fcb764d63ab9eae61 SHA1 4aa614e7db47739808395b9d4f4c0adcb87bea6f SHA256 44b090df1676bfb9304681f0b4b878d8d5f33ca1054eb5f75b3399d95cd32549
-AUX system-auth.pamd.0.78 402 RMD160 88a97f51351d0a76c940d3ba032fae133f33a584 SHA1 c421fc1d91a8cac7dbfc84730656219f73aaa22b SHA256 40d7b8409becd389a2ed4b751b85564f03b566ac33ed21c787289da0c4344aeb
 AUX system-auth.pamd.epam 593 RMD160 262c88da0e6ac9ae09f0f1190de2f76396877807 SHA1 926c91cfa56c1480a7fe867ba902a94cf7e36ab7 SHA256 7896556f671ee88582babce4edd851fdc105a101bd8da48d2ef1dfd940b32eca
-DIST Linux-PAM-0.78.tar.gz 488936 RMD160 51643a8942267449b884f79804102fad61567df8 SHA1 fee3e519ac19dff64f7b14ecfa69c09d34411ebe SHA256 a18b9f7b45344a4e49d2647c036894cc6578f249fa0cf024763f1140df684d3e
-DIST Linux-PAM-0.99.8.1-ldflags-to-libadd.patch.bz2 2556 RMD160 e15c0cccb05e32c5a5bf3946525c65044b7ac627 SHA1 44ddff4111fc24de1e00524bdaae4da6070ce3c7 SHA256 2017cbe72cc3440061446e4edd0cd48ae431a99ba6db2b80e1a19e8e8aebf3a6
-DIST Linux-PAM-0.99.8.1.tar.bz2 903827 RMD160 bac7908aebb4671bdf95d0c31086f2ed2d879ef8 SHA1 41ea4d3296cfd0f1709e8b250d5afd3c4e98ef8b SHA256 47abe93a4d451ff6403c04898d386fb568ba7578520c4cf2687122a12e286cd2
-DIST db-4.3.27.tar.gz 5921872 RMD160 711129871c7edd840184bd5a87fb7bf93c8bb953 SHA1 8fddfe98d5ff7fcdb3fe9e23bb361d8f20a35941 SHA256 6f09e04c5811ad72a2a5c99459340cb2c635e6553520af76fc9e717dd6207244
-DIST glib-2.6.5.tar.bz2 2357089 RMD160 6ccdfed7ea5621b7c69c436c3b8b5fbba44dc62e SHA1 82818f9173b0bdc2b26af018e8393eb76318552e SHA256 ca061bbd41c6484b4b0eabbee08f99e51ebf5f3a0c63e8b0787b8d37546cc2ca
-DIST pam-0.78-patches-1.6.tar.bz2 91527 RMD160 af880422f7e0f6440debf6885a4e3ca048dc67a9 SHA1 47683aee7734495707e619c111b93e07bcac5d1f SHA256 54241417a9e19b02457b3d9997e6ca24c14da86e22d447873440853a7525c9bb
-EBUILD pam-0.78-r6.ebuild 11974 RMD160 4c31c0875ff246f4f9214b5343b43f5d44bc3f86 SHA1 44c7e0b72861bce28e39989db27be6def537e013 SHA256 6a28c55539afa1d2d39a8c5580c8581d6972d8c3c670fdeaa7b29b389200a4e6
-EBUILD pam-0.99.8.1.ebuild 5454 RMD160 de13ade7706d27194f286550320338582017b868 SHA1 33b97c0ef05a8b1460d796c8c9f22058e05a7f4c SHA256 0c2f0bb728b2a76d0f554614004b61945989095d2e4e5fb49fca8567cba2b0e2
+DIST Linux-PAM-1.0.1.tar.bz2 979878 RMD160 f8233647163287d3b559d1b8ccb292e2be75326b SHA1 c1cdcd28141344b3501121d32e0d57d2a3c14422 SHA256 209c911dac4cdfe0ecafc41b835b75fc01ac19e68c8382411fb1e0c836e61e09
+EBUILD pam-1.0.1.ebuild 5719 RMD160 a04e4ebe24aa080b12474c712bca6d79aa637828 SHA1 a01202321109665e3212fe9596232990252b0c4f SHA256 4bee322303da03180101bb04ad385ca68e3cf7808d6f88e3efd2c90cf5281953
 MISC ChangeLog 200 RMD160 65118efa9ace3a4c4aa4d070a4e2908c5ce7fec8 SHA1 08e6a85b2e5958e38d5699849b09eb3dd538def2 SHA256 f0d849596d7f5aab83586b0ff7a569435a5e2a136b23584dc6936bee88c01442
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch	                        (rev 0)
+++ trunk/overlays/proaudio/sys-libs/pam/files/Linux-PAM-0.99.8.1-xtests.patch	2008-08-09 15:50:19 UTC (rev 1287)
@@ -0,0 +1,18 @@
+This patch makes sure that the xtests programs don't get build when running
+'make all', as they might fail to build (for instance if GLIBC 2.3 is used).
+
+Note that the tests are not executed by default at make check because they
+are anyway broken.
+Index: Linux-PAM-0.99.9.0/xtests/Makefile.am
+===================================================================
+--- Linux-PAM-0.99.9.0.orig/xtests/Makefile.am
++++ Linux-PAM-0.99.9.0/xtests/Makefile.am
+@@ -29,7 +29,7 @@ XTESTS = tst-pam_dispatch1 tst-pam_dispa
+ 	tst-pam_access4 tst-pam_limits1 tst-pam_succeed_if1 \
+ 	tst-pam_group1
+ 
+-noinst_PROGRAMS = $(XTESTS)
++check_PROGRAMS = $(XTESTS)
+ 
+ xtests: $(XTESTS) run-xtests.sh
+ 	"$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS}

Deleted: trunk/overlays/proaudio/sys-libs/pam/files/pam-0.78-realtime.patch
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/files/pam-0.78-realtime.patch	2008-08-09 11:41:56 UTC (rev 1286)
+++ trunk/overlays/proaudio/sys-libs/pam/files/pam-0.78-realtime.patch	2008-08-09 15:50:19 UTC (rev 1287)
@@ -1,46 +0,0 @@
---- Linux-PAM-0.77/modules/pam_limits/pam_limits.c.rtprio       
-2005-03-13 16:15:07.000000000 +0100
-+++ Linux-PAM-0.77/modules/pam_limits/pam_limits.c      2005-03-13 
-16:27:54.000000000 +0100
-@@ -39,6 +39,11 @@
- #include <grp.h>
- #include <pwd.h>
- 
-+/* Hack to test new rlimit values */
-+#define RLIMIT_NICE    13
-+#define RLIMIT_RTPRIO  14
-+#define RLIM_NLIMITS   15
-+
- /* Module defines */
- #define LINE_LENGTH 1024
- 
-@@ -293,6 +298,10 @@
-     else if (strcmp(lim_item, "locks") == 0)
-        limit_item = RLIMIT_LOCKS;
- #endif
-+    else if (strcmp(lim_item, "rtprio") == 0)
-+       limit_item = RLIMIT_RTPRIO;
-+    else if (strcmp(lim_item, "nice") == 0)
-+       limit_item = RLIMIT_NICE;
-     else if (strcmp(lim_item, "maxlogins") == 0) {
-        limit_item = LIMIT_LOGIN;
-        pl->flag_numsyslogins = 0;
-@@ -360,6 +369,18 @@
-         case RLIMIT_AS:
-             limit_value *= 1024;
-             break;
-+        case RLIMIT_NICE:
-+            if (limit_value > 39)
-+               limit_value = 39;
-+           if (limit_value < 0)
-+               limit_value = 0;
-+            break;
-+        case RLIMIT_RTPRIO:
-+            if (limit_value > 99)
-+               limit_value = 99;
-+           if (limit_value < 0)
-+               limit_value = 0;
-+            break;
-     }
- 
-     if ( (limit_item != LIMIT_LOGIN)

Deleted: trunk/overlays/proaudio/sys-libs/pam/files/system-auth.pamd.0.78
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/files/system-auth.pamd.0.78	2008-08-09 11:41:56 UTC (rev 1286)
+++ trunk/overlays/proaudio/sys-libs/pam/files/system-auth.pamd.0.78	2008-08-09 15:50:19 UTC (rev 1287)
@@ -1,14 +0,0 @@
-#%PAM-1.0
-
-auth       required	pam_env.so
-auth       sufficient	pam_unix.so likeauth nullok
-auth       required	pam_deny.so
-
-account    required	pam_unix.so
-
-password   required	pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
-password   sufficient	pam_unix.so nullok md5 shadow use_authtok
-password   required	pam_deny.so
-
-session    required	pam_limits.so
-session    required	pam_unix.so

Deleted: trunk/overlays/proaudio/sys-libs/pam/pam-0.78-r6.ebuild
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/pam-0.78-r6.ebuild	2008-08-09 11:41:56 UTC (rev 1286)
+++ trunk/overlays/proaudio/sys-libs/pam/pam-0.78-r6.ebuild	2008-08-09 15:50:19 UTC (rev 1287)
@@ -1,411 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-FORCE_SYSTEMAUTH_UPDATE="no"
-
-# BDB is internalized to get a non-threaded lib for pam_userdb.so to
-# be built with.  The runtime-only dependency on BDB suggests the user
-# will use the system-installed db_load to create pam_userdb databases.
-# PWDB is internalized because it is specifically designed to work
-# with Linux-PAM.  I'm not really certain how pervasive the Radius
-# and NIS services of PWDB are at this point.
-
-PATCH_LEVEL="1.6"
-BDB_VER="4.3.27"
-BDB_VER2="4.1.25"
-GLIB_VER="2.6.5"
-PAM_REDHAT_VER="0.78-3"
-
-HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/";
-DESCRIPTION="Pluggable Authentication Modules"
-
-S="${WORKDIR}/Linux-PAM-${PV}"
-S2="${WORKDIR}/pam-${PV}-patches"
-SRC_URI="mirror://kernel/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz
-	mirror://gentoo/pam-${PV}-patches-${PATCH_LEVEL}.tar.bz2
-	berkdb? ( http://downloads.sleepycat.com/db-${BDB_VER}.tar.gz )
-	pam_console? ( ftp://ftp.gtk.org/pub/gtk/v2.6/glib-${GLIB_VER}.tar.bz2 )"
-
-LICENSE="PAM"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
-IUSE="berkdb pwdb selinux pam_chroot pam_console pam_timestamp nis"
-
-RDEPEND=">=sys-libs/cracklib-2.8.3
-	selinux? ( >=sys-libs/libselinux-1.28 )
-	berkdb? ( >=sys-libs/db-${BDB_VER2} )
-	pwdb? ( >=sys-libs/pwdb-0.62 )
-	!sys-auth/pam_console
-	!sys-auth/pam_userdb
-	!sys-auth/pam_chroot"
-
-# Note that we link to static versions of glib (pam_console.so)
-# and pwdb (pam_pwdb.so), so we need glib-2.6.2-r1 or later ...
-DEPEND="${RDEPEND}
-	dev-lang/perl
-	dev-util/pkgconfig
-	>=sys-devel/autoconf-2.59
-	>=sys-devel/automake-1.6
-	>=sys-devel/flex-2.5.4a-r5
-	pwdb? ( >=sys-libs/pwdb-0.62 )"
-
-# Have python sandbox issues currently ...
-#	doc? ( app-text/sgmltools-lite )
-
-PROVIDE="virtual/pam"
-
-#inherit needs to be after DEPEND definition to protect RDEPEND
-inherit eutils toolchain-funcs flag-o-matic gnuconfig pam
-
-apply_pam_patches() {
-	local x=
-	local y=
-	local patches="${T}/patches.$$"
-
-	for x in redhat gentoo; do
-		rm -f "${patches}"
-
-		# Need to be a '| while read x', as some lines may have spaces ...
-		grep -v '^#' "${S2}/list.${x}-patches" | grep -v '^$' | while read y; do
-			# Remove the 'Patch[0-9]*: ' from the redhat list
-			echo "${y}" | sed -e 's|^Patch.*: \(.*\)|\1|' >> "${patches}"
-		done
-		for y in $(cat "${patches}"); do
-			epatch "${S2}/${x}-patches/${y}"
-		done
-	done
-	epatch "${FILESDIR}/${P}-realtime.patch"
-cat << EOT >> "${S}/modules/pam_limits/limits.skel"
-
-# REALTIME support for audio group users
-@audio          -       rtprio          100
-@audio          -       nice            -10
-@audio          -       memlock         250000
-EOT
-}
-
-pkg_setup() {
-	local x=
-
-	#if use pwdb; then
-	#	for x in libpwdb.a libcrack.a; do
-	#		if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then
-	#			eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!"
-	#			die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!"
-	#		fi
-	#	done
-	#fi
-	#if use pam_console; then
-	#	x="libglib-2.0.a"
-	#	if [ ! -f "${ROOT}/usr/$(get_libdir)/${x}" ]; then
-	#		eerror "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!"
-	#		eerror "Please remerge glib-2.6.* to make sure you have static changes."
-	#		die "Could not find /usr/$(get_libdir)/${x} needed to build Linux-PAM!"
-	#	fi
-	#fi
-
-	return 0
-}
-
-src_unpack() {
-	local x=
-
-	unpack ${A} || die "Couldn't unpack ${A}"
-
-	cd ${S} || die
-	tar --no-same-owner -zxf ${S2}/pam-redhat-${PAM_REDHAT_VER}.tar.gz \
-		|| die "Couldn't unpack pam-redhat-${PAM_REDHAT_VER}.tar.gz"
-	# These ones we do not want, or do not work with non RH
-	rm -rf ${S}/modules/{pam_rps,pam_postgresok}
-
-	apply_pam_patches
-
-	if use selinux; then
-		epatch ${S2}/gentoo-patches/pam-0.78-selinux.patch
-		epatch ${S2}/gentoo-patches/pam-0.77-selinux-CAN-2005-2977.patch
-		epatch ${S2}/gentoo-patches/pam-0.78-selinux-getseuserbyname.patch
-	fi
-
-	# Check which extra modules should be built
-	# (Do this after apply_pam_patches(), else some may fail)
-	for x in pam_chroot pam_console pam_timestamp; do
-		use "${x}" || rm -rf "${S}/modules/${x}"
-	done
-	use berkdb || rm -rf "${S}/modules/pam_userdb"
-	use pwdb || rm -rf "${S}/modules/pam_pwdb"
-	use pwdb || rm -rf "${S}/modules/pam_radius"
-
-	for x in $(find ${S} -type f -name 'Makefile*'); do
-		use nis || sed -i -e 's: -DNIS::g' "${x}"
-	done
-	# NIS patch is broken for now
-	use nis && echo 'NIS=yes' >> "${S}/Make.Rules.in"
-
-	# Fixup libdir for 64bit arches
-	sed -ie "s:@get_libdir:$(get_libdir):" ${S}/configure.in
-
-	for readme in modules/pam_*/README; do
-		cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \
-			sed -e 's|^modules/||')
-	done
-
-	# Bug #80604 (If install-sh do not exist, touch it)
-	cp /usr/share/automake/install-sh ${S}/ 2>/dev/null || touch install-sh
-	export WANT_AUTOCONF=2.5
-	autoconf || die
-}
-
-src_compile() {
-	local BDB_DIR="${WORKDIR}/db-${BDB_VER}"
-	local GLIB_DIR="${WORKDIR}/glib-${GLIB_VER}"
-
-	# Bug #70471 (Compile issues with other locales)
-	export LANG=C LC_ALL=C
-
-	if use berkdb ; then
-		einfo "Building Berkley DB ${BDB_VER}..."
-		cd "${BDB_DIR}/build_unix" || die
-
-		# Pam uses berkdb, which db-4.1.x series can't detect mips64, so we fix it
-		if use mips ; then
-			einfo "Updating BDB config.{guess,sub} for mips"
-			S="${BDB_DIR}/dist" \
-			gnuconfig_update
-		fi
-
-		#echo db_cv_mutex=UNIX/fcntl > config.cache
-		#./s_config
-		CFLAGS="${CFLAGS} -fPIC" \
-		../dist/configure \
-			--host=${CHOST} \
-			--cache-file=config.cache \
-			--disable-compat185 \
-			--disable-cxx \
-			--disable-diagnostic \
-			--disable-dump185 \
-			--disable-java \
-			--disable-rpc \
-			--disable-tcl \
-			--disable-shared \
-			--disable-o_direct \
-			--with-pic \
-			--with-uniquename=_pam \
-			--with-mutex="UNIX/fcntl" \
-			--prefix="${S}" \
-			--includedir="${S}/include" \
-			--libdir="${S}/lib" || die "Bad BDB ./configure"
-
-		# XXX: hack out O_DIRECT support in db4 for now.
-		#	   (Done above now with --disable-o_direct now)
-
-		make CC="$(tc-getCC)" || die "BDB build failed"
-		make install || die
-	fi
-
-	if use pam_console ; then
-		einfo "Building GLIB ${GLIB_VER}..."
-		cd "${GLIB_DIR}" || die
-
-		# The __attribute__((visibility("hidden"))) causes TEXTREL issues
-		sed -i -s 's:G_GNUC_INTERNAL::g' "${GLIB_DIR}/glib"/*.c
-
-		CFLAGS="${CFLAGS} -fPIC" \
-		./configure \
-			--host=${CHOST} \
-			--enable-static \
-			--disable-shared \
-			--with-pic \
-			--disable-threads \
-			--with-threads=none \
-			--prefix="${S}" \
-			--includedir="${S}/include" \
-			--libdir="${S}/lib" || die "Bad GLIB ./configure"
-
-		# Do not need to build the whole shebang
-		cd "${GLIB_DIR}/glib" || die
-		make CC="$(tc-getCC)" || die "GLIB build failed"
-		make install || die
-		# Install pkg-config stuff and needed headers
-		cd "${GLIB_DIR}" || die
-		make install-pkgconfigDATA install-exec-local || die
-	fi
-
-	if use berkdb || use pam_console ; then
-		# Make sure out static libs are used
-		export CFLAGS="-I${S}/include -Wl,-L${S}/lib ${CFLAGS}"
-		export LDFLAGS="-L${S}/lib ${LDFLAGS}"
-		export LIBNAME="lib"
-		# Make sure pkg-config can find glib even if not installed in system
-		export PKG_CONFIG_PATH="${S}/lib/pkgconfig:${PKG_CONFIG_PATH}"
-	fi
-
-	einfo "Building Linux-PAM ${PV}..."
-	cd ${S}
-	econf --enable-static-libpam \
-		--enable-fakeroot="${D}" \
-		--libdir="/$(get_libdir)" \
-		--enable-isadir="../../$(get_libdir)/security" \
-		|| die
-
-	# Python stuff in docs gives sandbox problems
-	sed -i -e 's|modules doc examples|modules|' Makefile
-
-	# Fix warnings for gcc-2.95.3
-	if [[ $(gcc-version) = "2.95" ]] ; then
-		sed -i -e "s:-Wpointer-arith::" Make.Rules
-	fi
-
-	if ! use berkdb ; then
-		# Do not build pam_userdb.so ...
-		sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \
-			-e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \
-			-e "s:^HAVE_LIBDB=yes:HAVE_LIBDB=no:" \
-			Make.Rules
-
-		# Also edit the configuration file else the wrong include files
-		# get used
-		sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \
-			   -e "s:^#define HAVE_DB_H.*$:/* #undef HAVE_DB_H */:" \
-			   _pam_aconf.h
-
-	else
-		# Do not link pam_userdb.so to db-1.85 ...
-		sed -i -e "s:^HAVE_NDBM_H=yes:HAVE_NDBM_H=no:" \
-			-e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \
-			Make.Rules
-
-		# Also edit the configuration file else the wrong include files
-		# get used
-		sed -i -e "s:^#define HAVE_NDBM_H.*$:/* #undef HAVE_NDBM_H */:" \
-			_pam_aconf.h
-	fi
-
-	make CC="$(tc-getCC)" || die "PAM build failed"
-}
-
-src_install() {
-	local x=
-
-	einfo "Installing Linux-PAM ${PV}..."
-	make FAKEROOT=${D} \
-		LDCONFIG="" \
-		install || die
-
-	# Make sure every module built.
-	# Do not remove this, as some module can fail to build
-	# and effectively lock the user out of his system.
-	einfo "Checking if all modules were built..."
-	for x in ${S}/modules/pam_*; do
-		if [[ -d ${x} ]] ; then
-			local mod_name=$(basename "${x}")
-			local sec_dir="${D}/$(get_libdir)/security"
-
-			if ! ls -1 "${sec_dir}/${mod_name}"*.so &> /dev/null ; then
-				echo
-				eerror "ERROR: ${mod_name} module did not build."
-				echo
-				die "${mod_name} module did not build."
-			fi
-			if [[ -n $(ldd "${sec_dir}/${mod_name}"*.so 2>&1 | \
-					   grep "/usr/lib/" | \
-					   grep "/usr/$(get_libdir)/" | \
-					   grep -v "/usr/lib/gcc" | \
-					   grep -v "/usr/$(get_libdir)/gcc" | \
-					   grep -v "libsandbox") ]] ; then
-				echo
-				eerror "ERROR: ${mod_name} have dependencies in /usr."
-				echo
-				die "${mod_name} have dependencies in /usr."
-			fi
-		fi
-	done
-
-	dodir /usr/$(get_libdir)
-	cd ${D}/$(get_libdir)
-	for x in pam pamc pam_misc; do
-		rm lib${x}.so
-		ln -s lib${x}.so.${PV} lib${x}.so
-		ln -s lib${x}.so.${PV} lib${x}.so.0
-		mv lib${x}.a ${D}/usr/$(get_libdir)
-		# See bug #4411
-		gen_usr_ldscript lib${x}.so
-	done
-
-	cd ${S}
-
-	# need this for pam_console
-	keepdir /var/run/console
-
-	newpamd "${FILESDIR}/system-auth.pamd.0.78" system-auth
-	newpamd "${FILESDIR}/other.pamd" other
-
-	# Only add this one if needed.
-	if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then
-		newpamd "${FILESDIR}/system-auth.pamd.0.78" system-auth.new || \
-			die "Failed to install system-auth.new!"
-	fi
-
-	insinto /etc/security
-	doins "${S2}/gentoo-extrafiles/pam_env.conf"
-	doman doc/man/*.[0-9]
-
-	dodoc CHANGELOG Copyright README
-	docinto modules ; dodoc modules/README ; dodoc doc/txts/README.*
-	# Install our own README.pam_console
-	docinto modules ; dodoc "${S2}/gentoo-extrafiles/README.pam_console"
-	docinto txt ; dodoc doc/specs/*.txt #doc/txts/*.txt
-#	docinto print ; dodoc doc/ps/*.ps
-
-#	docinto html
-#	dohtml -r doc/html/
-}
-
-pkg_postinst() {
-	echo
-	elog "If you have sshd running, please restart it to avoid possible login issues."
-	echo
-	ebeep
-	sleep 3
-
-	if [[ ${FORCE_SYSTEMAUTH_UPDATE} = "yes" ]] ; then
-		local CHECK1=$(md5sum ${ROOT}/etc/pam.d/system-auth | cut -d ' ' -f 1)
-		local CHECK2=$(md5sum ${ROOT}/etc/pam.d/system-auth.new | cut -d ' ' -f 1)
-
-		if [[ ${CHECK1} != "${CHECK2}" ]] ; then
-			ewarn "Due to a security issue, ${ROOT}etc/pam.d/system-auth "
-			ewarn "is being updated automatically. Your old "
-			ewarn "system-auth will be backed up as:"
-			ewarn
-			ewarn "	 ${ROOT}etc/pam.d/system-auth.bak"
-			echo
-
-			cp -pPR ${ROOT}/etc/pam.d/system-auth \
-				${ROOT}/etc/pam.d/system-auth.bak;
-				${ROOT}/etc/pam.d/system-auth.bak;
-			mv -f ${ROOT}/etc/pam.d/system-auth.new \
-				${ROOT}/etc/pam.d/system-auth
-			rm -f ${ROOT}/etc/pam.d/._cfg????_system-auth
-		else
-			rm -f ${ROOT}/etc/pam.d/system-auth.new
-		fi
-	fi
-
-	if use pam_console; then
-		echo
-		elog "If you want to enable the pam_console module, please follow"
-		elog "the instructions in /usr/share/doc/${PF}/README.pam_console."
-		echo
-	fi
-
-	einfo
-	einfo "Please edit file /etc/security/limits.conf"
-	einfo "and change this settings to suit your needs"
-	einfo
-	einfo "@audio          -       rtprio          100"
-	einfo "@audio          -       nice            -10"
-	einfo "@audio          -       memlock         250000"
-	einfo
-	echo
-
-}

Deleted: trunk/overlays/proaudio/sys-libs/pam/pam-0.99.8.1.ebuild
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/pam-0.99.8.1.ebuild	2008-08-09 11:41:56 UTC (rev 1286)
+++ trunk/overlays/proaudio/sys-libs/pam/pam-0.99.8.1.ebuild	2008-08-09 15:50:19 UTC (rev 1287)
@@ -1,186 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.8.1.ebuild,v 1.1 2007/07/26 16:59:42 flameeyes Exp $
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-
-inherit libtool multilib eutils autotools pam toolchain-funcs
-
-MY_PN="Linux-PAM"
-MY_P="${MY_PN}-${PV}"
-
-HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/";
-DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
-
-SRC_URI="mirror://kernel/linux/libs/pam/pre/library/${MY_P}.tar.bz2
-	mirror://gentoo/${MY_P}-ldflags-to-libadd.patch.bz2"
-
-LICENSE="PAM"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax"
-
-RDEPEND="nls? ( virtual/libintl )
-	cracklib? ( >=sys-libs/cracklib-2.8.3 )
-	sys-libs/pwdb
-	selinux? ( >=sys-libs/libselinux-1.28 )"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
-PDEPEND="vim-syntax? ( app-vim/pam-syntax )"
-
-S="${WORKDIR}/${MY_P}"
-
-PROVIDE="virtual/pam"
-
-check_old_modules() {
-	local retval="0"
-
-	if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q pam_stack.so; then
-		eerror ""
-		eerror "Your current setup is using the pam_stack module."
-		eerror "This module is deprecated and no more supported, and since version"
-		eerror "0.99 is no more installed, nor provided by any other package."
-		eerror "The package will be built (to allow binary package builds), but will"
-		eerror "not be installed."
-		eerror "Please replace pam_stack usage with proper include directive usage,"
-		eerror "following the PAM Upgrade guide at the following URL"
-		eerror "  http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml";
-		eerror ""
-		ebeep 15
-
-		retval=1
-	fi
-
-	if sed -e 's:#.*::' /etc/pam.d/* | egrep -q 'pam_(pwdb|radius|timestamp)'; then
-		eerror ""
-		eerror "Your current setup is using one or more of the following modules,"
-		eerror "that are not built or supported anymore:"
-		eerror "pam_pwdb, pam_radius, pam_timestamp"
-		eerror "If you are in real need for these modules, please contact the maintainers"
-		eerror "of PAM through http://bugs.gentoo.org/ providing information about its"
-		eerror "use cases."
-		ebeep 10
-
-		retval=1
-	fi
-
-	# Produce the warnings only during upgrade, for the following two
-	has_version '<sys-libs/pam-0.99' || return $retval
-
-	# This works only for those modules that are moved to sys-auth/$module, or the
-	# message will be wrong.
-	for module in pam_chroot pam_console pam_userdb; do
-		if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q ${module}.so; then
-			ewarn ""
-			ewarn "Your current setup is using the ${module} module."
-			ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module"
-			ewarn "anymore; if you want to continue using this module, you should install"
-			ewarn "sys-auth/${module}."
-			ewarn ""
-			ebeep 5
-		fi
-	done
-
-	return $retval
-}
-
-pkg_setup() {
-	check_old_modules
-}
-
-src_unpack() {
-	unpack ${A}
-	cd "${S}"
-cat << EOT >> "${S}/modules/pam_limits/limits.conf"
-
-# REALTIME support for audio group users
-@audio          -       rtprio          100
-@audio          -       nice            -10
-@audio          -       memlock         250000
-EOT
-
-	mkdir -p doc/txts
-	for readme in modules/pam_*/README; do
-		cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \
-			sed -e 's|^modules/||')
-	done
-
-	epatch "${DISTDIR}/${MY_P}-ldflags-to-libadd.patch.bz2"
-	epatch "${FILESDIR}/${MY_PN}-0.99.7.0-disable-regenerate-man.patch"
-
-	AT_M4DIR="m4" eautoreconf
-
-	elibtoolize
-}
-
-src_compile() {
-	local myconf
-
-	if use hppa || use elibc_FreeBSD; then
-		myconf="${myconf} --disable-pie"
-	fi
-
-	econf \
-		$(use_enable nls) \
-		$(use_enable selinux) \
-		$(use_enable cracklib) \
-		--libdir=/usr/$(get_libdir) \
-		--disable-db \
-		--enable-securedir=/$(get_libdir)/security \
-		--enable-isadir=/$(get_libdir)/security \
-		--disable-dependency-tracking \
-		--disable-prelude \
-		--enable-docdir=/usr/share/doc/${PF} \
-		--disable-regenerate-man \
-		${myconf} || die "econf failed"
-	emake || die "emake failed"
-}
-
-src_install() {
-	emake DESTDIR="${D}" install || die "make install failed"
-
-	# Need to be suid
-	fperms u+s /sbin/unix_chkpwd
-
-	dodir /$(get_libdir)
-	mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
-	mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"
-	mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/"
-	gen_usr_ldscript libpam.so libpamc.so libpam_misc.so
-
-	# No, we don't really need .la files for PAM modules.
-	rm -f "${D}/$(get_libdir)/security/"*.la
-
-	dodoc CHANGELOG ChangeLog README AUTHORS Copyright
-	docinto modules ; dodoc doc/txts/README.*
-
-	newpamd "${FILESDIR}/system-auth.pamd.epam" system-auth
-	newpamd "${FILESDIR}/other.pamd" other
-
-	# Remove the wrongly installed manpages
-	rm "${D}"/usr/share/man/man8/pam_userdb.8*
-	use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8*
-}
-
-pkg_preinst() {
-	check_old_modules || die "deprecated PAM modules still used"
-
-	pam_epam_expand "${D}"/etc/pam.d/*
-}
-
-pkg_postinst() {
-	if ! use cracklib; then
-		ewarn "You chosen not to enable cracklib. Make sure you run etc-update or"
-		ewarn "you won't be able to change users' passwords."
-	fi
-
-	elog
-	elog "Please edit file /etc/security/limits.conf"
-	elog "and change this settings to suit your needs"
-	elog
-	elog "@audio          -       rtprio          100"
-	elog "@audio          -       nice            -10"
-	elog "@audio          -       memlock         250000"
-	elog
-}

Added: trunk/overlays/proaudio/sys-libs/pam/pam-1.0.1.ebuild
===================================================================
--- trunk/overlays/proaudio/sys-libs/pam/pam-1.0.1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/sys-libs/pam/pam-1.0.1.ebuild	2008-08-09 15:50:19 UTC (rev 1287)
@@ -0,0 +1,184 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.0.1.ebuild,v 1.12 2008/07/31 14:08:58 flameeyes Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit libtool multilib eutils autotools pam_helper toolchain-funcs flag-o-matic
+
+MY_PN="Linux-PAM"
+MY_P="${MY_PN}-${PV}"
+
+HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/";
+DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
+
+SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2"
+
+LICENSE="PAM"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
+IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc"
+
+RDEPEND="nls? ( virtual/libintl )
+	cracklib? ( >=sys-libs/cracklib-2.8.3 )
+	audit? ( sys-process/audit )
+	selinux? ( >=sys-libs/libselinux-1.28 )"
+DEPEND="${RDEPEND}
+	sys-devel/flex
+	test? ( elibc_glibc? ( >=sys-libs/glibc-2.4 ) )
+	nls? ( sys-devel/gettext )"
+PDEPEND="sys-auth/pambase
+	vim-syntax? ( app-vim/pam-syntax )"
+
+S="${WORKDIR}/${MY_P}"
+
+PROVIDE="virtual/pam"
+
+check_old_modules() {
+	local retval="0"
+
+	if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
+		eerror ""
+		eerror "Your current setup is using the pam_stack module."
+		eerror "This module is deprecated and no longer supported, and since version"
+		eerror "0.99 is no longer installed, nor provided by any other package."
+		eerror "The package will be built (to allow binary package builds), but will"
+		eerror "not be installed."
+		eerror "Please replace pam_stack usage with proper include directive usage,"
+		eerror "following the PAM Upgrade guide at the following URL"
+		eerror "  http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml";
+		eerror ""
+		ebeep 15
+
+		retval=1
+	fi
+
+	if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|timestamp|console)'; then
+		eerror ""
+		eerror "Your current setup is using one or more of the following modules,"
+		eerror "that are not built or supported anymore:"
+		eerror "pam_pwdb, pam_timestamp, pam_console"
+		eerror "If you are in real need for these modules, please contact the maintainers"
+		eerror "of PAM through http://bugs.gentoo.org/ providing information about its"
+		eerror "use cases."
+		eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
+		eerror "  http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml";
+		eerror ""
+		ebeep 10
+
+		retval=1
+	fi
+
+	# Produce the warnings only during upgrade, for the following two
+	has_version '<sys-libs/pam-0.99' || return $retval
+
+	# This works only for those modules that are moved to sys-auth/$module, or the
+	# message will be wrong.
+	for module in pam_chroot pam_userdb pam_radius; do
+		if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q ${module}.so; then
+			ewarn ""
+			ewarn "Your current setup is using the ${module} module."
+			ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module"
+			ewarn "anymore; if you want to continue using this module, you should install"
+			ewarn "sys-auth/${module}."
+			ewarn ""
+			ebeep 5
+		fi
+	done
+
+	return $retval
+}
+
+pkg_setup() {
+	check_old_modules
+}
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+	
+	add_rt_limits
+
+	mkdir -p doc/txts
+	for readme in modules/pam_*/README; do
+		cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \
+			sed -e 's|^modules/||')
+	done
+
+	epatch "${FILESDIR}/${MY_PN}-0.99.7.0-disable-regenerate-man.patch"
+	epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch"
+
+	AT_M4DIR="m4" eautoreconf
+
+	elibtoolize
+}
+
+src_compile() {
+	local myconf
+
+	# Workarounds autoconf 2.62 bug, libintl.h is included before
+	# _GNU_SOURCE is defined in config.h. See bug #217154
+	append-flags -D_GNU_SOURCE
+
+	if use hppa || use elibc_FreeBSD; then
+		myconf="${myconf} --disable-pie"
+	fi
+
+	# KEEP COMMENTED OUT! It seems like it fails to build with USE=debug!
+	# Do _not_ move this to $(use_enable) without checking if the
+	# configure.in has been fixed. As of 2008/07/31 it's still broken
+	# on upstream's CVS, and --disable-debug means --enable-debug too.
+	# if use debug; then
+	# 	myconf="${myconf} --enable-debug"
+	# fi
+
+	econf \
+		--libdir=/usr/$(get_libdir) \
+		--docdir=/usr/share/doc/${PF} \
+		--htmldir=/usr/share/doc/${PF}/html \
+		--enable-securedir=/$(get_libdir)/security \
+		--enable-isadir=/$(get_libdir)/security \
+		$(use_enable nls) \
+		$(use_enable selinux) \
+		$(use_enable cracklib) \
+		$(use_enable audit) \
+		--disable-db \
+		--disable-dependency-tracking \
+		--disable-prelude \
+		--disable-regenerate-man \
+		${myconf} || die "econf failed"
+	emake sepermitlockdir="/var/run/sepermit" || die "emake failed"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install \
+		 sepermitlockdir="/var/run/sepermit" || die "make install failed"
+
+	# Need to be suid
+	fperms u+s /sbin/unix_chkpwd
+
+	dodir /$(get_libdir)
+	mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
+	mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"
+	mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/"
+	gen_usr_ldscript libpam.so libpamc.so libpam_misc.so
+
+	dodoc CHANGELOG ChangeLog README AUTHORS Copyright
+	docinto modules ; dodoc doc/txts/README.*
+
+	# Remove the wrongly installed manpages
+	rm "${D}"/usr/share/man/man8/pam_userdb.8*
+	use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8*
+
+	# Get rid of the .la files. We certainly don't need them for PAM
+	# modules, and libpam is installed as a shared object only, so we
+	# don't ned them for static linking either.
+	find "${D}" -name '*.la' -delete
+}
+
+pkg_preinst() {
+	check_old_modules || die "deprecated PAM modules still used"
+
+	pam_epam_expand "${D}"/etc/pam.d/*
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/