diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-05-18 23:51:47 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-05-18 23:51:47 +0000 |
commit | fad73f785f95ab36321827e5cd3d07b72247542c (patch) | |
tree | 43ecd832cc60e8d451b3575833060cb1ccd2441d /sys-apps/pam-login | |
parent | fix gcc-3.3 issues, bug #21213 (diff) | |
download | gentoo-2-fad73f785f95ab36321827e5cd3d07b72247542c.tar.gz gentoo-2-fad73f785f95ab36321827e5cd3d07b72247542c.tar.bz2 gentoo-2-fad73f785f95ab36321827e5cd3d07b72247542c.zip |
fix gcc-3.3 issues, bug #21213
Diffstat (limited to 'sys-apps/pam-login')
-rw-r--r-- | sys-apps/pam-login/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/pam-login/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/pam-login/files/digest-pam-login-3.11 | 1 | ||||
-rw-r--r-- | sys-apps/pam-login/pam-login-3.11.ebuild | 73 |
4 files changed, 82 insertions, 3 deletions
diff --git a/sys-apps/pam-login/ChangeLog b/sys-apps/pam-login/ChangeLog index e471c1ade9e0..6b9f8d46ed66 100644 --- a/sys-apps/pam-login/ChangeLog +++ b/sys-apps/pam-login/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/pam-login # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/ChangeLog,v 1.14 2003/03/28 16:58:38 joker Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/ChangeLog,v 1.15 2003/05/18 23:50:52 azarah Exp $ + +*pam-login-3.11 (19 May 2003) + + 19 May 2003; Martin Schlemmer <azarah@gentoo.org> pam-login-3.11.ebuild: + Fix gcc-3.3 compile issues, bug #21213. 24 Mar 2003; Martin Schlemmer <azarah@gentoo.org> pam-login-3.10.ebuild : Mark stable for x86. diff --git a/sys-apps/pam-login/Manifest b/sys-apps/pam-login/Manifest index a034de145106..9171e6889885 100644 --- a/sys-apps/pam-login/Manifest +++ b/sys-apps/pam-login/Manifest @@ -1,9 +1,9 @@ -MD5 93a7bd2fa4b0d6804920852f28526783 ChangeLog 1860 +MD5 1cbb5538baa07f4cf09d6ddcc7c0a3ab ChangeLog 2010 MD5 4252dabdab49bb4d709610a75dae72b4 pam-login-3.6-r1.ebuild 1824 MD5 a06af999a15ab19e9478fecdca3ee477 pam-login-3.6-r2.ebuild 1931 MD5 e1eee071c059786d7d32c969c2264dec pam-login-3.7.ebuild 1977 MD5 7af49aad99179b74a5d5ea72879ab2ed pam-login-3.10.ebuild 1984 -MD5 7af49aad99179b74a5d5ea72879ab2ed pam-login-3.11.ebuild 1984 +MD5 66fa4fafe2d1ab99a583f42a4ce9374c pam-login-3.11.ebuild 1988 MD5 918ba376dc33a5a1c9f9b0bd048b484b files/digest-pam-login-3.6-r1 66 MD5 918ba376dc33a5a1c9f9b0bd048b484b files/digest-pam-login-3.6-r2 66 MD5 7febd6315d85fcd5196b602732789573 files/digest-pam-login-3.7 66 diff --git a/sys-apps/pam-login/files/digest-pam-login-3.11 b/sys-apps/pam-login/files/digest-pam-login-3.11 new file mode 100644 index 000000000000..ff30d88cbdeb --- /dev/null +++ b/sys-apps/pam-login/files/digest-pam-login-3.11 @@ -0,0 +1 @@ +MD5 be12757a47d056352e94af7de4e52d30 pam_login-3.11.tar.bz2 131529 diff --git a/sys-apps/pam-login/pam-login-3.11.ebuild b/sys-apps/pam-login/pam-login-3.11.ebuild new file mode 100644 index 000000000000..8de5703ea7ec --- /dev/null +++ b/sys-apps/pam-login/pam-login-3.11.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/pam-login-3.11.ebuild,v 1.1 2003/05/18 23:50:52 azarah Exp $ + +# Do we want to backup an old login.defs, and forcefully +# install a new version? +FORCE_LOGIN_DEFS="no" + +MY_PN="${PN/pam-/pam_}" +S="${WORKDIR}/${MY_PN}-${PV}" +DESCRIPTION="Based on the sources from util-linux, with added pam and shadow features" +SRC_URI="ftp://ftp.suse.com/pub/people/kukuk/pam/${MY_PN}/${MY_PN}-${PV}.tar.bz2" +HOMEPAGE="http://www.thkukuk.de/pam/pam_login/" + +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc + sys-libs/pam + >=sys-apps/shadow-4.0.2-r5" + +src_compile() { + local myconf="" + use nls ||myconf="--disable-nls" + + econf ${myconf} || die + + emake || die +} + +src_install() { + einstall rootexecbindir=${D}/bin || die + + insinto /etc + insopts -m0644 + + doins ${FILESDIR}/login.defs + # Also install another one that we can use to check if + # we need to update it if FORCE_LOGIN_DEFS = "yes" + [ "${FORCE_LOGIN_DEFS}" = "yes" ] \ + && newins ${FILESDIR}/login.defs login.defs.new + + dodoc AUTHORS COPYING ChangeLog NEWS README THANKS +} + +pkg_preinst() { + rm -f ${ROOT}/etc/login.defs.new +} + +pkg_postinst() { + [ "${FORCE_LOGIN_DEFS}" != "yes" ] && return 0 + + ewarn "Due to a compatibility issue, ${ROOT}etc/login.defs " + ewarn "is being updated automatically. Your old login.defs" + ewarn "will be backed up as: ${ROOT}etc/login.defs.bak" + echo + + local CHECK1="`md5sum ${ROOT}/etc/login.defs | cut -d ' ' -f 1`" + local CHECK2="`md5sum ${ROOT}/etc/login.defs.new | cut -d ' ' -f 1`" + + if [ "${CHECK1}" != "${CHECK2}" ] + then + cp -a ${ROOT}/etc/login.defs ${ROOT}/etc/login.defs.bak + mv -f ${ROOT}/etc/login.defs.new ${ROOT}/etc/login.defs + elif [ ! -f ${ROOT}/etc/login.defs ] + then + mv -f ${ROOT}/etc/login.defs.new ${ROOT}/etc/login.defs + else + rm -f ${ROOT}/etc/login.defs.new + fi +} + |