summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-08-14 14:16:49 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-08-14 14:16:49 +0000
commite6603834a88456d0a59557d165841ab8a7539a82 (patch)
tree19ecd8640bc1160c6a3c28cbc6ae5a426a4d1123
parentnew sh-utils masked (diff)
downloadgentoo-2-e6603834a88456d0a59557d165841ab8a7539a82.tar.gz
gentoo-2-e6603834a88456d0a59557d165841ab8a7539a82.tar.bz2
gentoo-2-e6603834a88456d0a59557d165841ab8a7539a82.zip
version bump
-rw-r--r--sys-apps/sh-utils/ChangeLog14
-rw-r--r--sys-apps/sh-utils/files/digest-sh-utils-2.0.141
-rw-r--r--sys-apps/sh-utils/files/sh-utils-2.0.14-gentoo.diff47
-rw-r--r--sys-apps/sh-utils/sh-utils-2.0.14.ebuild82
4 files changed, 141 insertions, 3 deletions
diff --git a/sys-apps/sh-utils/ChangeLog b/sys-apps/sh-utils/ChangeLog
index 0a4e939b1b78..c99e830ac643 100644
--- a/sys-apps/sh-utils/ChangeLog
+++ b/sys-apps/sh-utils/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sys-apps/sh-utils
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sh-utils/ChangeLog,v 1.8 2002/07/14 19:20:19 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sh-utils/ChangeLog,v 1.9 2002/08/14 14:16:49 seemant Exp $
+
+*sh-utils-2.0.14 (14 Aug 2002)
+
+ 14 Aug 2002; Seemant Kulleen <seemant@gentoo.org> sh-utils-2.0.14.ebuild :
+
+ Version bump, as requested by: klebermass@limtec.de (Martin Klebermass) in
+ bug #6035. The uname function has undergone some changes, so while this
+ is masked for testing, I am waiting for a patch from Carlos for uname.
+
+*sh-utils-2.0.11-r5 (21 Jun 2002)
09 Jul 2002; Seemant Kulleen <seemant@gentoo.org>
files/sh-utils-2.0.11-gentoo.patch :
@@ -8,8 +18,6 @@
Added one line to the Carlos E Gorges <carlos@techlinux.com.br> patch to
show correct output for ppc as well.
-*sh-utils-2.0.11-r5 (21 Jun 2002)
-
21 Jun 2002; Martin Schlemmer <azarah@gentoo.org> :
Remove /usr/bin/hostname to install if "build" in USE, as it do not get
removed during "emerge system", and breaks some packages (gnome2 among
diff --git a/sys-apps/sh-utils/files/digest-sh-utils-2.0.14 b/sys-apps/sh-utils/files/digest-sh-utils-2.0.14
new file mode 100644
index 000000000000..eab0cf0a83c9
--- /dev/null
+++ b/sys-apps/sh-utils/files/digest-sh-utils-2.0.14
@@ -0,0 +1 @@
+MD5 ceef9e05bbaa5893c5eafea2b424eb83 sh-utils-2.0.14.tar.gz 2132852
diff --git a/sys-apps/sh-utils/files/sh-utils-2.0.14-gentoo.diff b/sys-apps/sh-utils/files/sh-utils-2.0.14-gentoo.diff
new file mode 100644
index 000000000000..f242fd47c91d
--- /dev/null
+++ b/sys-apps/sh-utils/files/sh-utils-2.0.14-gentoo.diff
@@ -0,0 +1,47 @@
+diff -urN sh-utils-2.0.14.old/doc/coreutils.texi sh-utils-2.0.14/doc/coreutils.texi
+--- sh-utils-2.0.14.old/doc/coreutils.texi Sun Aug 4 06:45:50 2002
++++ sh-utils-2.0.14/doc/coreutils.texi Wed Aug 14 06:51:22 2002
+@@ -11019,8 +11019,7 @@
+ @findex syslog
+ @command{su} can optionally be compiled to use @code{syslog} to report
+ failed, and optionally successful, @command{su} attempts. (If the system
+-supports @code{syslog}.) However, GNU @command{su} does not check if the
+-user is a member of the @code{wheel} group; see below.
++supports @code{syslog}.)
+
+ The program accepts the following options. Also see @ref{Common options}.
+
+@@ -11091,33 +11090,6 @@
+
+ @end table
+
+-@cindex wheel group, not supported
+-@cindex group wheel, not supported
+-@cindex fascism
+-@heading Why GNU @command{su} does not support the @samp{wheel} group
+-
+-(This section is by Richard Stallman.)
+-
+-@cindex Twenex
+-@cindex MIT AI lab
+-Sometimes a few of the users try to hold total power over all the
+-rest. For example, in 1984, a few users at the MIT AI lab decided to
+-seize power by changing the operator password on the Twenex system and
+-keeping it secret from everyone else. (I was able to thwart this coup
+-and give power back to the users by patching the kernel, but I
+-wouldn't know how to do that in Unix.)
+-
+-However, occasionally the rulers do tell someone. Under the usual
+-@command{su} mechanism, once someone learns the root password who
+-sympathizes with the ordinary users, he or she can tell the rest. The
+-``wheel group'' feature would make this impossible, and thus cement the
+-power of the rulers.
+-
+-I'm on the side of the masses, not that of the rulers. If you are
+-used to supporting the bosses and sysadmins in whatever they do, you
+-might find this idea strange at first.
+-
+-
+ @node Process control
+ @chapter Process control
+
diff --git a/sys-apps/sh-utils/sh-utils-2.0.14.ebuild b/sys-apps/sh-utils/sh-utils-2.0.14.ebuild
new file mode 100644
index 000000000000..a0f62064ca59
--- /dev/null
+++ b/sys-apps/sh-utils/sh-utils-2.0.14.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sh-utils/sh-utils-2.0.14.ebuild,v 1.1 2002/08/14 14:16:49 seemant Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Your standard GNU shell utilities"
+SRC_URI="ftp://alpha.gnu.org/gnu/fetish/${P}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/shellutils/shellutils.html"
+
+DEPEND="nls? ( sys-devel/gettext )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc sparc sparc64"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+
+ # patch to remove Stallman's su/wheel group rant and to add processor
+ # information in uname output
+ patch -p1 < ${FILESDIR}/${P}-gentoo.diff || die
+ rm doc/coreutils.info
+ #This next line prevents our patched (and updated-mtime) uname.c from forcing a
+ #uname.1 man page regeneration, which requires perl (not available when creating
+ #a new build image... and we don't want this package dependent on perl anyway.
+ #This problem can be fixed by fixing our patch at a future date.
+ touch -d "20 Aug 1999" src/uname.c
+}
+
+src_compile() {
+ local myconf=""
+ use nls || myconf="--disable-nls"
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ --without-included-regex \
+ ${myconf} || die
+
+ if [ -z "`use static`" ]
+ then
+ emake || die
+ else
+ emake LDFLAGS=-static || die
+ fi
+}
+
+src_install() {
+ einstall || die
+
+ rm -rf ${D}/usr/lib
+ dodir /bin
+ cd ${D}/usr/bin
+ mv date echo false pwd stty su true uname sleep ${D}/bin
+
+ if [ -z "`use build`" ]
+ then
+ cd ${S}
+ dodoc AUTHORS COPYING ChangeLog ChangeLog.0 NEWS README THANKS TODO
+ else
+ rm -rf ${D}/usr/share
+ fi
+ #we must use hostname from net-base
+ #hostname do not work with the -f switch ... this breaks gnome2 among things
+ rm ${D}/usr/bin/hostname
+ #we use the /bin/su from the sys-apps/shadow package
+ rm ${D}/bin/su
+ rm ${D}/usr/share/man/man1/su.1.gz
+ #we use the /usr/bin/uptime from the sys-apps/procps package
+ rm ${D}/usr/bin/uptime
+ rm ${D}/usr/share/man/man1/uptime.1.gz
+}
+
+pkg_postinst() {
+ #hostname do not get removed, as it is included with older stage1
+ #tarballs, and net-tools installs to /bin
+ if [ -e ${ROOT}/usr/bin/hostname ] && [ ! -L ${ROOT}/usr/bin/hostname ]
+ then
+ rm -f ${ROOT}/usr/bin/hostname
+ fi
+}
+