diff options
author | Jared H.Hudson <jhhudso@gentoo.org> | 2002-04-04 06:03:36 +0000 |
---|---|---|
committer | Jared H.Hudson <jhhudso@gentoo.org> | 2002-04-04 06:03:36 +0000 |
commit | f4f5fd031c5d78e2c95ab62ae0a0ea10675df748 (patch) | |
tree | febce1c430cade3063e9747255db06d357d5d980 /sys-apps | |
parent | Masked out >=sys-apps/shadow-4.0.3 until further testing is done (diff) | |
download | gentoo-2-f4f5fd031c5d78e2c95ab62ae0a0ea10675df748.tar.gz gentoo-2-f4f5fd031c5d78e2c95ab62ae0a0ea10675df748.tar.bz2 gentoo-2-f4f5fd031c5d78e2c95ab62ae0a0ea10675df748.zip |
Adding latest shadow version, currently masked out until further testing
is done.
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/shadow/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/shadow/files/digest-shadow-4.0.3 | 1 | ||||
-rw-r--r-- | sys-apps/shadow/shadow-4.0.3.ebuild | 113 |
3 files changed, 122 insertions, 1 deletions
diff --git a/sys-apps/shadow/ChangeLog b/sys-apps/shadow/ChangeLog index 689a5342ac82..ded1c37ab5ee 100644 --- a/sys-apps/shadow/ChangeLog +++ b/sys-apps/shadow/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for sys-apps/shadow # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.8 2002/04/04 05:32:40 jhhudso Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.9 2002/04/04 06:03:36 jhhudso Exp $ +*shadow-4.0.3 (3 Apr 2002) + + 3 Apr 2002; Jared H. Hudson <jhhudso@gentoo.org> + + Added new shadow version, currently masked out until it's been + tested better. + *shadow-4.0.2-r3 (3 Apr 2002) 3 Apr 2002; Jared H. Hudson <jhhudso@gentoo.org> diff --git a/sys-apps/shadow/files/digest-shadow-4.0.3 b/sys-apps/shadow/files/digest-shadow-4.0.3 new file mode 100644 index 000000000000..aee0733f80f7 --- /dev/null +++ b/sys-apps/shadow/files/digest-shadow-4.0.3 @@ -0,0 +1 @@ +MD5 873e49fcde0d665e916414722ecb0d72 shadow-4.0.3.tar.gz 1055089 diff --git a/sys-apps/shadow/shadow-4.0.3.ebuild b/sys-apps/shadow/shadow-4.0.3.ebuild new file mode 100644 index 000000000000..85bf964181ae --- /dev/null +++ b/sys-apps/shadow/shadow-4.0.3.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-4.0.3.ebuild,v 1.1 2002/04/04 06:03:36 jhhudso Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Utilities to deal with user accounts" +SRC_URI="ftp://ftp.pld.org.pl/software/shadow/${P}.tar.gz" + +DEPEND=">=sys-libs/pam-0.75-r4 + >=sys-libs/cracklib-2.7-r3 + sys-devel/gettext" + +RDEPEND=">=sys-libs/pam-0.75-r4 + >=sys-libs/cracklib-2.7-r3" + +pkg_preinst() { + rm -f ${ROOT}/etc/pam.d/system-auth.new +} + +src_compile() { + local myconf="" + use nls || myconf="${myconf} --disable-nls" + + ./configure --disable-desrpc \ + --with-libcrypt \ + --with-libcrack \ + --with-libpam \ + --enable-shared=no \ + --enable-static=yes \ + --host=${CHOST} \ + ${myconf} || die "bad configure" + + # Parallel make fails sometimes + make LDFLAGS="" || die "compile problem" +} + +src_install() { + dodir /etc/default /etc/skel + + make prefix=${D}/usr \ + exec_prefix=${D} \ + mandir=${D}/usr/share/man \ + install || die "install problem" + + mv ${D}/lib ${D}/usr + dosed "s:/lib':/usr/lib':g" /usr/lib/libshadow.la + dosed "s:/lib/:/usr/lib/:g" /usr/lib/libshadow.la + dosed "s:/lib':/usr/lib':g" /usr/lib/libmisc.la + dosed "s:/lib/:/usr/lib/:g" /usr/lib/libmisc.la + dosym /usr/bin/newgrp /usr/bin/sg + dosym /usr/sbin/useradd /usr/sbin/adduser + dosym /usr/sbin/vipw /usr/sbin/vigr + # remove dead links + rm -f ${D}/bin/{sg,vipw} + + insinto /etc + # Using a securetty with devfs device names added + # (compat names kept for non-devfs compatibility) + insopts -m0600 ; doins ${FILESDIR}/securetty + insopts -m0600 ; doins ${S}/etc/login.access + insopts -m0644 ; doins ${S}/etc/limits + insopts -m0644 ; doins ${FILESDIR}/login.defs + insinto /etc/pam.d ; insopts -m0644 + cd ${FILESDIR}/pam.d + doins * + newins system-auth system-auth.new + newins shadow chage + newins shadow chsh + newins shadow chfn + newins shadow useradd + newins shadow groupadd + cd ${S} + + # the manpage install is beyond my comprehension, and also broken. + # just do it over. + rm -rf ${D}/usr/share/man/* + for q in man/*.[0-9] + do + local dir="${D}/usr/share/man/man${q##*.}" + mkdir -p $dir + cp $q $dir + done + + cd ${S}/doc + dodoc ANNOUNCE INSTALL LICENSE README WISHLIST + docinto txt + dodoc HOWTO LSM README.* *.txt +} + +pkg_postinst() { + echo + echo "****************************************************" + echo " Due to a security issue, ${ROOT}etc/pam.d/system-auth " + echo " is being updated automatically. Your old " + echo " system-auth will be backed up as:" + echo " ${ROOT}etc/pam.d/system-auth.bak" + echo "****************************************************" + echo + 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 + cp -a ${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 + else + rm -f ${ROOT}/etc/pam.d/system-auth.new + fi +} + |