diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-07-08 15:37:36 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-07-08 15:37:36 +0000 |
commit | 9fa428a2c191dc509edc8c44c77c21caaf147ee9 (patch) | |
tree | 94097566746a7ccf3b36e00eaa86e565540ba70b /sys-auth | |
parent | Use dev-lang/ghc rather than virtual/ghc. (diff) | |
download | historical-9fa428a2c191dc509edc8c44c77c21caaf147ee9.tar.gz historical-9fa428a2c191dc509edc8c44c77c21caaf147ee9.tar.bz2 historical-9fa428a2c191dc509edc8c44c77c21caaf147ee9.zip |
Bump to current Linux-PAM version, change the dependency to block older Linux-PAM so that the dependency over Linux-PAM can be replaced with a virtual dependency, for usage with OpenPAM.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/pam_userdb/ChangeLog | 11 | ||||
-rw-r--r-- | sys-auth/pam_userdb/Manifest | 28 | ||||
-rw-r--r-- | sys-auth/pam_userdb/files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch | 20 | ||||
-rw-r--r-- | sys-auth/pam_userdb/files/digest-pam_userdb-0.99.8.0 | 6 | ||||
-rw-r--r-- | sys-auth/pam_userdb/pam_userdb-0.99.8.0.ebuild | 128 |
5 files changed, 184 insertions, 9 deletions
diff --git a/sys-auth/pam_userdb/ChangeLog b/sys-auth/pam_userdb/ChangeLog index 0d62f1ee205c..3fdbbbe4a109 100644 --- a/sys-auth/pam_userdb/ChangeLog +++ b/sys-auth/pam_userdb/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-auth/pam_userdb # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_userdb/ChangeLog,v 1.11 2007/07/02 15:28:53 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_userdb/ChangeLog,v 1.12 2007/07/08 15:37:36 flameeyes Exp $ + +*pam_userdb-0.99.8.0 (08 Jul 2007) + + 08 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> + +files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch, + +pam_userdb-0.99.8.0.ebuild: + Bump to current Linux-PAM version, change the dependency to block older + Linux-PAM so that the dependency over Linux-PAM can be replaced with a + virtual dependency, for usage with OpenPAM. 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> pam_userdb-0.99.6.3.ebuild: diff --git a/sys-auth/pam_userdb/Manifest b/sys-auth/pam_userdb/Manifest index f3fb87cef019..34fc1845925c 100644 --- a/sys-auth/pam_userdb/Manifest +++ b/sys-auth/pam_userdb/Manifest @@ -5,16 +5,25 @@ AUX Linux-PAM-0.99.6.3-berkdbpam.patch 668 RMD160 adcfb1610b5372e18a0a89d5783348 MD5 2e021e62cfd180847517510e52139dc6 files/Linux-PAM-0.99.6.3-berkdbpam.patch 668 RMD160 adcfb1610b5372e18a0a89d5783348bad4dc3d0b files/Linux-PAM-0.99.6.3-berkdbpam.patch 668 SHA256 a1af44e28e2429d88dbe0758de63ebf67cb48c1610b29c4bbc50410fc4731f1b files/Linux-PAM-0.99.6.3-berkdbpam.patch 668 +AUX Linux-PAM-0.99.8.0-berkdb-uniquename.patch 1219 RMD160 ec2e0a5dfdafef6a35c654bbabe0d2cfee972a1c SHA1 43ab97b13bce6c139d25c80a110df20f5c0786d7 SHA256 7ec759c0db02104bbb44ae3e28eb65b32fae922e19a916d1d81344533fa1af51 +MD5 b5d4fd487e4b71679527579187d7698c files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch 1219 +RMD160 ec2e0a5dfdafef6a35c654bbabe0d2cfee972a1c files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch 1219 +SHA256 7ec759c0db02104bbb44ae3e28eb65b32fae922e19a916d1d81344533fa1af51 files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch 1219 DIST Linux-PAM-0.99.6.3.tar.bz2 863340 RMD160 9c02478d0b5fe5af72b736a64ede6b09618c98e0 SHA1 984f86b5a767fba1572c7963b8f8c997132fff2b SHA256 8468b0fd062cead62a66a048280d28ed70420eefc55b5c9a3fdb361891f2ccd4 +DIST Linux-PAM-0.99.8.0.tar.bz2 903366 RMD160 9e2c9bc00318ef711a2af4561a1c763c2ca28db5 SHA1 c344c7887d80eae5dc1ab7ac3ebfb412d555c4cf SHA256 4b42990b4cada5ad0abefd6048b8646b17813448fbf13d758cbce605908f02a2 DIST db-4.3.29.tar.gz 6103264 RMD160 fac910828a74087124e9cc3cad99c6a6dc88c14b SHA1 7ddac51fcbd5945aed154be2ee1fe166b3acd628 SHA256 db3e762d819f9a31bc4ebf5ecada53e9787aeb26fc92fa6064b2ba57df806af4 EBUILD pam_userdb-0.99.6.3.ebuild 3391 RMD160 3339b2e750d5c31134b2f0deae0d848cca48d376 SHA1 e2721f5a6f19f01f68750bed2cc8e50138782fff SHA256 5d7d42d744fe90e352417601c57f74e04aa97e8b6683db3d86becd012cbf8292 MD5 2dac87f462a5dc463c0528692d79e8e0 pam_userdb-0.99.6.3.ebuild 3391 RMD160 3339b2e750d5c31134b2f0deae0d848cca48d376 pam_userdb-0.99.6.3.ebuild 3391 SHA256 5d7d42d744fe90e352417601c57f74e04aa97e8b6683db3d86becd012cbf8292 pam_userdb-0.99.6.3.ebuild 3391 -MISC ChangeLog 1706 RMD160 a486804cb9a34f20ef9f88375a6a4f95afe584d1 SHA1 4d9ed8807ace526c11531ffe2638fa1e0fc30835 SHA256 3b6d2c3cedbc23393ec4a2cb39a27e992d8dd1cb17a6f09acd0f60fce855d134 -MD5 60b31eb146e11a5d991755a8552291b9 ChangeLog 1706 -RMD160 a486804cb9a34f20ef9f88375a6a4f95afe584d1 ChangeLog 1706 -SHA256 3b6d2c3cedbc23393ec4a2cb39a27e992d8dd1cb17a6f09acd0f60fce855d134 ChangeLog 1706 +EBUILD pam_userdb-0.99.8.0.ebuild 3494 RMD160 890717aeb97689b4f209ae01ba8f94c8cf138830 SHA1 b23a8756e04d31795c632e6f57d70d76e033f7fa SHA256 4e7b0b0509bec4b6c8626aa1d8037f5d7a39751077a72138f0876242feadcfba +MD5 8818a3da03f5ae905fadc2c14072c046 pam_userdb-0.99.8.0.ebuild 3494 +RMD160 890717aeb97689b4f209ae01ba8f94c8cf138830 pam_userdb-0.99.8.0.ebuild 3494 +SHA256 4e7b0b0509bec4b6c8626aa1d8037f5d7a39751077a72138f0876242feadcfba pam_userdb-0.99.8.0.ebuild 3494 +MISC ChangeLog 2077 RMD160 17c5816119d173a0741a334b73789365e0d7fcdb SHA1 3d2944ebfe9b7a35f564800766311e70afcb9d8c SHA256 647db258f0168a6991584083ffd23722d7c8dfc13bbdddac0f6c868147b1fec4 +MD5 8f0d95f5c06ed554b685661312181635 ChangeLog 2077 +RMD160 17c5816119d173a0741a334b73789365e0d7fcdb ChangeLog 2077 +SHA256 647db258f0168a6991584083ffd23722d7c8dfc13bbdddac0f6c868147b1fec4 ChangeLog 2077 MISC metadata.xml 218 RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c SHA1 02dacc356a39905402083cb54ae4f6dd0ac59fad SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c MD5 393d06cf4b76671f8e6ce72ac71bdad8 metadata.xml 218 RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c metadata.xml 218 @@ -22,10 +31,13 @@ SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c metadata MD5 650dcefdfe741fe73766f551cb658db3 files/digest-pam_userdb-0.99.6.3 491 RMD160 b4d27b0a9ce5341505df826a8b0abf9fa55e75e0 files/digest-pam_userdb-0.99.6.3 491 SHA256 15bc6a434ce490e32ec2bd026596abc89cc53df3b738b7d9e17013c79d28f328 files/digest-pam_userdb-0.99.6.3 491 +MD5 8a651f1d15b02d7e838b4a9d3a6fff5a files/digest-pam_userdb-0.99.8.0 491 +RMD160 d6980527f810bf60e6ccc4757332dd65146dca4c files/digest-pam_userdb-0.99.8.0 491 +SHA256 456e1f3585fea37604bca4e2b1512cec402e288208d693df0ca197a1f86d399e files/digest-pam_userdb-0.99.8.0 491 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.4 (GNU/Linux) +Version: GnuPG v2.0.5 (GNU/Linux) -iD8DBQFGiRm2ppoStNGKGywRAnSiAJ0YgmpQeoNs3zgBWMkHu6A8JzoJJgCgtNvi -jymh3hGZP1S/ZoNNxbG9udA= -=iFVE +iD8DBQFGkQTGAiZjviIA2XgRAst8AKDWEmBLvHMLqgzlzx5WATrNuMZT/ACgllDo +SfbSqOl5qVtNI+WKyifjeFs= +=stPo -----END PGP SIGNATURE----- diff --git a/sys-auth/pam_userdb/files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch b/sys-auth/pam_userdb/files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch new file mode 100644 index 000000000000..45223a6809de --- /dev/null +++ b/sys-auth/pam_userdb/files/Linux-PAM-0.99.8.0-berkdb-uniquename.patch @@ -0,0 +1,20 @@ +Index: Linux-PAM-0.99.8.0/configure.in +=================================================================== +--- Linux-PAM-0.99.8.0.orig/configure.in ++++ Linux-PAM-0.99.8.0/configure.in +@@ -351,11 +351,13 @@ dnl libraries are unuseable, so try libd + AC_ARG_ENABLE([db], + AC_HELP_STRING([--enable-db=(db|ndbm|yes|no)],[Default behavior 'yes', which is to check for libdb first, followed by ndbm. Use 'no' to disable db support.]), + WITH_DB=$enableval, WITH_DB=yes) ++AC_ARG_WITH([db-uniquename], ++ AC_HELP_STRING([--with-db-uniquename=extension],[Unique name for db libraries and functions.])) + if test x"$WITH_DB" != xno ; then + if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then +- AC_CHECK_LIB([db], [db_create], LIBDB="-ldb", LIBDB="") ++ AC_CHECK_LIB([db$with_db_uniquename], [db_create$with_db_uniquename], LIBDB="-ldb$with_db_uniquename", LIBDB="") + if test -z "$LIBDB" ; then +- AC_CHECK_LIB([db], [dbm_store], LIBDB="-ldb", LIBDB="") ++ AC_CHECK_LIB([db$with_db_uniquename], [dbm_store$with_db_uniquename], LIBDB="-ldb$with_db_uniquename", LIBDB="") + fi + fi + if test -z "$LIBDB" ; then diff --git a/sys-auth/pam_userdb/files/digest-pam_userdb-0.99.8.0 b/sys-auth/pam_userdb/files/digest-pam_userdb-0.99.8.0 new file mode 100644 index 000000000000..1938eb9fdce8 --- /dev/null +++ b/sys-auth/pam_userdb/files/digest-pam_userdb-0.99.8.0 @@ -0,0 +1,6 @@ +MD5 e05a9a1e95ec9bcfa5c09d44f46ad943 Linux-PAM-0.99.8.0.tar.bz2 903366 +RMD160 9e2c9bc00318ef711a2af4561a1c763c2ca28db5 Linux-PAM-0.99.8.0.tar.bz2 903366 +SHA256 4b42990b4cada5ad0abefd6048b8646b17813448fbf13d758cbce605908f02a2 Linux-PAM-0.99.8.0.tar.bz2 903366 +MD5 13585a20ce32f113b8e8cdb57f52e3bb db-4.3.29.tar.gz 6103264 +RMD160 fac910828a74087124e9cc3cad99c6a6dc88c14b db-4.3.29.tar.gz 6103264 +SHA256 db3e762d819f9a31bc4ebf5ecada53e9787aeb26fc92fa6064b2ba57df806af4 db-4.3.29.tar.gz 6103264 diff --git a/sys-auth/pam_userdb/pam_userdb-0.99.8.0.ebuild b/sys-auth/pam_userdb/pam_userdb-0.99.8.0.ebuild new file mode 100644 index 000000000000..ec43533c1586 --- /dev/null +++ b/sys-auth/pam_userdb/pam_userdb-0.99.8.0.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_userdb/pam_userdb-0.99.8.0.ebuild,v 1.1 2007/07/08 15:37:36 flameeyes Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +inherit libtool multilib eutils pam autotools toolchain-funcs flag-o-matic + +# 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. +BDB_VER="4.3.29" + +MY_P="Linux-PAM-${PV}" + +HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" +DESCRIPTION="Linux-PAM pam_userdb (Berkeley DB) module" + +SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/${MY_P}.tar.bz2 + http://downloads.sleepycat.com/db-${BDB_VER}.tar.gz" + +LICENSE="PAM" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="nls elibc_FreeBSD" + +RDEPEND="nls? ( virtual/libintl ) + !<sys-libs/pam-0.99 + >=sys-libs/pam-0.99.6.3-r1" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" +RDEPEND="${RDEPEND} + >=sys-libs/db-${BDB_VER}" + +S="${WORKDIR}/${MY_P}" + + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${MY_P}-berkdb-uniquename.patch" + AT_M4DIR="m4" eautoreconf + + elibtoolize +} + +src_compile() { + local myconf + + # don't build documentation as it doesn't seem to really work + export SGML2PS=no + export SGML2TXT=no + export SGML2HTML=no + export SGML2LATEX=no + export PS2PDF=no + + if use hppa || use elibc_FreeBSD; then + myconf="${myconf} --disable-pie" + fi + + local BDB_DIR="${WORKDIR}/db-${BDB_VER}" + + # BDB is internalized to get a non-threaded lib for pam_userdb.so to + # be built with. To demand-load a shared library which uses threads + # into an application which doesn't is a Very Bad Idea! + einfo "Building Berkley DB ${BDB_VER}..." + cd "${BDB_DIR}/build_unix" || die + + CFLAGS="${CFLAGS} -fPIC" \ + ECONF_SOURCE="../dist" \ + econf \ + --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}/modules/pam_userdb" \ + --includedir="${S}/modules/pam_userdb" \ + --libdir="${S}/modules/pam_userdb" || die "Bad BDB ./configure" + + # XXX: hack out O_DIRECT support in db4 for now. + # (Done above now with --disable-o_direct now) + + emake CC="$(tc-getCC)" || die "BDB build failed" + emake install || die + + # We link against libdb_pam (*-dbpam.patch), else stupid libtool goes + # and relinks it during install to libdb in /usr/lib + cp -f "${S}"/modules/pam_userdb/libdb{,_pam}.a + + # Make sure out static libs are used + append-flags -I "{S}/modules/pam_userdb" + append-ldflags -L "${S}/modules/pam_userdb" + + cd "${S}" + econf \ + $(use_enable nls) \ + --enable-berkdb \ + --enable-securedir=/$(get_libdir)/security \ + --enable-isadir=/$(get_libdir)/security \ + --disable-dependency-tracking \ + --disable-prelude \ + --enable-docdir=/usr/share/doc/${PF} \ + --with-db-uniquename=_pam \ + ${myconf} || die "econf failed" + + cd "${S}/modules/pam_userdb" + emake || die "emake failed" +} + +src_install() { + cd "${S}/modules/pam_userdb" + emake DESTDIR="${D}" install || die "make install failed" + + dodoc "${S}/modules/pam_userdb/README" + + # No, we don't really need .la files for PAM modules. + rm -f "${D}/$(get_libdir)/security/"*.la +} |