diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-01-30 21:41:54 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-01-30 21:41:54 +0000 |
commit | 501a580bad50024b5cd38ebca7e415c705e39204 (patch) | |
tree | decec00c38bbe6e5fa28b19d3179e95bed96b6b5 /sys-apps | |
parent | Initial Import. Bug #12748 (diff) | |
download | gentoo-2-501a580bad50024b5cd38ebca7e415c705e39204.tar.gz gentoo-2-501a580bad50024b5cd38ebca7e415c705e39204.tar.bz2 gentoo-2-501a580bad50024b5cd38ebca7e415c705e39204.zip |
new version
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pam-login/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/pam-login/files/digest-pam-login-3.10 | 1 | ||||
-rw-r--r-- | sys-apps/pam-login/pam-login-3.10.ebuild | 74 |
3 files changed, 83 insertions, 2 deletions
diff --git a/sys-apps/pam-login/ChangeLog b/sys-apps/pam-login/ChangeLog index 005ee74a42e9..9484bf01d1ec 100644 --- a/sys-apps/pam-login/ChangeLog +++ b/sys-apps/pam-login/ChangeLog @@ -1,8 +1,14 @@ # ChangeLog for sys-apps/pam-login # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/ChangeLog,v 1.8 2003/01/18 14:51:58 tuxus Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pam-login/ChangeLog,v 1.9 2003/01/30 21:41:54 azarah Exp $ - 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords +*pam-login-3.10 (30 Jan 2003) + + 30 Jan 2003; Martin Schlemmer <azarah@gentoo.org> pam-login-3.10.ebuild : + New version, closing bug #14028. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : + Changed sparc ~sparc keywords *pam-login-3.7 (2 Sep 2002) diff --git a/sys-apps/pam-login/files/digest-pam-login-3.10 b/sys-apps/pam-login/files/digest-pam-login-3.10 new file mode 100644 index 000000000000..2ddf577a8842 --- /dev/null +++ b/sys-apps/pam-login/files/digest-pam-login-3.10 @@ -0,0 +1 @@ +MD5 6dc1978d748dc6519933743b0337f718 pam_login-3.10.tar.bz2 131130 diff --git a/sys-apps/pam-login/pam-login-3.10.ebuild b/sys-apps/pam-login/pam-login-3.10.ebuild new file mode 100644 index 000000000000..98e7be2b58dc --- /dev/null +++ b/sys-apps/pam-login/pam-login-3.10.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2002 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.10.ebuild,v 1.1 2003/01/30 21:41:54 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 + 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" +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 +} + |