summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-10 13:50:55 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-10 13:50:55 +0000
commitc987f608bd2a9f25c3a875378006f346279a11fe (patch)
tree5f68230149652874d99373bbd4d7bb1fe8f17860 /sys-libs
parentReduce the pamd installation code, remove two directories too. (diff)
downloadhistorical-c987f608bd2a9f25c3a875378006f346279a11fe.tar.gz
historical-c987f608bd2a9f25c3a875378006f346279a11fe.tar.bz2
historical-c987f608bd2a9f25c3a875378006f346279a11fe.zip
Remove old version.
Package-Manager: portage-2.1.3_rc7
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/pam/ChangeLog5
-rw-r--r--sys-libs/pam/Manifest22
-rw-r--r--sys-libs/pam/files/digest-pam-0.78-r312
-rw-r--r--sys-libs/pam/pam-0.78-r3.ebuild390
4 files changed, 11 insertions, 418 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog
index 8bf719c999f3..63a5b836c1f5 100644
--- a/sys-libs/pam/ChangeLog
+++ b/sys-libs/pam/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-libs/pam
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.160 2007/07/10 13:49:07 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.161 2007/07/10 13:50:55 flameeyes Exp $
+
+ 10 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> -pam-0.78-r3.ebuild:
+ Remove old version.
10 Jul 2007; Diego Pettenò <flameeyes@gentoo.org>
-files/pam.d-0.99/other, -files/pam.d-0.99/system-auth, +files/other.pamd,
diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest
index 8f221d123549..edb90c17b368 100644
--- a/sys-libs/pam/Manifest
+++ b/sys-libs/pam/Manifest
@@ -52,12 +52,7 @@ DIST Linux-PAM-0.99.8.0-ldflags-to-libadd.patch.bz2 2554 RMD160 734f41e1e040f737
DIST Linux-PAM-0.99.8.0.tar.bz2 903366 RMD160 9e2c9bc00318ef711a2af4561a1c763c2ca28db5 SHA1 c344c7887d80eae5dc1ab7ac3ebfb412d555c4cf SHA256 4b42990b4cada5ad0abefd6048b8646b17813448fbf13d758cbce605908f02a2
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.3.tar.bz2 87223 RMD160 82f6f63de5209e26119ed430e80669f6306cd9ea SHA1 722f326474c29a10f62f335ae6ed9ad238449560 SHA256 ca6882263a474ed77a343572a6a30fa59d677929543feb72cb0801b3bfdc8266
DIST pam-0.78-patches-1.5.tar.bz2 87590 RMD160 9a315fbb92ecbcea4ab5cce19fb0471ce141b031 SHA1 6829088338f51ccc0d4211cc14accdbc5ddd7e57 SHA256 d692f2aa27ab8943268eee233c23ee2e1c746ad61afeca691473b2587a370d12
-EBUILD pam-0.78-r3.ebuild 11314 RMD160 710b5f88d5823770c2c80c6a4288f4a3cad87168 SHA1 ec110583288577b3374f828fe158d0363fb9795f SHA256 d9a2f0c404b047724e99565e44fab7e70693c033df8d17024f16c984fba511d0
-MD5 6b0506fc8bcc4fdd891d6c24752de739 pam-0.78-r3.ebuild 11314
-RMD160 710b5f88d5823770c2c80c6a4288f4a3cad87168 pam-0.78-r3.ebuild 11314
-SHA256 d9a2f0c404b047724e99565e44fab7e70693c033df8d17024f16c984fba511d0 pam-0.78-r3.ebuild 11314
EBUILD pam-0.78-r5.ebuild 11435 RMD160 402e95b858644b4b03648be3896f51a47e18fa86 SHA1 286330af0ab781455aef91e23f3247dfea3e9b65 SHA256 98432e7cabdc53f4d11281f36b7e65e875138ec7886b66e5613cdf485cab5b83
MD5 3893b721a07b47fdbad9438bb6118be8 pam-0.78-r5.ebuild 11435
RMD160 402e95b858644b4b03648be3896f51a47e18fa86 pam-0.78-r5.ebuild 11435
@@ -74,17 +69,14 @@ EBUILD pam-0.99.8.0.ebuild 4861 RMD160 b2f177f0e916cd660a107bba161f5f52471f1fe5
MD5 0b81acacef9371f980836006579ba4f8 pam-0.99.8.0.ebuild 4861
RMD160 b2f177f0e916cd660a107bba161f5f52471f1fe5 pam-0.99.8.0.ebuild 4861
SHA256 26a01ccbf666fa2c9f2bdecf4aaca257ce1767eceb8cedf032c1a58131807299 pam-0.99.8.0.ebuild 4861
-MISC ChangeLog 25968 RMD160 6261115e3530a22affbc473a772d2d4cafaf3eef SHA1 79a86749e9b0cf9055f6d499c2d779e3f62b8b31 SHA256 e6329b21ef7b1151bb0b7ebb1503fd49dae59393bdc732e9ac928f772045374c
-MD5 39e3bd3cfcd2dc0c198927258d123f4d ChangeLog 25968
-RMD160 6261115e3530a22affbc473a772d2d4cafaf3eef ChangeLog 25968
-SHA256 e6329b21ef7b1151bb0b7ebb1503fd49dae59393bdc732e9ac928f772045374c ChangeLog 25968
+MISC ChangeLog 26065 RMD160 3fa4f8c11b2f93a334be672268c980fc96f5740b SHA1 64155a6785598c0321fa52fe325c38008c7ba56c SHA256 f8357404668761ad6544db7b4bf06f1275edb0b9c224184b10c30019ee7b8262
+MD5 f2fd30a3342662a09224e9747b3dcedd ChangeLog 26065
+RMD160 3fa4f8c11b2f93a334be672268c980fc96f5740b ChangeLog 26065
+SHA256 f8357404668761ad6544db7b4bf06f1275edb0b9c224184b10c30019ee7b8262 ChangeLog 26065
MISC metadata.xml 218 RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c SHA1 02dacc356a39905402083cb54ae4f6dd0ac59fad SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c
MD5 393d06cf4b76671f8e6ce72ac71bdad8 metadata.xml 218
RMD160 1955c7446d4ceb77506ba7b58ee35913c576a72c metadata.xml 218
SHA256 e0bb49cab71cc84d8bdad26876197164073722b378d27a5bf55bbfd2afdbd19c metadata.xml 218
-MD5 9f3d035ff9639e023178bf068a9a5c59 files/digest-pam-0.78-r3 976
-RMD160 8b74208cf7c31de1562e0b5a9178ac8bd862d179 files/digest-pam-0.78-r3 976
-SHA256 89b99f7fc072dc4272dc48f358fc40f945739bdb1e433cb12044d1b26171286f files/digest-pam-0.78-r3 976
MD5 a701475af4b96aa8ef5b5cb58894322f files/digest-pam-0.78-r5 976
RMD160 bbd3c9532d26362d88d4ff52fd585c7fb91356c0 files/digest-pam-0.78-r5 976
SHA256 c3edc3912942659b0d5bdffd75c393e13641be489aad277aa72846079b2cacb0 files/digest-pam-0.78-r5 976
@@ -100,7 +92,7 @@ SHA256 ab8db2c0eae109c483b93689c682916ae8161cfcd4917a8b68a53f870d018240 files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
-iD8DBQFGk46LAiZjviIA2XgRAl1qAKC+mPVv1g4XoFDCI2bRS5clboItsQCeMBAH
-y3gL1hfSBM2JYw4ZDmr1y/s=
-=/KH8
+iD8DBQFGk47zAiZjviIA2XgRAtL+AJ4wUTuPudjNbamw5Jty7MK1DvYFAwCg0663
+uHUMufEogBC8jSNxCCo+LAg=
+=9TYi
-----END PGP SIGNATURE-----
diff --git a/sys-libs/pam/files/digest-pam-0.78-r3 b/sys-libs/pam/files/digest-pam-0.78-r3
deleted file mode 100644
index 0e4352ed9832..000000000000
--- a/sys-libs/pam/files/digest-pam-0.78-r3
+++ /dev/null
@@ -1,12 +0,0 @@
-MD5 58cd055892e97648651d5a318888f3a0 Linux-PAM-0.78.tar.gz 488936
-RMD160 51643a8942267449b884f79804102fad61567df8 Linux-PAM-0.78.tar.gz 488936
-SHA256 a18b9f7b45344a4e49d2647c036894cc6578f249fa0cf024763f1140df684d3e Linux-PAM-0.78.tar.gz 488936
-MD5 fcc481d52c3b80e20a328f8c0cb042bd db-4.3.27.tar.gz 5921872
-RMD160 711129871c7edd840184bd5a87fb7bf93c8bb953 db-4.3.27.tar.gz 5921872
-SHA256 6f09e04c5811ad72a2a5c99459340cb2c635e6553520af76fc9e717dd6207244 db-4.3.27.tar.gz 5921872
-MD5 777d2e34a60edad28319207b576cda91 glib-2.6.5.tar.bz2 2357089
-RMD160 6ccdfed7ea5621b7c69c436c3b8b5fbba44dc62e glib-2.6.5.tar.bz2 2357089
-SHA256 ca061bbd41c6484b4b0eabbee08f99e51ebf5f3a0c63e8b0787b8d37546cc2ca glib-2.6.5.tar.bz2 2357089
-MD5 c7b9d6d52902ead5f4c10c277e441f30 pam-0.78-patches-1.3.tar.bz2 87223
-RMD160 82f6f63de5209e26119ed430e80669f6306cd9ea pam-0.78-patches-1.3.tar.bz2 87223
-SHA256 ca6882263a474ed77a343572a6a30fa59d677929543feb72cb0801b3bfdc8266 pam-0.78-patches-1.3.tar.bz2 87223
diff --git a/sys-libs/pam/pam-0.78-r3.ebuild b/sys-libs/pam/pam-0.78-r3.ebuild
deleted file mode 100644
index 561267c2e716..000000000000
--- a/sys-libs/pam/pam-0.78-r3.ebuild
+++ /dev/null
@@ -1,390 +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.78-r3.ebuild,v 1.8 2007/07/10 13:49:07 flameeyes Exp $
-
-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.3"
-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/"
-
-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 )
- berkdb? ( >=sys-libs/db-${BDB_VER2} )
- pwdb? ( >=sys-libs/pwdb-0.62 )"
-
-# 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
-
-DESCRIPTION="Pluggable Authentication Modules"
-
-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
-}
-
-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
- 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
-
- epatch "${FILESDIR}/${P}-inttypes.patch"
-}
-
-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 ${FILESDIR}/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 ; dodoc ${FILESDIR}/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;
- 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
-}