summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/shadow/ChangeLog8
-rw-r--r--sys-apps/shadow/files/digest-shadow-20001016-r101
-rw-r--r--sys-apps/shadow/shadow-20001016-r10.ebuild86
3 files changed, 94 insertions, 1 deletions
diff --git a/sys-apps/shadow/ChangeLog b/sys-apps/shadow/ChangeLog
index c0c6046deb26..fc563f1b056b 100644
--- a/sys-apps/shadow/ChangeLog
+++ b/sys-apps/shadow/ChangeLog
@@ -1,6 +1,12 @@
# 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.4 2002/02/26 07:05:13 tod Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.5 2002/03/12 22:40:17 seemant Exp $
+
+*shadow-20001016-r10 (12 Mar 2002)
+
+ 12 Mar 2002; Seemant Kulleen <seemant@gentoo.org>
+
+ Added USE dependent nls compilation.
*shadow-20001016-r9 (26 Feb 2002)
diff --git a/sys-apps/shadow/files/digest-shadow-20001016-r10 b/sys-apps/shadow/files/digest-shadow-20001016-r10
new file mode 100644
index 000000000000..a863d2f64461
--- /dev/null
+++ b/sys-apps/shadow/files/digest-shadow-20001016-r10
@@ -0,0 +1 @@
+MD5 588d1de9d58c35cd00fa782688e1f26d shadow-20001016.tar.gz 752473
diff --git a/sys-apps/shadow/shadow-20001016-r10.ebuild b/sys-apps/shadow/shadow-20001016-r10.ebuild
new file mode 100644
index 000000000000..e31f81378255
--- /dev/null
+++ b/sys-apps/shadow/shadow-20001016-r10.ebuild
@@ -0,0 +1,86 @@
+# 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-20001016-r10.ebuild,v 1.1 2002/03/12 22:40:17 seemant Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Utilities to deal with user accounts"
+SRC_URI="ftp://ftp.pld.org.pl/software/shadow/old/${P}.tar.gz"
+
+DEPEND=">=sys-libs/pam-0.73
+ nls? ( sys-devel/gettext )"
+RDEPEND=">=sys-libs/pam-0.73"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/src
+ cp ${FILESDIR}/useradd.c ${S}/src
+}
+
+src_compile() {
+
+ local myconf
+ use nls || myconf="${myconf} --disable-nls"
+
+ ./configure \
+ --disable-desrpc \
+ --with-libcrypt \
+ --with-libcrack \
+ --with-libpam \
+ --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 -e "s:/lib:/usr/lib:" -e "s: libshadow.so':':" /usr/lib/libshadow.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
+ doins ${FILESDIR}/shadow
+ newins ${FILESDIR}/shadow groupadd
+ newins ${FILESDIR}/shadow useradd
+ doins ${FILESDIR}/chage
+
+ if [ -z "`use bootcd`" ]
+ then
+ # 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
+ else
+ rm -rf ${D}/usr/share ${D}/usr/lib/lib*.{a,la}
+ fi
+}
+