diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-02 17:10:30 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-02 17:10:30 +0000 |
commit | ab9cdd91d48875135409fb078723737951cd9a10 (patch) | |
tree | f401ca860c7bf724ebd005e0c3d891b82c7a7567 | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-ab9cdd91d48875135409fb078723737951cd9a10.tar.gz gentoo-2-ab9cdd91d48875135409fb078723737951cd9a10.tar.bz2 gentoo-2-ab9cdd91d48875135409fb078723737951cd9a10.zip |
*** empty log message ***
116 files changed, 5062 insertions, 104 deletions
diff --git a/sys-apps/00baselayout/00baselayout-1.1-r1.ebuild b/sys-apps/00baselayout/00baselayout-1.1-r1.ebuild new file mode 100644 index 000000000000..bfec8c433618 --- /dev/null +++ b/sys-apps/00baselayout/00baselayout-1.1-r1.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/00baselayout/00baselayout-1.1-r1.ebuild,v 1.1 2000/08/02 17:07:11 achim Exp $# Copyright 1999-2000 Gentoo Technologies, Inc. + +P=00baselayout-1.1 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Baselayout" +SRC_URI="ftp://gentoolinux.sourceforge.net/pub/gentoolinux/current/distfiles/"${A} + +src_install() +{ + cp -a ${S}/* ${D} +} + + + + + diff --git a/sys-apps/00baselayout/files/digest b/sys-apps/00baselayout/files/digest new file mode 100644 index 000000000000..0ead252ab61e --- /dev/null +++ b/sys-apps/00baselayout/files/digest @@ -0,0 +1 @@ +MD5 db151ab4a5f5b848b9f9e0eb1c6b934a 00baselayout-1.1.tar.gz diff --git a/sys-apps/00initscripts/00initscripts-1.0-r1.ebuild b/sys-apps/00initscripts/00initscripts-1.0-r1.ebuild new file mode 100644 index 000000000000..2a4fe971f4fd --- /dev/null +++ b/sys-apps/00initscripts/00initscripts-1.0-r1.ebuild @@ -0,0 +1,41 @@ +#Copyright 1999 Daniel Robbins +#Distributed under the GPL + +P=00initscripts-1.0 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Colorized initscripts for Enoch" +CATEGORY="sys" +SRC_URI="ftp://gentoolinux.sourceforge.net/pub/gentoolinux/current/distfiles/"${A} + +src_install() { + for x in boot halt 1 2 3 4 5 + do + dodir /etc/rc.d/rc${x}.d + done + dosym rcboot.d /etc/rc.d/rc0.d + dosym rchalt.d /etc/rc.d/rc6.d + + dodir /etc/rc.d/init.d + dodir /etc/rc.d/config + cd etc/rc.d/init.d + insinto /etc/rc.d/init.d + doins * + chmod 0755 ${D}/etc/rc.d/init.d/* + insinto /etc/rc.d/init.d/extra_scripts + cd ${S}/etc/rc.d/config + insinto /etc/rc.d/config + doins * + doins runlevels + cd ${S} + insinto /etc + doins etc/inittab + into /usr + dosbin sbin/rc-update + exeinto /usr/bin + exeopts -m0755 + doexe usr/bin/colors + dodoc usr/doc/initscripts/* +} + + diff --git a/sys-apps/00initscripts/files/digest b/sys-apps/00initscripts/files/digest new file mode 100644 index 000000000000..34c8593b8bc2 --- /dev/null +++ b/sys-apps/00initscripts/files/digest @@ -0,0 +1 @@ +MD5 16c1a9ceefd84252a00a30d100aab2c4 00initscripts-1.0.tar.gz diff --git a/sys-apps/at/at-3.1.8-r1.ebuild b/sys-apps/at/at-3.1.8-r1.ebuild new file mode 100644 index 000000000000..d9cd10a86cd7 --- /dev/null +++ b/sys-apps/at/at-3.1.8-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/at-3.1.8-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=at-3.1.8 +A="${P}.tar.bz2 ${P}.dif" +S=${WORKDIR}/${P} +DESCRIPTION="queues jobs for later execution" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.kreonet.re.kr/.2/Linux/Jurix/source/chroot/appl/at/${P}.tar.bz2 + ftp://ftp.kreonet.re.kr/.2/Linux/Jurix/source/chroot/appl/at/${P}.dif" + +src_compile() { + + ./configure --host=${CHOST} --sysconfdir=/etc/at + make + +} + +src_unpack() { + + unpack ${P}.tar.bz2 + cd ${S} + patch -p0 < ${DISTDIR}/${P}.dif + +} + +src_install() { + + cd ${S} + into /usr + chmod 755 batch + chmod 755 atrun + dobin at batch + dosym /usr/bin/at /usr/bin/atrm + dosym /usr/bin/at /usr/bin/atq + dosbin atd atrun + for i in atjobs atspool + do + dodir /var/spool/${i} + fperms 700 /var/spool/${i} + fowners daemon.daemon /var/spool/${i} + done + doman at.1 at_allow.5 atd.8 atrun.8 + dodoc COPYING ChangeLog Copyright Problems README + dodir /etc/rc.d/init.d + cp ${O}/files/atd ${D}/etc/rc.d/init.d/ + dodir /etc/at + cp ${O}/files/at.deny ${D}/etc/at/ + +} + + + diff --git a/sys-apps/at/files/at.deny b/sys-apps/at/files/at.deny new file mode 100644 index 000000000000..02f6e853d303 --- /dev/null +++ b/sys-apps/at/files/at.deny @@ -0,0 +1,21 @@ +guest +nobody +bin +daemon +lp +sync +mail +news +uucp +games +man +ftp +squid +mysql +alias +qmaild +qmaill +qmailp +qmailq +qmailr +qmails diff --git a/sys-apps/at/files/atd b/sys-apps/at/files/atd new file mode 100755 index 000000000000..5af8590e0d5a --- /dev/null +++ b/sys-apps/at/files/atd @@ -0,0 +1,46 @@ +#!/bin/sh +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/files/atd,v 1.1 2000/08/02 17:10:25 achim Exp $ + +#RCUPDATE:2 3 4:75: + +. /etc/rc.d/config/functions + +SERVICE=atd +EXE=/usr/sbin/atd +PIDFILE=/var/run/atd.pid +opts="start stop restart" + +# See how we were called. + +function start() { + + # Start daemons. + + ebegin "Starting ${SERVICE}..." + start-stop-daemon --start --quiet --exec ${EXE} + eend $? "Started $SERVICE." "Error Starting ${SERVICE}" + +} + +function stop() { + + # Stop daemons. + + ebegin "Shutting down ${SERVICE}..." + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? "Stopped $SERVICE." "Error Stopping ${SERVICE}." + +} + +function restart () { + + stop + start + +} + +doservice ${@} + diff --git a/sys-apps/at/files/digest b/sys-apps/at/files/digest new file mode 100644 index 000000000000..7ec2fb52f97d --- /dev/null +++ b/sys-apps/at/files/digest @@ -0,0 +1,2 @@ +MD5 f5194baac29a30b0d90604422dad7037 at-3.1.8.tar.bz2 +MD5 72330908ac1117627486af1fb873ea81 at-3.1.8.dif diff --git a/sys-apps/bash/bash-2.03-r1.ebuild b/sys-apps/bash/bash-2.03-r1.ebuild new file mode 100644 index 000000000000..ff189857898d --- /dev/null +++ b/sys-apps/bash/bash-2.03-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/bash/bash-2.03-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=bash-2.03 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="The standard GNU Bourne again shell" +SRC_URI="ftp://ftp.gnu.org/gnu/bash/"${A} +HOMEPAGE="http://www.gnu.org/software/bash/bash.html" +CATEGORY="sys-apps" + +src_compile() { + + cd ${S} + ./configure --prefix=/ --disable-profiling --with-curses --host=${CHOST} + make + +} + +src_install() { + + cd ${S} + cp doc/bashref.info doc/bash.info + into /usr + doinfo doc/bash.info + doman doc/*.1 + into / + dobin bash bashbug + dosym bash /bin/sh + dodoc README NEWS AUTHORS CHANGES COMPAT COPYING Y2K doc/FAQ doc/INTRO + +} + diff --git a/sys-apps/bash/files/digest b/sys-apps/bash/files/digest new file mode 100644 index 000000000000..e0dba489ad05 --- /dev/null +++ b/sys-apps/bash/files/digest @@ -0,0 +1 @@ +MD5 70e356eae4fed395c9a0fc35b752f711 bash-2.03.tar.gz diff --git a/sys-apps/bzip2/bzip2-1.0.0-r1.ebuild b/sys-apps/bzip2/bzip2-1.0.0-r1.ebuild new file mode 100644 index 000000000000..580f3800fe4d --- /dev/null +++ b/sys-apps/bzip2/bzip2-1.0.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/bzip2/bzip2-1.0.0-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=bzip2-1.0.0 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="A high-quality data compressor used extensively by Enoch" +SRC_URI="ftp://sourceware.cygnus.com/pub/bzip2/v100/$A" +HOMEPAGE="http://sourceware.cygnus.com/bzip2/" + +src_unpack() { + unpack ${A} + # bzip2's makefile does not use CFLAGS so we hard-wire the compile + # options using sed ;) + cd ${S} + cp Makefile Makefile.orig + sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile + cp Makefile-libbz2_so Makefile-libbz2.orig + sed -e "s/-O2/${CFLAGS}/" Makefile-libbz2.orig > Makefile-libbz2_so +} + +src_compile() { + make -f Makefile-libbz2_so $MAKEOPTS "MAKE = make $MAKEOPTS" all + make $MAKEOPTS "MAKE = make $MAKEOPTS" all +} +src_install() { + dodoc README LICENSE CHANGES manual.ps + docinto html + dodoc manual_*.html + make PREFIX=${D}/usr install + strip ${D}/usr/bin/* + into /usr + dolib.so libbz2.so.1.0.0 + dosym /usr/lib/libbz2.so.1.0.0 /usr/lib/libbz2.so.1.0 + gzip -9 ${D}/usr/man/man1/* +} + + diff --git a/sys-apps/bzip2/files/digest b/sys-apps/bzip2/files/digest new file mode 100644 index 000000000000..59042401a53a --- /dev/null +++ b/sys-apps/bzip2/files/digest @@ -0,0 +1 @@ +MD5 bb09685f8db0e8e588e29ecefb5a9851 bzip2-1.0.0.tar.gz diff --git a/sys-apps/console-data/console-data-1999.08.29-r1.ebuild b/sys-apps/console-data/console-data-1999.08.29-r1.ebuild new file mode 100644 index 000000000000..fa4202b3e100 --- /dev/null +++ b/sys-apps/console-data/console-data-1999.08.29-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/console-data/console-data-1999.08.29-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=console-data-1999.08.29 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Data (fonts, keymaps) for the consoletools package" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/keyboards/"${A} +HOMEPAGE="http://altern.org/ydirson/en/lct/data.html" + +src_compile() { + + ./configure --host=${CHOST} --prefix=/usr + make + +} + +src_install() { + + dodoc ChangeLog doc/README.* + make DESTDIR=${D} install + +} + + diff --git a/sys-apps/console-data/files/digest b/sys-apps/console-data/files/digest new file mode 100644 index 000000000000..46645acb4c93 --- /dev/null +++ b/sys-apps/console-data/files/digest @@ -0,0 +1 @@ +MD5 b534787af0edaa73f608f518263f9334 console-data-1999.08.29.tar.gz diff --git a/sys-apps/console-tools/console-tools-0.2.3-r1.ebuild b/sys-apps/console-tools/console-tools-0.2.3-r1.ebuild new file mode 100644 index 000000000000..49903f8b10d6 --- /dev/null +++ b/sys-apps/console-tools/console-tools-0.2.3-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/console-tools/console-tools-0.2.3-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=console-tools-0.2.3 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Console and font utilities" +CATEGORY="sys-apps" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/keyboards/"${A} +HOMEPAGE="http://altern.org/ydirson/en/lct/" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + mv Makefile Makefile.orig + #building without documentation for now + sed -e s/doc// Makefile.orig > Makefile + make ${MAKEOPTS} "MAKE = make ${MAKEOPTS}" all +} + +src_install() { + into /usr + cd ${S} + make DESTDIR=${D} install + strip ${D}/usr/bin/* + strip --strip-unneeded ${D}/usr/lib/*.so.0.0.0 + dodoc BUGS COPYING* CREDITS ChangeLog NEWS README RELEASE TODO + gzip -9 ${D}/usr/man/man8/*.8 + MOPREFIX="console-tools" + domo ${S}/po/*.gmo +} + + diff --git a/sys-apps/console-tools/files/digest b/sys-apps/console-tools/files/digest new file mode 100644 index 000000000000..7c2347441144 --- /dev/null +++ b/sys-apps/console-tools/files/digest @@ -0,0 +1 @@ +MD5 983d4586a791b3fdfa0fbeff76aadf43 console-tools-0.2.3.tar.gz diff --git a/sys-apps/cpio/cpio-2.4.2-r1.ebuild b/sys-apps/cpio/cpio-2.4.2-r1.ebuild new file mode 100644 index 000000000000..1fae7a6afbf5 --- /dev/null +++ b/sys-apps/cpio/cpio-2.4.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cpio/cpio-2.4.2-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P="cpio-2.4.2" +A="${P}.tar.gz" +S=${WORKDIR}/${P} +DESCRIPTION="A file archival tool which can also read and write tar files" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/cpio/"${A} +HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv rmt.c rmt.c.orig + sed -e "78d" rmt.c.orig > rmt.c + mv userspec.c userspec.c.orig + sed -e "85d" userspec.c.orig > userspec.c +} + +src_install() { + into /usr + dobin cpio mt + doman cpio.1 mt.1 + doinfo cpio.info + dodoc COPYING* ChangeLog NEWS README +} + diff --git a/sys-apps/cpio/files/digest b/sys-apps/cpio/files/digest new file mode 100644 index 000000000000..1707e00faef6 --- /dev/null +++ b/sys-apps/cpio/files/digest @@ -0,0 +1 @@ +MD5 e651ca1e1ac53aaebfa7ad256b0fe4fc cpio-2.4.2.tar.gz diff --git a/sys-apps/debianutils/debianutils-1.13.3-r1.ebuild b/sys-apps/debianutils/debianutils-1.13.3-r1.ebuild new file mode 100644 index 000000000000..71d6e4e91a01 --- /dev/null +++ b/sys-apps/debianutils/debianutils-1.13.3-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-1.13.3-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=debianutils-1.13.3 +A=debianutils_1.13.3.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="A selection of tools from Debian" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.debian.org/debian/dists/potato/main/source/base/${A}" + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/-O2 -g/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into / + dobin run-parts readlink tempfile mktemp + insopts -m755 + insinto /usr/sbin + doins savelog + doman run-parts.8 readlink.1 tempfile.1 mktemp.1 savelog.8 +} + + + diff --git a/sys-apps/debianutils/files/digest b/sys-apps/debianutils/files/digest new file mode 100644 index 000000000000..30079b8cc3cd --- /dev/null +++ b/sys-apps/debianutils/files/digest @@ -0,0 +1 @@ +MD5 91511bc2eec9beebb23cf22fb57a202e debianutils_1.13.3.tar.gz diff --git a/sys-apps/diffutils/diffutils-2.7-r1.ebuild b/sys-apps/diffutils/diffutils-2.7-r1.ebuild new file mode 100644 index 000000000000..cc4c5f893fd5 --- /dev/null +++ b/sys-apps/diffutils/diffutils-2.7-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.7-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=diffutils-2.7 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Tools to make diffs and compare files" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.gnu.org/gnu/diffutils/diffutils-2.7.tar.gz" +HOMEPAGE="http://www.gnu.org/software/diffutils/diffutils.html" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make +} + +src_install() { + into /usr + doinfo *.info* + dobin cmp diff diff3 sdiff + dodoc COPYING ChangeLog NEWS README +} + + diff --git a/sys-apps/diffutils/files/digest b/sys-apps/diffutils/files/digest new file mode 100644 index 000000000000..d4b1dc7fc3ff --- /dev/null +++ b/sys-apps/diffutils/files/digest @@ -0,0 +1 @@ +MD5 300d86a0566afee1c3756828f6c9538a diffutils-2.7.tar.gz diff --git a/sys-apps/e2fsprogs/e2fsprogs-1.18-r1.ebuild b/sys-apps/e2fsprogs/e2fsprogs-1.18-r1.ebuild new file mode 100644 index 000000000000..f485c31cdc94 --- /dev/null +++ b/sys-apps/e2fsprogs/e2fsprogs-1.18-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/e2fsprogs/e2fsprogs-1.18-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ +P=e2fsprogs-1.18 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard ext2 filesystem utilities" +CATEGORY="sys-apps" +SRC_URI="ftp://tsx-11.mit.edu/pub/linux/packages/ext2fs/e2fsprogs-1.18.tar.gz" +HOMEPAGE="http://web.mit.edu/tytso/www/linux/e2fsprogs.html" + + +src_compile() { + ./configure --host=${CHOST} --enable-elf-shlibs + make +} + +src_install() { + into /usr + make DESTDIR=${D} install + make DESTDIR=${D} install-libs + gzip -9 ${D}/usr/man/man?/* + if [ -z "DBUG" ] + then + strip ${D}/sbin/* + strip ${D}/usr/sbin/* + strip ${D}/usr/bin/* + strip --strip-unneeded ${D}/lib/*.so* + strip --strip-unneeded ${D}/usr/lib/*.so* + fi + dodoc COPYING ChangeLog README RELEASE-NOTES +} + + diff --git a/sys-apps/e2fsprogs/files/digest b/sys-apps/e2fsprogs/files/digest new file mode 100644 index 000000000000..dca86c09b6fe --- /dev/null +++ b/sys-apps/e2fsprogs/files/digest @@ -0,0 +1 @@ +MD5 c38cafebd86cd6d6e5599c92a5e23115 e2fsprogs-1.18.tar.gz diff --git a/sys-apps/ebuild/ebuild-1.2-r1.ebuild b/sys-apps/ebuild/ebuild-1.2-r1.ebuild new file mode 100644 index 000000000000..a6d3c0be3ef3 --- /dev/null +++ b/sys-apps/ebuild/ebuild-1.2-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ebuild/ebuild-1.2-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=ebuild-1.2 +A="" +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="The heart of the ebuild-system" + +src_unpack() { + mkdir ${S} +} + +src_compile() { + cd ${S} +} + +src_install() { + cd ${O}/files + insinto /etc + doins make.conf + dodir /usr/bin + dodir /usr/sbin + insinto /usr/bin + insopts -m755 + doins ebuild *.sh + insinto /usr/sbin + doins merge.py unmerge.py +} + + + + + diff --git a/sys-apps/ebuild/files/ebuild b/sys-apps/ebuild/files/ebuild new file mode 100755 index 000000000000..55baf253f1a7 --- /dev/null +++ b/sys-apps/ebuild/files/ebuild @@ -0,0 +1,1255 @@ +#!/bin/bash +# Copyright 1999-2000 Daniel Robbins, Gentoo Technologies, Inc. +# Distributed under the GPL + +# stuff to add: +# DISTDIR, WORKDIR (WRKDIR) support (relocatable) +# PATCHDIR support for src_unpack (to get to patches distributed with the +# port rather than auto-downloaded. Maybe make it another target ??? nah +# CATEGORIES - place package in /usr/src/packages/All, symlink from +# /usr/src/sys/packages/${CATEGORY} for cd-rom distribution +# add BUILD_DEPENDS +# add RUN_DEPENDS +# add LIB_DEPENDS ? (make dependency as library-generic as possible) +# add +# possibly add PREFIX support +# add post-install and post-deinstall (for calling ldconfig, install-int) + +export PROXY +export HTTP_PROXY +export FTP_PROXY + +if [ "`whoami`" != "root" ] +then + echo "Since ebuild can modify critical system files, only root is" + echo "allowed to use the ebuild system." + exit 1 +fi + +source /etc/make.conf + +initvars() { + #fix up ROOT path so that it always has a / after it + local rlen + rlen=$(( ${#ROOT} -1 )) + if [ "${ROOT:${rlen}:1}" != "/" ] + then + export ROOT=${ROOT}/ + fi + + + DESTTREE=/usr + INSDESTTREE="" + EXEDESTTREE="" + DOCDESTTREE="" + INSOPTIONS="-m0644" + if [ -n "$DEBUG" ] + then + EXEOPTIONS="-m0755" + else + EXEOPTIONS="-m0755 -s" + fi + LIBOPTIONS="-m0644" + MOPREFIX=${P%-*} + KVERS=`uname -r` +} + +initvars + +src_unpack() + { + unpack ${A} + } + +src_compile() + { + return + } + +src_install() + { + return + } + +pkg_preinst() + { + return + } + +pkg_postinst() + { + return + } + +pkg_prerm() + { + return + } + +pkg_postrm() + { + return + } + +bz2unpack() + { + tar -x --use=bzip2 -f $1 + } + +gzunpack() + { + tar xzf $1 + } + +pmake() + { + make ${MAKEOPTS} MAKE="make ${MAKEOPTS}" $* + } + +use() +{ + local x + for x in "$USE" + do + if [ "${1}" = "${x}" ] + then + echo "${x}" + return + fi + return + done +} + +dyn_digest() { + local x + if [ ! -d ${FILESDIR} ] + then + install -d ${FILESDIR} + fi + rm -f ${FILESDIR}/digest + for x in ${A} + do + if [ ! -e ${DISTDIR}/${x} ] + then + echo '!!! Cannot compute message digests: '${x} not found + echo "error, aborting." + exit 1 + else + mymd5=`md5sum ${DISTDIR}/${x} | cut -f1 -d" "` + echo "MD5 $mymd5 $x" >> ${FILESDIR}/digest + fi + done + echo ">>> Computed message digests." +} + +digest_check() { + if [ ! -e ${FILESDIR}/digest ] + then + echo '!!!'" No message digest file found." + echo '!!!'" Maintainer: ebuild digest to update message digests." + return 1 + fi + if [ ! -e ${DISTDIR}/${1} ] + then + echo '!!!'" ${1} not found." + echo '!!!'" Ebuild fetch to retrieve files." + return 1 + fi + local mycdigest=`grep " ${1}" ${FILESDIR}/digest | cut -f2 -d" "` + if [ -z "$mycdigest" ] + then + echo + echo '!!!'" No message digest found for ${1}." + echo '!!!'" Maintainer: ebuild digest to update message digests." + echo + return 1 + fi + local mydigest=`md5sum ${DISTDIR}/${1} | cut -f1 -d" "` + if [ "$mycdigest" != "$mydigest" ] + then + echo + echo '!!!'" ${1}: message digests do not match!" + echo '!!!'" ${1} is corrupt or incomplete" + echo ">>> md5 con ${mycdigest}" + echo ">>> md5 now ${mydigest}" + echo ">>> Please delete/redownload ${DISTDIR}/${1}" + echo + return 1 + else + echo ">>> md5 ;-) ${1}" + fi + return 0 +} + + +dyn_fetch() { + local y + for y in ${A} + do + if [ ! -e ${DISTDIR}/${y} ] + then + echo ">>> Fetching ${y}..." + echo + local x + local _SRC_URI + _SRC_URI=`/usr/bin/queryhost.sh "${SRC_URI}"` + for x in ${_SRC_URI} + do + if [ ! -e ${DISTDIR}/${y} ]; then + if [ $y == ${x##*/} ] + then + echo ">>> Trying site ${x}..." + eval ${FETCHCOMMAND} + if [ $? -ne 0 ] + then + echo '!!!'" Couldn't download ${y}. Aborting." + exit 1 + fi + fi + fi + done + echo + fi + done + for y in ${A} + do + digest_check ${y} + if [ $? -ne 0 ] + then + exit 1 + fi + done +} + +dyn_unpack() { + trap "abort_unpack" SIGINT SIGQUIT + local unpackwork="yes" + if [ -e ${WORKDIR} ] + then + local x + for x in $A $EBUILD + do + echo ">>> Checking ${x}'s mtime..." + if [ ${DISTDIR}/${x} -nt ${WORKDIR} ] + then + echo ">>> ${x} has been updated; recreating WORKDIR..." + rm -rf ${WORKDIR} + break + fi + done + echo ">>> WORKDIR is up-to-date, not unpacking. (clean to force unpack)" + unpackwork="no" + fi + if [ "$unpackwork" = "yes" ] + then + install -m0700 -d ${WORKDIR} + cd ${WORKDIR} + echo ">>> Unpacking source..." + src_unpack + echo ">>> Source unpacked." + cd .. + fi + trap SIGINT SIGQUIT +} + +unpack() { + local x + for x in "$@" + do + echo ${x} + case "${x##*.}" in + gz) + gzunpack ${DISTDIR}/${x} + ;; + tgz) + gzunpack ${DISTDIR}/${x} + ;; + Z) + gzunpack ${DISTDIR}/${x} + ;; + bz2) + bz2unpack ${DISTDIR}/${x} + ;; + tbz2) + bz2unpack ${DISTDIR}/${x} + ;; + *) + echo "Archive format not recognized." + exit + ;; + esac + done +} + + +dyn_clean() { + if [ -d ${WORKDIR} ] + then + rm -rf ${WORKDIR} + fi + if [ -d ${BUILDDIR}/image ] + then + rm -rf ${BUILDDIR}/image + fi + rm -rf ${BUILDDIR}/.compiled +} + +into() { + if [ $1 = "/" ] + then + DESTTREE="" + else + DESTTREE=$1 + if [ ! -d ${D}${DESTTREE} ] + then + install -d ${D}${DESTTREE} + fi + fi +} + +insinto() { + if [ $1 = "/" ] + then + INSDESTTREE="" + else + INSDESTTREE=$1 + if [ ! -d ${D}${INSDESTTREE} ] + then + install -d ${D}${INSDESTTREE} + fi + fi +} + +exeinto() { + if [ $1 = "/" ] + then + EXEDESTTREE="" + else + EXEDESTTREE=$1 + if [ ! -d ${D}${EXEDESTTREE} ] + then + install -d ${D}${EXEDESTTREE} + fi + fi +} +docinto() { + if [ $1 = "/" ] + then + DOCDESTTREE="" + else + DOCDESTTREE=$1 + if [ ! -d ${D}usr/doc/${P}/${DOCDESTTREE} ] + then + install -d ${D}usr/doc/${P}/${DOCDESTTREE} + fi + fi +} +dodoc() { + local x + for x in "$@" + do + if [ -e ${x} ] + then + if [ ! -d ${D}/usr/doc/${P} ] + then + install -d ${D}/usr/doc/${P} + fi + if [ -z ${DOCDESTTREE} ] + then + install -m0644 ${x} ${D}/usr/doc/${P} + gzip -9 ${D}/usr/doc/${P}/${x##*/} + else + install -m0644 ${x} ${D}usr/doc/${P}/${DOCDESTTREE} + gzip -9 ${D}usr/doc/${P}/${DOCDESTTREE}/${x##*/} + fi + else + echo "${0}: ${x} does not exist." + fi + done +} + +prepstrip() { + if [ -n "${DEBUG}" ] + then + return + fi + local x + for x in $@ + do + strip ${D}${x}/* + done +} + +preplib.so() { + if [ -n "${DEBUG}" ] + then + return + fi + local x + for x in $@ + do + strip --strip-unneeded ${D}${x}/*.so* + done +} + +prepinfo() { + if [ -z "$1" ] + then + rm -f ${D}/usr/info/dir + gzip -9 ${D}/usr/info/* + else + rm -f ${D}/$1/info/dir + gzip -9 ${D}/$1/info/* + fi +} + +prepman() { + local x + local y + if [ -z "$1" ] ; then z=${D}/usr/man ; else z=${D}/$1/man ; fi + for x in ${z}/* + do + local y + for y in ${x}/* + do + if [ -h ${y} ] + then + #symlink + local linkto=`ls -l ${y} | sed -e "s:${D}::" | awk '{ printf ("%s.gz",$11) } '` + echo "$linkto $y.gz" + ln -sf ${linkto} ${y}.gz + rm ${y} + else + gzip -f -9 ${y} + fi + done + done +} + + +doman() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + local myloc=$DESTTREE + if [ "$myloc" = "" ] + then + myloc=/usr + fi + local x + for x in "$@" + do + local md=${x##*.} + local mandir + mandir=man${md:0:1} + if [ -e ${x} ] + then + if [ ! -d ${D}${myloc}/man/${mandir} ] + then + install -d ${D}${myloc}/man/${mandir} + fi + install -m0644 ${x} ${D}${myloc}/man/${mandir} + gzip -9 ${D}${myloc}/man/${mandir}/${x##*/} + else + echo "${0}: ${x} does not exist." + fi + done +} + +doinfo() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}/usr/info ] + then + install -d ${D}/usr/info + fi + local x + for x in "$@" + do + if [ -e ${x} ] + then + install -m0644 ${x} ${D}/usr/info + gzip -9 ${D}/usr/info/${x##*/} + else + echo "${0}: ${x} does not exist" + fi + done +} + +dolib() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/lib ] + then + install -d ${D}${DESTTREE}/lib + fi + local x + for x in "$@" + do + if [ -e ${x} ] + then + install ${LIBOPTIONS} ${x} ${D}${DESTTREE}/lib + else + echo "${0}: ${x} does not exist" + fi + done +} + +#To be used for dynamic .so libraries +dolib.so() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/lib ] + then + install -d ${D}${DESTTREE}/lib + fi + local x + for x in "$@" + do + if [ -e ${x} ] + then + install -m0755 ${x} ${D}${DESTTREE}/lib + if [ -z "$DEBUG" ] + then + strip --strip-unneeded ${D}${DESTTREE}/lib/${x##*/} + fi + else + echo "${0}: ${x} does not exist" + fi + done +} + +#To be used for static .a libraries +dolib.a() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/lib ] + then + install -d ${D}${DESTTREE}/lib + fi + local x + for x in "$@" + do + if [ -e ${x} ] + then + install -m0644 ${x} ${D}${DESTTREE}/lib + else + echo "${0}: ${x} does not exist" + fi + done +} + +dobin() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/bin ] + then + install -d ${D}${DESTTREE}/bin + fi + local x + for x in "$@" + do + if [ -x ${x} ] + then + if [ -z "$DEBUG" ] + then + local MYVAL + MYVAL=`file ${x} | grep "executable"` + if [ -n "$MYVAL" ] + then + strip ${x} + fi + fi + install ${x} ${D}${DESTTREE}/bin + else + echo "${0}: ${x} is not executable or does not exist" + fi + done +} + +dosbin() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/sbin ] + then + install -d ${D}${DESTTREE}/sbin + fi + local x + for x in "$@" + do + if [ -x ${x} ] + then + if [ -z "$DEBUG" ] + then + local MYVAL=`file ${x} | grep "executable"` + if [ "$MYVAL" ] + then + strip ${x} + fi + fi + install -m0754 ${x} ${D}${DESTTREE}/sbin + else + echo "${0}: ${x} is not executable or does not exist" + fi + done +} + +#symlink +dosym() { + if [ ${#} -ne 2 ] + then + echo "${0}: two arguments needed" + return + fi + local target=${1} + local linkname=${2} + ln -sf ${target} ${D}${linkname} +} + +#hard link +dohard() { + if [ ${#} -ne 2 ] + then + echo "${0}: two arguments needed" + return + fi + local mysrc=${1} + local mydest=${2} + ln -f ${D}${mysrc} ${D}${mydest} +} + +#mkdir +dodir() { + if [ ${#} -ne 1 ] + then + echo "${0}: one argument needed" + return + fi + install -d ${D}${1} +} + +fperms() { + if [ ${#} -ne 2 ] + then + echo "${0}: two arguments needed" + return + fi + chmod ${1} ${D}/${2} +} + +fowners() { + if [ ${#} -ne 2 ] + then + echo "${0}: two arguments needed" + return + fi + chown ${1} ${D}/${2} +} + + +insopts() { + INSOPTIONS="" + for x in $* + do + #if we have a debug build, let's not strip anything + if [ -n "$DEBUG" ] && [ "$x" = "-s" ] + then + continue + else + INSOPTIONS="$INSOPTIONS $x" + fi + done +} + +doins() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${INSDESTTREE} ] + then + install -d ${D}${INSDESTTREE} + fi + local x + for x in "$@" + do + if [ -L $x ] + then + cp $x ${WORKDIR} + install ${INSOPTIONS} ${WORKDIR}/${x##*/} ${D}${INSDESTTREE} + else + install ${INSOPTIONS} ${x} ${D}${INSDESTTREE} + fi + done +} + +newdoc() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + dodoc ${T}/${2} +} + +newman() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + doman ${T}/${2} +} + +newexe() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + doexe ${T}/${2} +} + +newbin() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + dobin ${T}/${2} +} + +newlib.so() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + dolib.so ${T}/${2} +} + +newlib.a() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + dolib.a ${T}/${2} +} + +newsbin() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + dosbin ${T}/${2} +} + +newins() { + rm -rf ${T}/${2} + cp ${1} ${T}/${2} + doins ${T}/${2} +} + +donewins() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${INSDESTTREE} ] + then + install -d ${D}${INSDESTTREE} + fi + install -D ${INSOPTIONS} ${1} ${D}${INSDESTTREE}/${2} + +} + +exeopts() { + EXEOPTIONS="" + for x in $* + do + #if we have a debug build, let's not strip anything + if [ -n "$DEBUG" ] && [ "$x" = "-s" ] + then + continue + else + EXEOPTIONS="$EXEOPTIONS $x" + fi + done +} + +libopts() { + LIBOPTIONS="" + for x in $* + do + #if we have a debug build, let's not strip anything + if [ -n "$DEBUG" ] && [ "$x" = "-s" ] + then + continue + else + LIBOPTIONS="$LIBOPTIONS $x" + fi + done +} + +doexe() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${EXEDESTTREE} ] + then + install -d ${D}${EXEDESTTREE} + fi + local x + for x in "$@" + do + install ${EXEOPTIONS} ${x} ${D}${EXEDESTTREE} + done +} + +domo() { + local mynum=${#} + if [ ${mynum} -lt 1 ] + then + echo "${0}: at least one argument needed" + return + fi + if [ ! -d ${D}${DESTTREE}/share/locale ] + then + install -d ${D}${DESTTREE}/share/locale/ + fi + local x + for x in "$@" + do + if [ -e ${x} ] + then + local mytiny=${x##*/} + local mydir=${D}${DESTTREE}/share/locale/${mytiny%.*}/LC_MESSAGES + if [ ! -d ${mydir} ] + then + install -d ${mydir} + fi + install -m0644 ${x} ${mydir}/${MOPREFIX}.mo + else + echo "${0}: ${x} does not exist" + fi + done +} + +abort_compile() { + echo + echo '*** Compilation Aborted ***' + echo + cd ${BUILDDIR} #original dir + rm -f .compiled + trap SIGINT SIGQUIT + exit 1 +} + +abort_unpack() { + echo + echo '*** Unpack Aborted ***' + echo + cd ${BUILDDIR} #original dir + rm -f .unpacked + rm -rf work + trap SIGINT SIGQUIT + exit 1 +} + +abort_package() { + echo + echo '*** Packaging Aborted ***' + echo + cd ${BUILDDIR} #original dir + rm -f .packaged + rm -f ${PKGDIR}/All/${P}.t* + trap SIGINT SIGQUIT + exit 1 +} + +abort_image() { + echo + echo '*** Imaging Aborted ***' + echo + cd ${BUILDDIR} #original dir + rm -rf image + trap SIGINT SIGQUIT + exit 1 +} + +dyn_compile() { + trap "abort_compile" SIGINT SIGQUIT + export CFLAGS CXXFLAGS LIBCFLAGS LIBCXXFLAGS + if [ ${BUILDDIR}/.compiled -nt ${WORKDIR} ] + then + echo ">>> It appears that ${P} is already compiled. skipping." + echo ">>> (clean to force compilation)" + trap SIGINT SIGQUIT + return + fi + cd ${S} + src_compile + cd ${BUILDDIR} + touch .compiled + trap SIGINT SIGQUIT +} + +dyn_pkginfo() { + local PNAME=${P}.${PACKAGE} + echo ${P} ${PKGDIR}/All ${PKGDIR}/All/${PNAME} +} + +dyn_package() { + trap "abort_package" SIGINT SIGQUIT + cd ${BUILDDIR}/image + local PNAME=${P}.${PACKAGE} + echo ">>> Creating ${PNAME} in ${PKGDIR}/All..." + if [ ! -e ${PKGDIR} ] + then + mkdir ${PKGDIR} + fi + if [ ! -e ${PKGDIR}/All ] + then + mkdir ${PKGDIR}/All + fi + if [ "$PACKAGE" = "tbz2" ] + then + tar cvf ${PKGDIR}/All/${P}.tar * + bzip2 ${PKGDIR}/All/${P}.tar + mv ${PKGDIR}/All/${P}.tar.bz2 ${PKGDIR}/All/${PNAME} + elif [ "$PACKAGE" = "tgz" ] + then + tar czvf ${PKGDIR}/All/${PNAME} * + else + echo '!!! Package format '${PACKAGE}' not recognized. Please correct /etc/make.conf' + exit 1 + fi + if [ ! -e ${PKGDIR}/${CATEGORY} ] + then + mkdir ${PKGDIR}/${CATEGORY} + fi + ln -sf ${PKGDIR}/All/${PNAME} ${PKGDIR}/${CATEGORY}/${PNAME} + echo ">>> Done." + cd ${BUILDDIR} + touch .packaged + trap SIGINT SIGQUIT +} + +dyn_install() { + trap "abort_image" SIGINT SIGQUIT + rm -rf ${BUILDDIR}/image + mkdir ${BUILDDIR}/image + cd ${S} + echo + echo ">>> Install ${P} into ${D}" + src_install + install -d -m0700 ${D}/var/db/pkg/${P} + cp ${STARTDIR}/${EBUILD} ${D}/var/db/pkg/${P} + echo ">>> Completed installing into ${D}" + echo + cd ${BUILDDIR} + trap SIGINT SIGQUIT +} + +dyn_merge() { + trap "" SIGINT SIGQUIT + #not interruptible, so that the db doesn't get garbled + if [ -d ${ROOT}/var/db/pkg/${P} ] + then + echo + echo '!!!' "${P} already merged -- unmerge first" + echo + exit 1 + fi + echo + pkg_preinst + /usr/sbin/merge.py + cd ${BUILDDIR} + #zap it so that people don't look at a bad image and get confused + rm -rf image + pkg_postinst + trap SIGINT SIGQUIT +} + +dyn_unmerge() { + trap "" SIGINT SIGQUIT + #stub unmerge function for now + cd ${BUILDDIR} + /usr/sbin/unmerge.py ${P} + if [ $? -ne 0 ] + then + exit + fi + trap SIGINT_SIGQUIT +} + +dyn_spec() { + + tar czf /usr/src/redhat/SOURCES/${P}.tar.gz ${P}.* files + + local V + + V=${P#${O##*/}*} + V=${V/[!digit]/} + V=${V/-/.} + + cat <<__END1__ > ${P}.spec +Summary: ${DESCRIPTION} +Name: ${O##*/} +Version: ${V} +Release: 1 +Copyright: GPL +Group: portage/${CATEGORY} +Source: ${P}.tar.gz +Buildroot: ${D} +%description +${DESCRIPTION} + +%prep +%setup -c + +%build + +%install + +%clean + +%files +/ +__END1__ + +} +dyn_rpm () { + dyn_spec + rpm -bb ${P}.spec + local V + + V=${P#${O##*/}*} + V=${V/[!digit]/} + V=${V/-/.} + local W + W="portage/${CATEGORY}" + + install -D /usr/src/redhat/RPMS/i386/${O##*/}-${V}-1.i386.rpm ${RPMDIR}/${W}/${O##*/}-${V}.rpm +} + +dyn_help() { + echo + echo "Portage v1.1" + echo "Copyright 2000 Gentoo Technologies, Inc." + echo + echo "How to use the ebuild command:" + echo + echo "The first argument to ebuild should be an existing .ebuild file." + echo + echo "One or more of the following options can then be specified. If more" + echo "than one option is specified, each will be executed in order." + echo + echo " fetch : download source archive(s) and patches" + echo " unpack : unpack/patch sources (auto-fetch if needed)" + echo " compile : compile sources (auto-fetch/unpack if needed)" + echo " merge : merge image into live filesystem, recording files in db" + echo " (auto-fetch/unpack/compile if needed)" + echo " unmerge : remove package from live filesystem" + echo " clean : clean up all source and temporary files" + echo " clean-image : clean image directory only" + echo + echo "The following settings will be used for the ebuild process:" + echo + echo " package : ${P}" "( \${P} )" + echo " description : ${DESCRIPTION}" + echo " system : ${CHOST}" "( \${CHOST} )" + echo " c flags : ${CFLAGS}" "( \${CFLAGS} )" + echo " c++ flags : ${CXXFLAGS}" "( \${CXXFLAGS} )" + echo " make flags : ${MAKEOPTS}" "( \${MAKEOPTS} )" + echo -n " build mode : " + if [ -n "${DEBUG}" ] + then + echo "debug (large)" + else + echo "production (stripped)" + fi + echo " merge to : ${ROOT}" "( \${ROOT} )" + echo " db location : ${ROOT}var/db/pkg/${P}/CONTENTS" + echo + if [ -n "$USE" ] + then + echo "Additionally, support for the following toolkits will be enabled if necessary:" + echo + echo " ${USE}" + fi + echo +} + +src_menu() { + MYDIR=${BUILDDIR} + if [ "$1" = "p" ] + then + echo ${P} + exit 0 + fi + + local MYfoo + for MYfoo in "$@" + do + case "${MYfoo}" in + noop) + ;; + unpack) + dyn_fetch + dyn_unpack + ;; + compile) + dyn_fetch + dyn_unpack + dyn_compile + ;; + prerm|postrm|preinst|postinst) + pkg_${MYfoo} + ;; + help|install|clean|fetch|digest|pkginfo|pkgloc|unmerge) + dyn_${MYfoo} + ;; + package) + dyn_fetch + dyn_unpack + dyn_compile + dyn_install + dyn_package + ;; + merge) + dyn_fetch + dyn_unpack + dyn_compile + dyn_install + dyn_merge + ;; + rpm) + dyn_fetch + dyn_unpack + dyn_compile + dyn_install + dyn_rpm + ;; + *) + echo "Please specify a valid command." + echo + dyn_help + esac + done + cd $MYDIR +} + +#dummy value for help printouts +P=packagename + +if [ $# -lt 2 ] +then + echo + echo '!!!' "At least two arguments expected." + dyn_help + exit 1 +fi + +if [ ! -e ${1} ] +then + echo + echo '!!!' "${1} not found." + dyn_help + exit 1 +fi + +export STARTDIR=`pwd` +export O=`dirname ${STARTDIR}/${1}` +export EBUILD=${1} +export PEBUILD=${O}/files/${PLATFORM}.ebuild +export FILESDIR=${O}/files + +source ${1} +if [ -e ${PEBUILD} ] +then + source ${PEBUILD} +fi + +if [ -z "$FETCHCOMMAND" ] +then + FETCHCOMMAND="/usr/bin/wget --passive-ftp \${x} -P \${DISTDIR}" +fi + +if [ ! -z ${BUILD_PREFIX} ] +then + export BUILDDIR=${BUILD_PREFIX}/${CATEGORY}/${P} +else + export BUILDDIR=${O} +fi +if [ ! -d ${BUILDDIR} ] +then + install -d ${BUILDDIR} +fi + +export T=${BUILDDIR}/temp +if [ ! -d ${T} ] +then + install -d ${T} +fi +export WORKDIR=${BUILDDIR}/work +export D=${BUILDDIR}/image +dlen=$(( ${#D} -1 )) +if [ "${D:${dlen}:1}" != "/" ] +then + export D=${D}/ +fi + +if [ -z ${DISTDIR} ] +then + export DISTDIR=/usr/portage/distfiles +fi +if [ -z ${PKGDIR} ] +then + export PKGDIR=/usr/portage/packages +fi + +source ${1} +if [ -e ${PEBUILD} ] +then + source ${PEBUILD} +fi + +export P + +# Set Perl-Installation Enviroment + +for i in ARCHLIB PRIVLIB BIN MAN1DIR MAN3DIR SCRIPT SITEARCH SITELIB +do + install=`echo $i | awk '{ printf "%s%s","install",tolower($1) }'` + install=`perl "-V:$install" | sed -e "s:.*/image/\(.*\)'\;:\1:"` + PERLINSTALL=`echo INSTALL$i=$D$install $PERLINSTALL` +done +export PERLINSTALL + +foo=2 +while [ $foo -le $# ] +do +eval "src_menu \${${foo}}" +if [ $? -ne 0 ] +then + echo "***error***" + exit 1 +fi +foo=$(( $foo + 1)) +done diff --git a/sys-apps/ebuild/files/make.conf b/sys-apps/ebuild/files/make.conf new file mode 100644 index 000000000000..aa21a1b84d3a --- /dev/null +++ b/sys-apps/ebuild/files/make.conf @@ -0,0 +1,50 @@ +# Copyright 2000 Daniel Robbins, Gentoo Technologies, Inc. +# +# /etc/make.conf -- set system-wide compile options in this file +# Use bash-style semantics, since this will be sourced from bash, +# rather than by make as under FreeBSD. +# stuff to add: how to compress manpages + +#proxy settings PROXY(both), or HTTP_PROXY/FTP_PROXY +PROXY=freebox.gentoo.org:3128 +#HTTP_PROXY= +#FTP_PROXY= + +# Host-type +CHOST=i686-pc-linux-gnu + +# Directory used for the build process +BUILD_PREFIX=/tmp/portage/ +DISTDIR=/usr/portage/distfiles +PKGDIR=/usr/portage/packages +RPMDIR=/usr/portage/rpm +PLATFORM=$CHOST + +# Options passed to make during the build process +MAKEOPTS="-j2" + +# Fetching command +FETCHCOMMAND="/usr/bin/wget --passive-ftp \${x} -P \${DISTDIR}" + +# Compile programs with GNOME/SLANG extensions +USE="gnome slang" + +# C Compiler flags +CFLAGS="-O2 -mpentium" + +# C++ Compiler flags +CXXFLAGS="-O2 -mpentium" + +#Debug build -- if defined, binaries won't be stripped +#DEBUG=true + +#Package Mode - tbz2 or tgz (what binary package mode) +PACKAGE=tbz2 + +einfo() { + echo info:"$*" +} + +eerror() { + echo error:"$*" +} diff --git a/sys-apps/ebuild/files/merge.py b/sys-apps/ebuild/files/merge.py new file mode 100755 index 000000000000..ff32a5ae7453 --- /dev/null +++ b/sys-apps/ebuild/files/merge.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python + +import os +from commands import * +import string + +mystart=os.path.normpath(os.environ["D"]) +mypackage=os.path.normpath(os.environ["P"]) +myroot=os.environ["ROOT"] + +os.chdir(mystart) +print +print ">>> Merging contents of",mystart,"into live filesystem at "+myroot +print ">>> Recording merged files to "+myroot+"var/db/pkg/"+mypackage+"/CONTENTS" +def prepare_db(): + if not os.path.isdir(myroot+"var/db"): + os.mkdir(myroot+"var/db",0755) + if not os.path.isdir(myroot+"var/db/pkg"): + os.mkdir(myroot+"/var/db/pkg",0755) + if not os.path.isdir(myroot+"var/db/pkg/"+mypackage): + os.mkdir(myroot+"var/db/pkg/"+mypackage,0755) + +def md5(x): + myresult=getstatusoutput("/usr/bin/md5sum "+x) + return string.split(myresult[1]," ")[0] + +def getmtime(x): + return `os.lstat(x)[-2]` + +def pathstrip(x): + cpref=os.path.commonprefix([x,mystart]) + return [myroot+x[len(cpref)+1:],x[len(cpref):]] + +def mergefiles(): + mycurpath=os.getcwd() + myfiles=os.listdir(mycurpath) + for x in myfiles: + floc=pathstrip(os.path.normpath(mycurpath+"/"+x)) + if os.path.islink(x): + myto=os.readlink(x) + mycom=getstatusoutput("/bin/ln -sf "+myto+" "+floc[0]) + if mycom[0]==0: + print "<<<",floc[0],"->",myto + outfile.write("sym "+floc[1]+" -> "+myto+" "+getmtime(floc[0])+"\n") + else: + print "!!!",floc[0],"->",myto + elif os.path.isfile(x): + mymd5=md5(mycurpath+"/"+x) + mystatus=getstatusoutput("/bin/mv "+x+" "+pathstrip(mycurpath)[0]) + if mystatus[0]==0: + zing="<<<" + else: + zing="!!!" + + print zing+" "+floc[0] + print "md5",mymd5 + outfile.write("obj "+floc[1]+" "+mymd5+" "+getmtime(floc[0])+"\n") + elif os.path.isdir(x): + mystat=os.stat(x) + if not os.path.exists(floc[0]): + os.mkdir(floc[0]) + os.chmod(floc[0],mystat[0]) + os.chown(floc[0],mystat[4],mystat[5]) + print "<<<",floc[0]+"/" + else: + print "---",floc[0]+"/" + #mtime doesn't mean much for directories -- we don't store it + outfile.write("dir "+floc[1]+"\n") + mywd=os.getcwd() + os.chdir(x) + mergefiles() + os.chdir(mywd) + + +prepare_db() +outfile=open(myroot+"var/db/pkg/"+mypackage+"/CONTENTS","w") +mergefiles() +print +print ">>>",mypackage,"installed." +print +outfile.close() diff --git a/sys-apps/ebuild/files/pkgdepend.py b/sys-apps/ebuild/files/pkgdepend.py new file mode 100644 index 000000000000..81d4f20b31a9 --- /dev/null +++ b/sys-apps/ebuild/files/pkgdepend.py @@ -0,0 +1,221 @@ +#!/usr/bin/env python +# +# StampedeLinux Dependency Checking Code +# Copyright 1998 Daniel Robbins +# Distributed under the GNU Public License +# Version 0.5 12/22/98 +# +# Version comparison: Functionality +# +# Exactly what version numbers and letters does this versioning code +# recognize, and which tags are considered later versions than others? +# Take a look at these version number examples: +# +# 4.5 > 4.0 (you knew this one!) +# 4.0 == 4 (probably knew this one too) +# 4.0.1 < 4.0.2 +# 4.0.0.1 < 4.0.2 +# +# Build (revision) Numbers: +# +# Build (or revision) numbers can be specified along with the last digit +# in a version string, for example: +# +# 4.5b (Revision b of version 4.5, *not* 4.5 beta) +# 4.5c > 4.5b +# 1.2.3a > 1.2.3 +# 9.8.0z > 9.8 +# 9a.5b *ILLEGAL* --- Build numbers can only immediately follow the *last* +# digit in a version, so the "9a" is illegal +# +# Alpha, Beta, and Pre +# +# Functionality has been added to support alpha, beta and pre prefixes. +# They are specified by placing an underscore "_" immediately after the last +# digit, and then specifying "alpha","beta",or "pre". They are always branched +# off the last digit in a version. In addition, an optional build (revision) number +# can immediately follow an "alpha", "beta" or "pre" +# +# More examples: +# +# 4.5_pre6 > 4.5_beta6 > 4.5_alpha6 ( pre is closer to release than a beta ) +# 4.5_pre < 4.5pre1 < 4.5pre2 ( without a build number, a "0 build" is assumed ) +# 2.9_alpha > 2.8 +# 3.4beta *ILLEGAL* (no "_" betweeen last digit and "beta") +# 3.4.beta *ILLEGAL* ("beta" must immediately follow a digit and a "_") +# 3.4_beta (Correct) +# +# The versioning functionality will provide adequate support for a variety of +# numbering schemes, and will allow them to interoperate together. Of course, +# we cannot support every wacky versioning scheme. Our versioning supports +# the vast majority of packages, however. + +import string + +# parsever: +# This function accepts an 'inter-period chunk' such as +# "3","4","3_beta5", or "2b" and returns an array of three +# integers. "3_beta5" returns [ 3, -2, 5 ] +# These values are used to determine which package is +# newer. + +def relparse(myver): + number=0 + p1=0 + p2=0 + mynewver=string.split(myver,"_") + if len(mynewver)==2: + #alpha,beta or pre + number=string.atoi(mynewver[0]) + if "beta" == mynewver[1][:4]: + p1=-2 + try: + p2=string.atoi(mynewver[1][4:]) + except: + p2=0 + elif "alpha" == mynewver[1][:5]: + p1=-3 + try: + p2=string.atoi(mynewver[1][5:]) + except: + p2=0 + elif "pre" ==mynewver[1][:3]: + p1=-1 + try: + p2=string.atoi(mynewver[1][3:]) + except: + p2=0 + else: + #normal number or number with letter at end + divider=len(myver)-1 + if myver[divider:] not in "1234567890": + #letter at end + p1=ord(myver[divider:]) + number=string.atoi(myver[0:divider]) + else: + number=string.atoi(myver) + return [number,p1,p2] + + +#returns 1 if valid version string, else 0 +# valid string in format: <v1>.<v2>...<vx>[a-z,_{alpha,beta,pre}[vy]]-vz + +def ververify(myval): + mybuildval=string.split(myval,'-') + if len(mybuildval)==2: + try: + string.atoi(mybuildval[1]) + myval=mybuildval[0] + except: + return 0 + myval=string.split(myval,'.') + for x in range(0,len(myval)-1): + try: + foo=string.atoi(myval[x]) + except: + return 0 + endval=myval[-1:][0] + try: + string.atoi(endval) + return 1 + except: + pass + pos=0 + keepgoing=1 + while keepgoing: + if (pos<len(endval)) and (endval[pos] in "0123456789"): + pos=pos+1 + else: + keepgoing=0 + if pos==0: + return 0 + endval=endval[pos:] + if len(endval)==0: + return 1 + if endval[0] in string.lowercase: + if len(endval)>1: + return 0 + else: + return 1 + elif endval[0] == "_": + endval=endval[1:] + mylen=len(endval) + if (mylen>=3) and (endval[0:3]=="pre"): + if mylen==3: + return 1 + else: + try: + string.atoi(endval[3:]) + return 1 + except: + return 0 + elif (mylen>=4) and (endval[0:4]=="beta"): + if mylen==4: + return 1 + else: + try: + string.atoi(endval[4:]) + return 1 + except: + return 0 + + elif (mylen>=5) and (endval[0:5]=="alpha"): + if mylen==5: + return 1 + else: + try: + string.atoi(endval[5:]) + return 1 + except: + return 0 + + else: + return 0 + else: + return 0 + + +# vercmp: +# This takes two version strings and returns an integer to tell you whether +# the versions are the same, val1>val2 or val2>val1. + +def vercmp(val1,val2): + val1=string.split(val1,'-') + if len(val1)==2: + val1[0]=val1[0]+"."+val1[1] + val1=string.split(val1[0],'.') + val2=string.split(val2,'-') + if len(val2)==2: + val2[0]=val2[0]+"."+val2[1] + val2=string.split(val2[0],'.') + if len(val2)<len(val1): + for x in range(0,len(val1)-len(val2)): + val2.append("0") + elif len(val1)<len(val2): + for x in range(0,len(val2)-len(val1)): + val1.append("0") + #The above code will extend version numbers out so they + #have the same number of digits. + myval1=[] + for x in range(0,len(val1)): + cmp1=relparse(val1[x]) + cmp2=relparse(val2[x]) + for y in range(0,3): + myret=cmp1[y]-cmp2[y] + if myret != 0: + return myret + return 0 + +def pkgsame(pkg1,pkg2): + if (string.split(pkg1,'-')[0])==(string.split(pkg2,'-')[0]): + return 1 + else: + return 0 + +def pkg(myname): + return string.split(myname,'-')[0] + +def ver(myname): + a=string.split(myname,'-') + return myname[len(a[0])+1:] + diff --git a/sys-apps/ebuild/files/queryhost.sh b/sys-apps/ebuild/files/queryhost.sh new file mode 100755 index 000000000000..61213f379f07 --- /dev/null +++ b/sys-apps/ebuild/files/queryhost.sh @@ -0,0 +1,27 @@ + +#!/bin/sh + +hping() { + host=`echo $1 | sed -e 's:.*\://::' -e 's:/.*::'` + result=`ping -c3 -q ${host} 2>/dev/null` + if [ -n "$result" ] + then + if [ -z "`echo $result | sed 's:.*0 packets received.*:N:'`" ] + then + result=`echo $result | sed -e "s:.*= [0-9|\.]*/::" -e "s:/[0-9|\.]* ms::" | awk '{ printf ("%04i\n",(atof $1)) }'` + echo $result $1 + else + echo 9999 $1 + fi + fi +} +pingall() { + + for i in $1 + do + hping $i + done +} +pingall "$1" | sort | sed -e "s:[0-9]* ::" +#pingall "$1" + diff --git a/sys-apps/ebuild/files/unmerge.py b/sys-apps/ebuild/files/unmerge.py new file mode 100755 index 000000000000..846ce4f03d68 --- /dev/null +++ b/sys-apps/ebuild/files/unmerge.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python + +import sys +import os +norm=os.path.normpath +import string +from commands import * + +def pkgscript(x): + myresult=getstatusoutput("/usr/bin/ebuild "+myebuildfile+" "+x) + if myresult[0] or myresult[1]: + print + if myresult[0]: + print "Error code from",pkgname,x,"script --",myresult[0] + if myresult[1]: + print "Output from",pkgname,x,"script:" + print + print myresult[1] + +def md5(x): + myresult=getstatusoutput("/usr/bin/md5sum "+x) + return string.split(myresult[1]," ")[0] + +def getmtime(x): + return `os.lstat(x)[-2]` + +try: + myroot=os.environ["ROOT"] +except KeyError: + myroot="/" + +for pkgname in sys.argv[1:]: + if os.path.isdir(os.path.normpath(myroot+"var/db/pkg/"+pkgname)): + if myroot=="/": + print "Unmerging",pkgname+"..." + else: + print "Unmerging",pkgname,"from",myroot+"..." + print + else: + print pkgname,"not installed" + continue + try: + contents=open(os.path.normpath(myroot+"var/db/pkg/"+pkgname+"/CONTENTS")) + except: + print "Error -- could not open CONTENTS file for", pkgname+". Aborting." + sys.exit(1) + pkgfiles={} + for line in contents.readlines(): + mydat=string.split(line) + # we do this so we can remove from non-root filesystems + # (use the ROOT var to allow maintenance on other partitions) + mydat[1]=os.path.normpath(myroot+mydat[1][1:]) + if mydat[0]=="obj": + #format: type, mtime, md5sum + pkgfiles[mydat[1]]=[mydat[0], mydat[3], mydat[2]] + elif mydat[0]=="dir": + #format: type + pkgfiles[mydat[1]]=[mydat[0] ] + elif mydat[0]=="sym": + #format: type, mtime, dest + pkgfiles[mydat[1]]=[mydat[0], mydat[4], mydat[3]] + else: + print "Error -- CONTENTS file for", pkgname, "is corrupt." + print ">>> "+line + sys.exit(1) + # we don't want to automatically remove the ebuild file listed + # in the CONTENTS file. We'll do after everything else has + # completed successfully. + myebuildfile=os.path.normpath(myroot+"var/db/pkg/"+pkgname+"/"+pkgname+".ebuild") + if pkgfiles.has_key(myebuildfile): + del pkgfiles[myebuildfile] + + mykeys=pkgfiles.keys() + mykeys.sort() + mykeys.reverse() + + #prerm script + pkgscript("prerm") + + for obj in mykeys: + obj=norm(obj) + if not os.path.exists(obj): + print "--- !found", pkgfiles[obj][0], obj + continue + if (pkgfiles[obj][0]!="dir") and (getmtime(obj) != pkgfiles[obj][1]): + print "--- !mtime", pkgfiles[obj][0], obj + continue + if pkgfiles[obj][0]=="dir": + if not os.path.isdir(obj): + print "--- !dir ","dir", obj + continue + if os.listdir(obj): + print "--- !empty","dir", obj + continue + os.rmdir(obj) + print "<<< ","dir",obj + elif pkgfiles[obj][0]=="sym": + if not os.path.islink(obj): + print "--- !sym ","sym", obj + continue + mydest=os.readlink(obj) + if mydest != pkgfiles[obj][2]: + print "--- !destn","sym", obj + continue + os.unlink(obj) + print "<<< ","sym",obj + elif pkgfiles[obj][0]=="obj": + if not os.path.isfile(obj): + print "--- !obj ","obj", obj + continue + mymd5=md5(obj) + if mymd5 != pkgfiles[obj][2]: + print "--- !md5 ","obj", obj + continue + os.unlink(obj) + print "<<< ","obj",obj + #postrm script + pkgscript("postrm") + #recursive cleanup + for thing in os.listdir(myroot+"var/db/pkg/"+pkgname): + os.unlink(myroot+"var/db/pkg/"+pkgname+"/"+thing) + os.rmdir(myroot+"var/db/pkg/"+pkgname) + print + if myroot=="/": + print pkgname,"unmerged." + else: + print pkgname,"unmerged from",myroot+"." diff --git a/sys-apps/file/file-3.31-r1.ebuild b/sys-apps/file/file-3.31-r1.ebuild new file mode 100644 index 000000000000..b57ad3ce57c9 --- /dev/null +++ b/sys-apps/file/file-3.31-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-3.31-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=file-3.31 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Program to identify a file's format by scanning binary data for patters" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.astron.com/pub/file/file-3.31.tar.gz" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + make +} + +src_install() { + into /usr + dobin file + doman file.1 magic.4 + dodir /usr/share + insinto /usr/share + doins magic magic.mime + dodoc LEGAL.NOTICE MAINT README +} + + + diff --git a/sys-apps/file/files/digest b/sys-apps/file/files/digest new file mode 100644 index 000000000000..e9308919b088 --- /dev/null +++ b/sys-apps/file/files/digest @@ -0,0 +1 @@ +MD5 c67d8d4f34de3aa85cf7007f648b0e50 file-3.31.tar.gz diff --git a/sys-apps/fileutils/files/digest b/sys-apps/fileutils/files/digest new file mode 100644 index 000000000000..dd5ad8f5878f --- /dev/null +++ b/sys-apps/fileutils/files/digest @@ -0,0 +1 @@ +MD5 82ac443292c18adce1618e2b50957951 fileutils-4.0x.tar.gz diff --git a/sys-apps/fileutils/fileutils-4.0x-r1.ebuild b/sys-apps/fileutils/fileutils-4.0x-r1.ebuild new file mode 100644 index 000000000000..b723d4ad72b8 --- /dev/null +++ b/sys-apps/fileutils/fileutils-4.0x-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/fileutils/fileutils-4.0x-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=fileutils-4.0x +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)" +CATEGORY="sys-apps" +SRC_URI="ftp://alpha.gnu.org/gnu/fetish/fileutils-4.0x.tar.gz" +HOMEPAGE="http://www.gnu.org/software/fileutils/fileutils.html" + +src_compile() { + ./configure --prefix=/usr + make +} + +src_install() { + dodoc COPYING NEWS README THANKS TODO ChangeLog ChangeLog-1997 AUTHORS + into / + cd ${S}/src + cp ginstall install + dobin chgrp chmod chown cp dd df dir dircolors du install install ln ls mkdir mkfifo mknod mv rm rmdir shred sync touch vdir + cd ${S} + into /usr + doman man/*.1 + doinfo doc/fileutils.info + dodir /usr/share/locale + MOPREFIX=fileutils + domo po/*.po + +} + diff --git a/sys-apps/findutils/files/digest b/sys-apps/findutils/files/digest new file mode 100644 index 000000000000..d959da1b7872 --- /dev/null +++ b/sys-apps/findutils/files/digest @@ -0,0 +1 @@ +MD5 3ea8fe58ef5386da75f6c707713aa059 findutils-4.1.tar.gz diff --git a/sys-apps/findutils/findutils-4.1-r1.ebuild b/sys-apps/findutils/findutils-4.1-r1.ebuild new file mode 100644 index 000000000000..4aa19ebe147e --- /dev/null +++ b/sys-apps/findutils/findutils-4.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.1-r1.ebuild,v 1.1 2000/08/02 17:07:12 achim Exp $ + +P=findutils-4.1 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="GNU utilities to find files" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/findutils/findutils-4.1.tar.gz" +HOMEPAGE="http://www.gnu.org/software/findutils/findutils.html" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + make +} + +src_unpack() { + unpack ${A} + einfo "Applying Patch..." + #using sed to apply minor patches to files + cd ${S}/find + mv fstype.c fstype.c.orig + sed -e "33d" -e "34d" fstype.c.orig > fstype.c + mv parser.c parser.c.orig + sed -e "55d" parser.c.orig > parser.c + mv pred.c pred.c.orig + sed -e '29i\' -e '#define FNM_CASEFOLD (1<<4)' pred.c.orig > pred.c + cd ${S}/lib + mv nextelem.c nextelem.c.orig + sed -e "35d" nextelem.c.orig > nextelem.c + cd ${S}/xargs + mv xargs.c xargs.c.orig + sed -e "63d" -e "64d" xargs.c.orig > xargs.c +} + +src_install() { + cd ${S} + cd locate + cp updatedb updatedb.orig + sed -e 's:LOCATE_DB=/usr/var/locatedb:LOCATE_DB=/var/lib/locate/locatedb:' -e 's:TMPDIR=/usr/tmp:TMPDIR=/tmp:' updatedb.orig > updatedb + cd .. + + into /usr + doinfo doc/find.info doc/find.info-1 doc/find.info-2 + dobin find/find locate/locate locate/updatedb xargs/xargs + doman find/*.1 locate/*.1 locate/*.5 xargs/*.1 + exeinto /usr/libexec + doexe locate/bigram locate/code locate/frcode + dodoc COPYING NEWS README TODO ChangeLog +} + diff --git a/sys-apps/gawk/files/digest b/sys-apps/gawk/files/digest new file mode 100644 index 000000000000..845d873bbf8f --- /dev/null +++ b/sys-apps/gawk/files/digest @@ -0,0 +1 @@ +MD5 58f904f256b3026c3fe27cf80e6291af gawk-3.0.4.tar.gz diff --git a/sys-apps/gawk/gawk-3.0.4-r1.ebuild b/sys-apps/gawk/gawk-3.0.4-r1.ebuild new file mode 100644 index 000000000000..e55144c09380 --- /dev/null +++ b/sys-apps/gawk/gawk-3.0.4-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gawk/gawk-3.0.4-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=gawk-3.0.4 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="GNU awk pattern-matching language" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/gawk/gawk-3.0.4.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + make +} + +src_install() { + into /usr + doinfo doc/gawk.info + doman doc/gawk.1 doc/igawk.1 + dobin gawk awklib/igawk + dosym gawk /usr/bin/awk + dosym gawk /usr/bin/gawk-3.0.4 + insinto /usr/share/awk + doins awklib/eg/lib/*.awk awklib/*.awk + exeinto /usr/libexec/awk + doexe awklib/*cat + dodoc ChangeLog ACKNOWLEDGMENT COPYING FUTURES LIMITATIONS NEWS PROBLEMS README +} + + diff --git a/sys-apps/grep/files/digest b/sys-apps/grep/files/digest new file mode 100644 index 000000000000..10f2f727a071 --- /dev/null +++ b/sys-apps/grep/files/digest @@ -0,0 +1 @@ +MD5 8ec9a2e875cd3aaa89896a8f39249f58 grep-2.4.2.tar.gz diff --git a/sys-apps/grep/grep-2.4.2-r1.ebuild b/sys-apps/grep/grep-2.4.2-r1.ebuild new file mode 100644 index 000000000000..0987e1455aa2 --- /dev/null +++ b/sys-apps/grep/grep-2.4.2-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/grep-2.4.2-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=grep-2.4.2 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="GNU regular expression matcher" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/grep/${A}" +HOMEPAGE="http://www.gnu.org/software/grep/grep.html" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + make +} + +src_install() { + into /usr + dobin src/grep src/egrep src/fgrep + doinfo doc/grep.info + doman doc/*.1 + MOPREFIX=grep + domo po/*.po + dodoc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO +} + + + diff --git a/sys-apps/groff/files/digest b/sys-apps/groff/files/digest new file mode 100644 index 000000000000..f653c8cad588 --- /dev/null +++ b/sys-apps/groff/files/digest @@ -0,0 +1 @@ +MD5 0c87c54b39a71da4ad92a67f13b740a2 groff-1.15.tar.gz diff --git a/sys-apps/groff/groff-1.15-r1.ebuild b/sys-apps/groff/groff-1.15-r1.ebuild new file mode 100644 index 000000000000..2e45b74928b8 --- /dev/null +++ b/sys-apps/groff/groff-1.15-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/groff/groff-1.15-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=groff-1.15 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Text formatter used for man pages" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/groff/${A}" +HOMEPAGE="http://www.gnu.org/software/groff/groff.html" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + cd ${S}/tmac + mv Makefile.sub Makefile.sub.orig + sed -e "s/all: stamp-strip stamp-wrap/all: stamp-strip/" Makefile.sub.orig > Makefile.sub + #fixed some things with the build process using good 'ol sed + cd ${S} + make +} + +src_install() { + into /usr + dodoc NEWS PROBLEMS PROJECTS README TODO VERSION BUG-REPORT COPYING ChangeLog + for x in addftinfo afmtodit eqn grodvi groff grog grolj4 grops grotty hpftodit indxbib lkbib nroff pfbtops pic psbb refer soelim tbl tfmtodit troff + do + cd ${S}/$x + dobin $x + cp $x.man $x.1 + doman $x.1 + done + cd ${S} + dobin eqn/neqn + dosym tbl /usr/bin/gtbl + dosym eqn /usr/bin/geqn + cd ${S}/man + cp groff_char.man groff_char.7 + cp groff_font.man groff_font.5 + cp groff_out.man groff_out.5 + doman *.[1-9] + cd ${S}/tmac + cp groff_ms.man groff_ms.7 + doman *.[1-9] + cd ${S}/mm + cp groff_mm.man groff_mm.7 + cp groff_mmse.man groff_mmse.7 + doman *.[1-9] + cd ${S} + insinto /usr/share/groff + doins indxbib/eign + cd ${S}/devX100 + insinto /usr/share/groff/font/devX100 + doins CB CBI CI CR DESC HB HBI HI HR NB NBI NI NR S TB TBI TI TR + cd ${S}/devX75 + insinto /usr/share/groff/font/devX75 + doins CB CBI CI CR DESC HB HBI HI HR NB NBI NI NR S TB TBI TI TR + cd ${S}/devX75-12 + insinto /usr/share/groff/font/devX75-12 + doins CB CBI CI CR DESC HB HBI HI HR NB NBI NI NR S TB TBI TI TR + cd ${S}/devascii + insinto /usr/share/groff/font/devascii + doins B BI DESC I R + cd ${S}/devdvi + insinto /usr/share/groff/font/devdvi + doins B BI CW DESC EX H HB HI I MI R S SA SB + insinto /usr/share/groff/font/devdvi/generate + doins generate/* + cd ${S}/devlatin1 + insinto /usr/share/groff/font/devlatin1 + doins B BI DESC I R + cd ${S}/devlj4 + insinto /usr/share/groff/font/devlj4 + doins ALBB ALBR AOB AOI AOR CB CBI CI CLARENDON CORONET CR DESC GB GBI GI GR LGB LGI LGR MARIGOLD OB OBI OI OR S TB TBI TI TR UB UBI UCB UCBI UCI UCR UI UR + insinto /usr/share/groff/font/devlj4/generate + doins generate/Makefile generate/special.map generate/text.map + cd ${S}/devps + insinto /usr/share/groff/font/devps + doins AB ABI AI AR BMB BMBI BMI BMR CB CBI CI CR DESC HB HBI HI HNB HNBI HNI HNR HR NB NBI NI NR PB PBI PI PR S SS TB TBI TI TR ZCMI ZD ZDR download prologue symbolsl.pfa text.enc zapfdr.pfa + insinto /usr/share/groff/font/devps/generate + doins generate/* + cd ${S}/tmac + insinto /usr/share/groff/tmac + doins eqnrc man.local tmac.* troffrc + doins ${S}/troff/hyphen.us + cd ${S}/mm/mm + insinto /usr/share/groff/tmac/mm + doins * + insinto /usr/share/groff/tmac/mdoc + cd ${S}/tmac + doins doc-* +} + + diff --git a/sys-apps/gzip/files/digest b/sys-apps/gzip/files/digest new file mode 100644 index 000000000000..60ae475bc42e --- /dev/null +++ b/sys-apps/gzip/files/digest @@ -0,0 +1 @@ +MD5 39053e044b18ecd0627f80fbe7cfeaad gzip-1.2.4a.tar.gz diff --git a/sys-apps/gzip/gzip-1.2.4a-r1.ebuild b/sys-apps/gzip/gzip-1.2.4a-r1.ebuild new file mode 100644 index 000000000000..e742e77dc685 --- /dev/null +++ b/sys-apps/gzip/gzip-1.2.4a-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gzip/gzip-1.2.4a-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=gzip-1.2.4a +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU compressor" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/gzip/${A}" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make +} + +src_install() { + into /usr + doman *.1 + dosym gzip.1.gz /usr/man/man1/gunzip.1.gz + dosym gzip.1.gz /usr/man/man1/zcat.1.gz + dosym zdiff.1.gz /usr/man/man1/zcmp.1.gz + doinfo gzip.info + dobin gzip + insopts -m0755 + insinto /usr/bin + for x in zdiff zgrep zmore znew zforce gzexe + do + sed -e "1d" -e "s|BINDIR|/usr/bin|" ${x}.in > ${x} + doins ${x} + done + dosym gzip /usr/bin/zcat + dosym gzip /usr/bin/gunzip + dosym gzip /usr/bin/zcat + dosym zdiff /usr/bin/zcmp + dodoc ChangeLog COPYING NEWS README THANKS TODO algorithm.doc +} + + diff --git a/sys-apps/hdparm/files/digest b/sys-apps/hdparm/files/digest new file mode 100644 index 000000000000..5234b2f133f6 --- /dev/null +++ b/sys-apps/hdparm/files/digest @@ -0,0 +1 @@ +MD5 e0acf444f8d2fff2cb83cf080e1115e1 hdparm-3.9.tar.gz diff --git a/sys-apps/hdparm/hdparm-3.9-r1.ebuild b/sys-apps/hdparm/hdparm-3.9-r1.ebuild new file mode 100644 index 000000000000..98dff6aa8ea0 --- /dev/null +++ b/sys-apps/hdparm/hdparm-3.9-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-3.9-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=hdparm-3.9 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Utility to change hard drive performance parameters" +CATEGORY="sys-apps" +SRC_URI="http://metalab.unc.edu/pub/Linux/system/hardware/${A}" + +src_compile() { + make all +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into /usr + dosbin hdparm + doman hdparm.8 + dodoc hdparm-*.lsm Changelog +} + + diff --git a/sys-apps/ipchains/files/digest b/sys-apps/ipchains/files/digest new file mode 100644 index 000000000000..7ea1e9d925ad --- /dev/null +++ b/sys-apps/ipchains/files/digest @@ -0,0 +1 @@ +MD5 ad5786be3a7bb612e566f6b9c3a20f4f ipchains-1.3.9.tar.bz2 diff --git a/sys-apps/ipchains/ipchains-1.3.9-r1.ebuild b/sys-apps/ipchains/ipchains-1.3.9-r1.ebuild new file mode 100644 index 000000000000..5394cae344ea --- /dev/null +++ b/sys-apps/ipchains/ipchains-1.3.9-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ipchains/ipchains-1.3.9-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=ipchains-1.3.9 +A=${P}.tar.bz2 +S=${WORKDIR}/${P} +DESCRIPTION="2.2 kernel equivalent of ipfwadm" +CATEGORY="sys-apps" +SRC_URI="http://netfilter.kernelnotes.org/ipchains/${A}" +HOMEPAGE="http://netfilter.filewatcher.org/ipchains/" + + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/= -g -O/= ${CFLAGS}/" Makefile.orig > Makefile + cd ${S}/libipfwc + mv Makefile Makefile.orig + sed -e "s/= -g -O/= ${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into / + dosbin ipchains + doman ipfw.4 ipchains.8 + dodoc COPYING README ipchains-quickref.ps +} + + diff --git a/sys-apps/isapnptools/files/digest b/sys-apps/isapnptools/files/digest new file mode 100644 index 000000000000..b9c1715e9bc3 --- /dev/null +++ b/sys-apps/isapnptools/files/digest @@ -0,0 +1 @@ +MD5 4828b30fae13b5c086c283d63fb4727d isapnptools-1.22.tgz diff --git a/sys-apps/isapnptools/isapnptools-1.22-r1.ebuild b/sys-apps/isapnptools/isapnptools-1.22-r1.ebuild new file mode 100644 index 000000000000..c04f17bc112d --- /dev/null +++ b/sys-apps/isapnptools/isapnptools-1.22-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/isapnptools/isapnptools-1.22-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=isapnptools-1.22 +A=${P}.tgz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Tools for configuring ISA PnP devices" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/hardware/isapnptools-1.22.tgz" +HOMEPAGE="http://www.roestock.demon.co.uk/isapnptools/" + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed -e "s:-O2:${CFLAGS}:" Makefile.orig > Makefile + cp pnpdump_main.c pnpdump_main.c.orig + sed -e "s/^FILE\* o_file.*//" \ + -e "s/o_file/stdout/g" \ + -e "s/stdout_name/o_file_name/g" pnpdump_main.c.orig > pnpdump_main.c +} + +src_install() { + cd ${S} + dodir /usr/man/man5 + dodir /usr/man/man8 + make installprefix=${D}/ install + make installprefix=${D}/ install.man + prepman + dodoc CHANGES COPYING FILES README* *.txt isapnp.conf +} + diff --git a/sys-apps/less/files/digest b/sys-apps/less/files/digest new file mode 100644 index 000000000000..01ad0a7d8e5e --- /dev/null +++ b/sys-apps/less/files/digest @@ -0,0 +1 @@ +MD5 692a94060a50dd35a4d65176cb899444 less-358.tar.gz diff --git a/sys-apps/less/less-358-r1.ebuild b/sys-apps/less/less-358-r1.ebuild new file mode 100644 index 000000000000..858927a04d29 --- /dev/null +++ b/sys-apps/less/less-358-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/less-358-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=less-358 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Excellent text file viewer" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.gnu.org/pub/gnu/less/"${A} +HOMEPAGE="http://www.gnu.org/software/less/less.html" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make +} + +src_install() { + cd ${S} + into /usr + dobin less lessecho lesskey + cp lesskey.nro lesskey.1 + cp less.nro less.1 + doman *.1 + rm *.1 + dodoc COPYING NEWS README +} + + + diff --git a/sys-apps/lilo/files/digest b/sys-apps/lilo/files/digest new file mode 100644 index 000000000000..7d833d071669 --- /dev/null +++ b/sys-apps/lilo/files/digest @@ -0,0 +1 @@ +MD5 968a25b797a4d30734936c230eb62296 lilo-21.5.tar.gz diff --git a/sys-apps/lilo/lilo-21.5-r1.ebuild b/sys-apps/lilo/lilo-21.5-r1.ebuild new file mode 100644 index 000000000000..8996b8bb3fa4 --- /dev/null +++ b/sys-apps/lilo/lilo-21.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lilo/lilo-21.5-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=lilo-21.5 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard Linux boot loader" +CATEGORY="sys-apps" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/"${A} + +src_compile() { + make +} + +src_install() { + into / + dosbin lilo + into /usr + dosbin keytab-lilo.pl + dodir /boot + insinto /boot + doins boot-text.b boot-menu.b chain.b os2_d.b + dodoc CHANGES COPYING INCOMPAT QuickInst README* +} + +pkg_preinst() { + + . ${ROOT}/etc/rc.d/config/functions + + if [ ! -L $ROOT/boot/boot.b -a -f $ROOT/boot/boot.b ] + then + einfo "Saving old boot.b..." + mv $ROOT/boot/boot.b $ROOT/boot/boot.old; + fi + + if [ ! -L $ROOT/boot/chain.b -a -f $ROOT/boot/chain.b ] + then + einfo "Saving old chain.b..." + mv $ROOT/boot/chain.b $ROOT/boot/chain.old; + fi + + if [ ! -L $ROOT/boot/os2_d.b -a -f $ROOT/boot/os2_d.b ] + then + einfo "Saving old os2_d.b..." + mv $ROOT/boot/os2_d.b $ROOT/boot/os2_d.old; + fi +} + +pkg_postinst() { + + . ${ROOT}/etc/rc.d/config/functions + + einfo "Activating boot-menu..." + ln -s boot-menu.b $ROOT/boot/boot.b; + +} + + diff --git a/sys-apps/liste b/sys-apps/liste index 959f424cdc96..4f572b3456a0 100644 --- a/sys-apps/liste +++ b/sys-apps/liste @@ -1,104 +1,51 @@ -? 00baselayout/files -? 00baselayout/00baselayout-1.1-r1.ebuild -? 00initscripts/files -? 00initscripts/00initscripts-1.0-r1.ebuild -? at/files -? at/at-3.1.8-r1.ebuild -? bash/files -? bash/bash-2.03-r1.ebuild -? bzip2/files -? bzip2/bzip2-1.0.0-r1.ebuild -? console-data/files -? console-data/console-data-1999.08.29-r1.ebuild -? console-tools/files -? console-tools/console-tools-0.2.3-r1.ebuild -? cpio/files -? cpio/cpio-2.4.2-r1.ebuild -? debianutils/files -? debianutils/debianutils-1.13.3-r1.ebuild -? diffutils/files -? diffutils/diffutils-2.7-r1.ebuild -? e2fsprogs/files -? e2fsprogs/e2fsprogs-1.18-r1.ebuild -? ebuild/files -? ebuild/ebuild-1.2-r1.ebuild -? file/files -? file/file-3.31-r1.ebuild -? fileutils/files -? fileutils/fileutils-4.0x-r1.ebuild -? findutils/files -? findutils/findutils-4.1-r1.ebuild -? gawk/files -? gawk/gawk-3.0.4-r1.ebuild -? grep/files -? grep/grep-2.4.2-r1.ebuild -? groff/files -? groff/groff-1.15-r1.ebuild -? gzip/files -? gzip/gzip-1.2.4a-r1.ebuild -? hdparm/files -? hdparm/hdparm-3.9-r1.ebuild -? ipchains/files -? ipchains/ipchains-1.3.9-r1.ebuild -? isapnptools/files -? isapnptools/isapnptools-1.22-r1.ebuild -? less/files -? less/less-358-r1.ebuild -? lilo/files -? lilo/lilo-21.5-r1.ebuild -? logrotate/files -? logrotate/logrotate-3.3-r1.ebuild -? man/files -? man/man-1.5h1-r1.ebuild -? mkisofs/files -? mkisofs/mkisofs-1.13-r1.ebuild -? modutils/files -? modutils/modutils-2.3.12-r1.ebuild -? most/files -? most/most-4.9.0-r1.ebuild -? net-tools/files -? net-tools/net-tools-1.57-r1.ebuild -? netkit-base/files -? netkit-base/netkit-base-0.16-r1.ebuild -? procps/files -? procps/procps-2.0.7-r1.ebuild -? psmisc/files -? psmisc/psmisc-19-r1.ebuild -? raidtools/files -? raidtools/raidtools-0.90-r1.ebuild -? sed/files -? sed/sed-3.02-r1.ebuild -? setserial/files -? setserial/setserial-2.17-r1.ebuild -? sh-utils/files -? sh-utils/sh-utils-2.0j-r1.ebuild -? shadow/files -? shadow/shadow-19990827-r1.ebuild -? sharutils/files -? sharutils/sharutils-4.2.1-r1.ebuild -? sysklogd/sysklogd-1.3.31-r1.ebuild -? sysklogd/files/digest -? sysvinit/sysvinit-2.78-r1.ebuild -? sysvinit/files/digest -? tar/tar-1.13.17-r1.ebuild -? tar/files/digest -? tcp-wrappers/tcp-wrappers-7.6-r1.ebuild -? tcp-wrappers/files/digest -? tcp-wrappers/files/tcp_wrappers_7.6.patch -? textutils/textutils-2.0f-r1.ebuild -? textutils/files/digest -? updated/updated-2.11-r1.ebuild -? updated/files/digest -? util-linux/util-linux-2.10m-r1.ebuild -? util-linux/files/digest -? vcron/vcron-3.0p1-r1.ebuild -? vcron/files/digest -? vim-nogui/vim-nogui-5.7-r1.ebuild -? vim-nogui/files/digest -? which/which-2.11-r1.ebuild -? which/files/digest -? xinetd/xinetd-2.1.8.8p3-r1.ebuild -? xinetd/files/xinetd.conf -? xinetd/files/digest -? xinetd/files/xinetd -M liste +? 00baselayout/files/digest +? 00initscripts/files/digest +? at/files/atd +? at/files/digest +? at/files/at.deny +? bash/files/digest +? bzip2/files/digest +? console-data/files/digest +? console-tools/files/digest +? cpio/files/digest +? debianutils/files/digest +? diffutils/files/digest +? e2fsprogs/files/digest +? ebuild/files/queryhost.sh +? ebuild/files/unmerge.py +? ebuild/files/ebuild +? ebuild/files/pkgdepend.py +? ebuild/files/make.conf +? ebuild/files/merge.py +? file/files/digest +? fileutils/files/digest +? findutils/files/digest +? gawk/files/digest +? grep/files/digest +? groff/files/digest +? gzip/files/digest +? hdparm/files/digest +? ipchains/files/digest +? isapnptools/files/digest +? less/files/digest +? lilo/files/digest +? logrotate/files/digest +? man/files/digest +? mkisofs/files/digest +? modutils/files/digest +? most/files/digest +? net-tools/files/digest +? net-tools/files/config.h +? net-tools/files/config.make +? netkit-base/files/digest +? procps/files/digest +? psmisc/files/digest +? raidtools/files/digest +? sed/files/digest +? setserial/files/digest +? sh-utils/files/digest +? shadow/files/login.defs +? shadow/files/digest +? shadow/files/useradd +? shadow/files/shadow-19990827-redhat.patch +? sharutils/files/digest diff --git a/sys-apps/logrotate/files/digest b/sys-apps/logrotate/files/digest new file mode 100644 index 000000000000..5e5e175b53d5 --- /dev/null +++ b/sys-apps/logrotate/files/digest @@ -0,0 +1 @@ +MD5 c82d40b1ca05d6f1fc98bcfbeda4c2d8 logrotate-3.3.tar.gz diff --git a/sys-apps/logrotate/logrotate-3.3-r1.ebuild b/sys-apps/logrotate/logrotate-3.3-r1.ebuild new file mode 100644 index 000000000000..a66255768540 --- /dev/null +++ b/sys-apps/logrotate/logrotate-3.3-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/logrotate/logrotate-3.3-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=logrotate-3.3 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Rotates, compresses, and mails system logs" +SRC_URI="ftp://ftp.redhat.com/redhat/code/logrotate/"${A} + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + cp Makefile Makefile.orig + sed -e "s:CFLAGS += -g:CFLAGS += -g ${CFLAGS}:" Makefile.orig > Makefile + make +} + +src_install() { + cd ${S} + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc examples/logrotate* +} + + + + diff --git a/sys-apps/man/files/digest b/sys-apps/man/files/digest new file mode 100644 index 000000000000..dee8b0af1b3c --- /dev/null +++ b/sys-apps/man/files/digest @@ -0,0 +1 @@ +MD5 a5399facb73a2fd17680e7db9809c282 man-1.5h1.tar.gz diff --git a/sys-apps/man/man-1.5h1-r1.ebuild b/sys-apps/man/man-1.5h1-r1.ebuild new file mode 100644 index 000000000000..1f4bae10a65c --- /dev/null +++ b/sys-apps/man/man-1.5h1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.5h1-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=man-1.5h1 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard commands to read man pages" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.win.tue.nl/pub/linux-local/utils/man/${P}" + +src_compile() { + ./configure +sgid +fsstnd +lang all + for FOOF in src man2html + do + make ${FOOF}/Makefile + cd ${S}/${FOOF} + cp Makefile Makefile.orig + sed -e "s/gcc -O/gcc ${CFLAGS}/" Makefile.orig > Makefile + cd ${S} + done + make +} + +src_unpacks() { + unpack ${A} + cd ${S} + cp configure configure.orig + sed -e 's!/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH!/bin /usr/bin /usr/ucb /usr/local/bin $PATH!' configure.orig > configure +} + +src_install() { + cd ${S}/src + into /usr + dodir /usr/bin + exeopts -s -m 2555 -o root -g man + exeinto /usr/bin + doexe man + chmod +x apropos whatis makewhatis + dobin apropos whatis + dosbin makewhatis + dodir /usr/lib + insinto /usr/lib + doins man.conf + cd ${S}/man2html + dobin man2html + doman man2html.1 + dodir /usr/man + cd ${S}/man + cp Makefile Makefile.orig + echo "BINROOTDIR=${D}" > Makefile + cat Makefile.orig >> Makefile + make installsubdirs + cd ${S} + dodoc COPYING LSM README* TODO + for i in cs da de es fi fr hr it nl pl pt sl + do + gzip ${D}/usr/man/$i/man1/*.1 + gzip ${D}/usr/man/$i/man5/*.5 + gzip ${D}/usr/man/$i/man8/*.8 + done + prepman + +} + + diff --git a/sys-apps/mkisofs/files/digest b/sys-apps/mkisofs/files/digest new file mode 100644 index 000000000000..d465c119ab31 --- /dev/null +++ b/sys-apps/mkisofs/files/digest @@ -0,0 +1 @@ +MD5 8d802d9f5892c214562c6af71e6a5714 mkisofs-1.13.tar.gz diff --git a/sys-apps/mkisofs/mkisofs-1.13-r1.ebuild b/sys-apps/mkisofs/mkisofs-1.13-r1.ebuild new file mode 100644 index 000000000000..907970c07457 --- /dev/null +++ b/sys-apps/mkisofs/mkisofs-1.13-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mkisofs/mkisofs-1.13-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=mkisofs-1.13 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Prints out location of specified executables that are in your path" +SRC_URI="ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/mkisofs/$A" +HOMEPAGE="http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/mkisofs.html" + +src_compile() { + make +} + +src_install() { + into /usr + dobin mkisofs/OBJ/i686-linux-cc/mkisofs + dobin mkisofs/diag/OBJ/i686-linux-cc/devdump + dobin mkisofs/diag/OBJ/i686-linux-cc/isodump + dobin mkisofs/diag/OBJ/i686-linux-cc/isoinfo + dobin mkisofs/diag/OBJ/i686-linux-cc/isovfy + doman mkisofs/mkisofs.8 mkisofs/mkhybrid.8 mkisofs/apple_driver.8 + doman mkisofs/diag/isoinfo.8 + dodoc ABOUT BUILD COMPILE COPYING MKNOD* PORTING README* + docinto mkisofs + dodoc mkisofs/ChangeLog + dodoc mkisofs/README* mkisofs/TODO +} + + diff --git a/sys-apps/modutils/files/digest b/sys-apps/modutils/files/digest new file mode 100644 index 000000000000..386a67cfb596 --- /dev/null +++ b/sys-apps/modutils/files/digest @@ -0,0 +1 @@ +MD5 6b47ca8b904f5966fd2687d8d34afe85 modutils-2.3.12.tar.gz diff --git a/sys-apps/modutils/modutils-2.3.12-r1.ebuild b/sys-apps/modutils/modutils-2.3.12-r1.ebuild new file mode 100644 index 000000000000..c33dadc90b1d --- /dev/null +++ b/sys-apps/modutils/modutils-2.3.12-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/modutils/modutils-2.3.12-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=modutils-2.3.12 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard kernel module utilities" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.ocs.com.au/pub/modutils/v2.3/${A}" + +src_compile() { + ./configure --prefix=/ --host=${CHOST} + make $MAKEOPTS "MAKE = make $MAKEOPTS" +} + +src_install() { + cd ${S} + dodir /sbin + dodir /usr/man/man1 + dodir /usr/man/man8 + dodir /usr/man/man5 + dodir /usr/man/man2 + make prefix=${D} mandir=${D}/usr/man install + prepman + strip ${D}/sbin/* + dodoc COPYING CREDITS ChangeLog NEWS README TODO +} + + diff --git a/sys-apps/most/files/digest b/sys-apps/most/files/digest new file mode 100644 index 000000000000..6572157e20c5 --- /dev/null +++ b/sys-apps/most/files/digest @@ -0,0 +1 @@ +MD5 e2b80cda82f022100282e06918606c85 most-4.9.0.tar.gz diff --git a/sys-apps/most/most-4.9.0-r1.ebuild b/sys-apps/most/most-4.9.0-r1.ebuild new file mode 100644 index 000000000000..446e9770d32b --- /dev/null +++ b/sys-apps/most/most-4.9.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/most/most-4.9.0-r1.ebuild,v 1.1 2000/08/02 17:07:13 achim Exp $ + +P=most-4.9.0 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="An extremely excellent text file reader" +CATEGORY="sys-apps" +SRC_URI="ftp://space.mit.edu/pub/davis/most/${A}" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make -j ${PM} +} + +src_install() { + into /usr + dobin src/objs/most + doman most.1 + dodoc COPYING COPYRIGHT README changes.txt most-fun.txt + dodoc default.rc lesskeys.rc +} + + diff --git a/sys-apps/net-tools/files/config.h b/sys-apps/net-tools/files/config.h new file mode 100644 index 000000000000..6e4e7651f581 --- /dev/null +++ b/sys-apps/net-tools/files/config.h @@ -0,0 +1,31 @@ +#define I18N 1 +#define HAVE_AFUNIX 1 +#define HAVE_AFINET 1 +#define HAVE_AFINET6 1 +#define HAVE_AFIPX 1 +#define HAVE_AFATALK 1 +#define HAVE_AFAX25 1 +#define HAVE_AFNETROM 1 +#define HAVE_AFROSE 1 +#define HAVE_AFECONET 1 +#define HAVE_AFDECnet 0 +#define HAVE_AFASH 1 +#define HAVE_HWETHER 1 +#define HAVE_HWARC 1 +#define HAVE_HWSLIP 1 +#define HAVE_HWPPP 1 +#define HAVE_HWTUNNEL 1 +#define HAVE_HWTR 1 +#define HAVE_HWAX25 1 +#define HAVE_HWROSE 1 +#define HAVE_HWNETROM 1 +#define HAVE_HWFR 1 +#define HAVE_HWSIT 1 +#define HAVE_HWFDDI 1 +#define HAVE_HWHIPPI 1 +#define HAVE_HWASH 1 +#define HAVE_HWHDLCLAPB 1 +#define HAVE_HWIRDA 1 +#define HAVE_HWEC 1 +#define HAVE_FW_MASQUERADE 1 +#define HAVE_IP_TOOLS 1 diff --git a/sys-apps/net-tools/files/config.make b/sys-apps/net-tools/files/config.make new file mode 100644 index 000000000000..1584422d37d3 --- /dev/null +++ b/sys-apps/net-tools/files/config.make @@ -0,0 +1,31 @@ +I18N=1 +HAVE_AFUNIX=1 +HAVE_AFINET=1 +HAVE_AFINET6=1 +HAVE_AFIPX=1 +HAVE_AFATALK=1 +HAVE_AFAX25=1 +HAVE_AFNETROM=1 +HAVE_AFROSE=1 +HAVE_AFECONET=1 +# HAVE_AFDECnet=0 +HAVE_AFASH=1 +HAVE_HWETHER=1 +HAVE_HWARC=1 +HAVE_HWSLIP=1 +HAVE_HWPPP=1 +HAVE_HWTUNNEL=1 +HAVE_HWTR=1 +HAVE_HWAX25=1 +HAVE_HWROSE=1 +HAVE_HWNETROM=1 +HAVE_HWFR=1 +HAVE_HWSIT=1 +HAVE_HWFDDI=1 +HAVE_HWHIPPI=1 +HAVE_HWASH=1 +HAVE_HWHDLCLAPB=1 +HAVE_HWIRDA=1 +HAVE_HWEC=1 +HAVE_FW_MASQUERADE=1 +HAVE_IP_TOOLS=1
\ No newline at end of file diff --git a/sys-apps/net-tools/files/digest b/sys-apps/net-tools/files/digest new file mode 100644 index 000000000000..2d1ef7578391 --- /dev/null +++ b/sys-apps/net-tools/files/digest @@ -0,0 +1 @@ +MD5 5323c275b70e29ed13ea9db086f0c74c net-tools-1.57.tar.bz2 diff --git a/sys-apps/net-tools/net-tools-1.57-r1.ebuild b/sys-apps/net-tools/net-tools-1.57-r1.ebuild new file mode 100644 index 000000000000..305f016c3444 --- /dev/null +++ b/sys-apps/net-tools/net-tools-1.57-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.57-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=net-tools-1.57 +A=${P}.tar.bz2 +S=${WORKDIR}/${P} +DESCRIPTION="standard Linux network tools" +CATEGORY="sys-apps" +SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${A}" + +src_compile() { + make + cd po + make + +} + +src_unpack() { + unpack ${A} + cd ${S} + cp ${O}/files/config.h . + cp ${O}/files/config.make . + mv Makefile Makefile.orig + sed -e "s/-O2 -Wall -g/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into / + dosbin arp hostname ifconfig netstat plipconfig rarp route + dosbin slattach iptunnel ipmaddr + cd po + make BASEDIR=${D} install + cd .. + doman man/en_US/*.[18] + dodoc COPYING README README.ipv6 TODO +} + + + diff --git a/sys-apps/netkit-base/files/digest b/sys-apps/netkit-base/files/digest new file mode 100644 index 000000000000..242d4abc506b --- /dev/null +++ b/sys-apps/netkit-base/files/digest @@ -0,0 +1 @@ +MD5 90a2f072adc9731e86831fdefef6c5cf netkit-base-0.16.tar.gz diff --git a/sys-apps/netkit-base/netkit-base-0.16-r1.ebuild b/sys-apps/netkit-base/netkit-base-0.16-r1.ebuild new file mode 100644 index 000000000000..8f36474baec9 --- /dev/null +++ b/sys-apps/netkit-base/netkit-base-0.16-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/netkit-base-0.16-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=netkit-base-0.16 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard linux net thingees -- inetd, ping" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${A}" + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + ./configure + mv MCONFIG MCONFIG.orig + sed -e "s/-pipe -O2/${CFLAGS}/" MCONFIG.orig > MCONFIG +} + +src_install() { + into / + dobin ping/ping + into /usr + dosbin inetd/inetd + doman inetd/inetd.8 ping/ping.8 + dodoc BUGS ChangeLog README +} + + diff --git a/sys-apps/procps/files/digest b/sys-apps/procps/files/digest new file mode 100644 index 000000000000..47a95728f6a2 --- /dev/null +++ b/sys-apps/procps/files/digest @@ -0,0 +1 @@ +MD5 bd8d68a9fd0c3f37365f924e75009c8a procps-2.0.7.tar.gz diff --git a/sys-apps/procps/procps-2.0.7-r1.ebuild b/sys-apps/procps/procps-2.0.7-r1.ebuild new file mode 100644 index 000000000000..43c380c64eef --- /dev/null +++ b/sys-apps/procps/procps-2.0.7-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/procps/procps-2.0.7-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=procps-2.0.7 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Standard informational utilities and process-handling tools" +CATEGORY="sys-apps" +SRC_URI="ftp://people.redhat.com/johnsonm/procps/${A}" + +src_compile() { + make + cd ps + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/-O3/${CFLAGS}/" -e 's/all: config/all: /' Makefile.orig > Makefile + mv watch.c watch.c.orig + sed -e "s/<ncurses.h>/<NEW>/" -e "s/<signal.h>/<ncurses.h>/" -e "s/<NEW>/<signal.h>/" watch.c.orig >watch.c + cd ${S}/ps + mv Makefile Makefile.orig + sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile + cd ${S}/proc + mv Makefile Makefile.orig + sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into /usr + dodir /usr/bin + dodir /sbin + dodir /usr/X11R6/bin + dodir /usr/man/man1 + dodir /usr/man/man8 + dodir /usr/man/man5 + dodir /lib + dodir /bin + make DESTDIR=${D} install + prepman + cd ${S} + dodoc BUGS COPYING COPYING.LIB NEWS TODO + # dobin ps/ps +} + + + diff --git a/sys-apps/psmisc/files/digest b/sys-apps/psmisc/files/digest new file mode 100644 index 000000000000..f5049b5a2da9 --- /dev/null +++ b/sys-apps/psmisc/files/digest @@ -0,0 +1 @@ +MD5 1d56ac6c32b657fdf8f780084b095932 psmisc-19.tar.gz diff --git a/sys-apps/psmisc/psmisc-19-r1.ebuild b/sys-apps/psmisc/psmisc-19-r1.ebuild new file mode 100644 index 000000000000..f18c72516074 --- /dev/null +++ b/sys-apps/psmisc/psmisc-19-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/psmisc/psmisc-19-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +#from Debian ;) + +P=psmisc-19 +A=${P}.tar.gz +S=${WORKDIR}/psmisc +DESCRIPTION="Handy process-related utilities from Debian" +CATEGORY="sys-apps" +SRC_URI="ftp://lrcftp.epfl.ch/pub/linux/local/psmisc/"${A} + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed -e "s/-ltermcap/-lncurses/g" -e "s/-O/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into / + dobin fuser + into /usr + dobin killall pstree + dosym killall /usr/bin/pidof + doman *.1 + dodoc CHANGES COPYING README VERSION +} + + diff --git a/sys-apps/raidtools/files/digest b/sys-apps/raidtools/files/digest new file mode 100644 index 000000000000..9403b1ecfd52 --- /dev/null +++ b/sys-apps/raidtools/files/digest @@ -0,0 +1 @@ +MD5 c6fd4456671a1ed8d3ff71a48b6e1d9c raidtools-dangerous-0.90-20000116.tar.gz diff --git a/sys-apps/raidtools/raidtools-0.90-r1.ebuild b/sys-apps/raidtools/raidtools-0.90-r1.ebuild new file mode 100644 index 000000000000..eee003568786 --- /dev/null +++ b/sys-apps/raidtools/raidtools-0.90-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/raidtools/raidtools-0.90-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=raidtools-0.90-1 +A=raidtools-dangerous-0.90-20000116.tar.gz +S=${WORKDIR}/raidtools-0.90 +CATEGORY="sys-apps" +DESCRIPTION="Linux RAID 0/1/4/5 utilities" +SRC_URI="http://people.redhat.com/mingo/raid-patches/"${A} + +src_compile() { + ./configure + cp Makefile Makefile.orig + sed -e "s/-O2//" -e "s/-g//" Makefile.orig > Makefile + make +} + +src_install() { + into / + dosbin mkraid raidstart mkpv + for x in raidstop raidhotadd raidhotremove + do + dosym raidstart /sbin/${x} + done + dosym mkraid /sbin/raid0run + doman *.8 *.5 + dodoc COPYING README Software-RAID.HOWTO/Software-RAID.HOWTO.txt + docinto html + dodoc Software-RAID.HOWTO/*.html + docinto config + dodoc *.sample +} +pkg_postinst() { + einfo "Creating Raid-devices..." + + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + if [ ! -e ${ROOT}/dev/md$$i ] + then + mknod -m 0600 ${ROOT}/dev/md$$i b 9 $$i + fi + done +} diff --git a/sys-apps/sed/files/digest b/sys-apps/sed/files/digest new file mode 100644 index 000000000000..17541881d32e --- /dev/null +++ b/sys-apps/sed/files/digest @@ -0,0 +1 @@ +MD5 74db866f052b47fa8ec1c2b8f967bc69 sed-3.02.tar.gz diff --git a/sys-apps/sed/sed-3.02-r1.ebuild b/sys-apps/sed/sed-3.02-r1.ebuild new file mode 100644 index 000000000000..49ac90ecfcea --- /dev/null +++ b/sys-apps/sed/sed-3.02-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-3.02-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P="sed-3.02" +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Super-useful stream editor" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/sed/${A}" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} + make +} + +src_install() { + into /usr + doinfo doc/sed.info + doman doc/sed.1 + dobin sed/sed + dodoc COPYING NEWS README* THANKS TODO AUTHORS BUGS ANNOUNCE +} + diff --git a/sys-apps/setserial/files/digest b/sys-apps/setserial/files/digest new file mode 100644 index 000000000000..302a3bdbd781 --- /dev/null +++ b/sys-apps/setserial/files/digest @@ -0,0 +1 @@ +MD5 c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz diff --git a/sys-apps/setserial/setserial-2.17-r1.ebuild b/sys-apps/setserial/setserial-2.17-r1.ebuild new file mode 100644 index 000000000000..33aa2cb422c2 --- /dev/null +++ b/sys-apps/setserial/setserial-2.17-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=setserial-2.17 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Configure your serial ports with it" +CATEGORY="sys-apps" +SRC_URI="ftp://tsx-11.mit.edu/pub/linux/sources/sbin/${A}" + +src_compile() { + ./configure + make +} + +src_install() { + into /usr + dosbin setserial + doman setserial.8 + dodoc README Documentation/* + insinto /etc + doins serial.conf +} + + diff --git a/sys-apps/sh-utils/files/digest b/sys-apps/sh-utils/files/digest new file mode 100644 index 000000000000..bc4f2b097953 --- /dev/null +++ b/sys-apps/sh-utils/files/digest @@ -0,0 +1 @@ +MD5 82087d6cc313189c312a0cf8ef875a2c sh-utils-2.0j.tar.gz diff --git a/sys-apps/sh-utils/sh-utils-2.0j-r1.ebuild b/sys-apps/sh-utils/sh-utils-2.0j-r1.ebuild new file mode 100644 index 000000000000..a65b89653b2d --- /dev/null +++ b/sys-apps/sh-utils/sh-utils-2.0j-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sh-utils/sh-utils-2.0j-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=sh-utils-2.0j +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Your standard GNU shell utilities" +CATEGORY="sys-apps" +SRC_URI="ftp://alpha.gnu.org/gnu/fetish/${A}" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr \ + --with-catgets --without-included-regex + make +} + +src_install() { + cd ${S}/src + into / + dobin echo hostname pwd true uname id stty date true false sleep su + chmod u+s ${D}/bin/su + into /usr + dobin basename chroot dirname env expr factor groups id logname nice nohup pathchk printenv printf seq tee test tty users who whoami yes + cd ${S} + doinfo doc/sh-utils.info + doman man/*.1 + MOPREFIX=sh-utils + domo po/*.po + dodoc ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog.0 NEWS README THANKS TODO +} + + + diff --git a/sys-apps/shadow/files/digest b/sys-apps/shadow/files/digest new file mode 100644 index 000000000000..8e1c7e241675 --- /dev/null +++ b/sys-apps/shadow/files/digest @@ -0,0 +1 @@ +MD5 ba5b76e7cb96c806a4bdb2797fc5c67d shadow-19990827.tar.gz diff --git a/sys-apps/shadow/files/login.defs b/sys-apps/shadow/files/login.defs new file mode 100644 index 000000000000..2f6e1219d388 --- /dev/null +++ b/sys-apps/shadow/files/login.defs @@ -0,0 +1,99 @@ +FAIL_DELAY 3 +FAILLOG_ENAB yes +LOG_UNKFAIL_ENAB no +DIALUPS_CHECK_ENAB yes +LOG_OK_LOGINS no +LASTLOG_ENAB yes +MAIL_CHECK_ENAB yes +OBSCURE_CHECKS_ENAB yes +PORTTIME_CHECKS_ENAB yes +QUOTAS_ENAB yes +SYSLOG_SU_ENAB yes +SYSLOG_SG_ENAB yes +CONSOLE /etc/securetty +MOTD_FILE /etc/motd +FTMP_FILE /var/log/btmpFAIL_DELAY 3 +FAILLOG_ENAB yes +LOG_UNKFAIL_ENAB no +DIALUPS_CHECK_ENAB yes +LOG_OK_LOGINS no +LASTLOG_ENAB yes +MAIL_CHECK_ENAB yes +OBSCURE_CHECKS_ENAB yes +PORTTIME_CHECKS_ENAB yes +QUOTAS_ENAB yes +SYSLOG_SU_ENAB yes +SYSLOG_SG_ENAB yes +CONSOLE /etc/securetty +MOTD_FILE /etc/motd +FTMP_FILE /var/log/btmp +NOLOGINS_FILE /etc/nologin +SU_NAME su +#QMAIL_DIR Maildir +MAIL_DIR /var/spool/mail +#MAIL_FILE .mail +HUSHLOGIN_FILE .hushlogin +ENV_HZ HZ=100 +ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin +ENV_PATH PATH=/bin:/usr/bin +TTYGROUP tty +TTYPERM 0600 +ERASECHAR 0177 +KILLCHAR 025 +UMASK 022 +PASS_MAX_DAYS 99999 +PASS_MIN_DAYS 0 +PASS_MIN_LEN 5 +PASS_WARN_AGE 7 +SU_WHEEL_ONLY no + +UID_MIN 1000 +UID_MAX 60000 +GID_MIN 100 +GID_MAX 60000 +LOGIN_RETRIES 5 +LOGIN_TIMEOUT 60 +PASS_CHANGE_TRIES 5 +PASS_ALWAYS_WARN yes +CHFN_AUTH yes +CHFN_RESTRICT rwh +#MD5_CRYPT_ENAB yes +DEFAULT_HOME yes +ENVIRON_FILE /etc/environment + +CREATE_HOME yes +NOLOGINS_FILE /etc/nologin +SU_NAME su +#QMAIL_DIR Maildir +MAIL_DIR /var/spool/mail +#MAIL_FILE .mail +HUSHLOGIN_FILE .hushlogin +ENV_HZ HZ=100 +ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin +ENV_PATH PATH=/bin:/usr/bin +TTYGROUP tty +TTYPERM 0600 +ERASECHAR 0177 +KILLCHAR 025 +UMASK 022 +PASS_MAX_DAYS 99999 +PASS_MIN_DAYS 0 +PASS_MIN_LEN 5 +PASS_WARN_AGE 7 +SU_WHEEL_ONLY no + +UID_MIN 1000 +UID_MAX 60000 +GID_MIN 100 +GID_MAX 60000 +LOGIN_RETRIES 5 +LOGIN_TIMEOUT 60 +PASS_CHANGE_TRIES 5 +PASS_ALWAYS_WARN yes +CHFN_AUTH yes +CHFN_RESTRICT rwh +#MD5_CRYPT_ENAB yes +DEFAULT_HOME yes +ENVIRON_FILE /etc/environment + +CREATE_HOME yes
\ No newline at end of file diff --git a/sys-apps/shadow/files/shadow-19990827-redhat.patch b/sys-apps/shadow/files/shadow-19990827-redhat.patch new file mode 100644 index 000000000000..75e332db2fd8 --- /dev/null +++ b/sys-apps/shadow/files/shadow-19990827-redhat.patch @@ -0,0 +1,865 @@ +--- shadow-19990827/man/shadowconfig.8.redhat Sat Sep 12 11:38:24 1998 ++++ shadow-19990827/man/shadowconfig.8 Wed Sep 22 15:56:41 1999 +@@ -19,6 +19,3 @@ + Turning shadow passwords on when they are already on, or off when they + are already off, is harmless. + +-Read +-.I /usr/doc/passwd/README.debian.gz +-for a brief introduction to shadow passwords and related features. +--- shadow-19990827/man/useradd.8.redhat Sun Mar 7 14:14:47 1999 ++++ shadow-19990827/man/useradd.8 Wed Sep 22 15:56:41 1999 +@@ -51,7 +51,7 @@ + .IR group [,...]] + .br + .RB [ -m " [" -k +-.IR skeleton_dir ]] ++.IR skeleton_dir ] " |" " " -M ] + .RB [ -p + .IR passwd ] + .br +@@ -60,6 +60,8 @@ + .RB [ -u + .IR uid " [" + .BR -o ]] ++.RB [ -n ] ++.RB [ -r ] + .I login + .TP 8 + .B useradd +@@ -79,6 +81,8 @@ + The new user account will be entered into the system files as needed, + the home directory will be created, and initial files copied, depending + on the command line options. ++The version provided with Red Hat Linux will create a group for each ++user added to the system, unless \fB-n\fR option is given. + The options which apply to the \fBuseradd\fR command are + .\" .IP "\fB-A {\fImethod\fR|\fBDEFAULT\fR},..." + .\" The value of the user's authentication method. +@@ -128,6 +132,21 @@ + option. + The default is to not create the directory and to not copy any + files. ++.IP \fB-M\fR ++The user home directory will not be created, even if the system ++wide settings from \fI/etc/login.defs\fR is to create home dirs. ++.IP \fB-n\fR ++A group having the same name as the user being added to the system ++will be created by default. This option will turn off this Red Hat ++Linux specific behavior. ++.IP \fB-r\fR ++This flag is used to create a system account. That is, an user with an ++UID lower than value of UID_MIN defined in \fI/etc/login.defs\fR. Note ++that \fBuseradd\fR will not create a home directory for such an user, ++regardless of the default setting in \fI/etc/login.defs\fR. ++You have to specify \fB-m\fR option if you want a home directory ++for a system account to be created. ++This is an option added by Red Hat. + .IP "\fB-p \fIpasswd\fR" + The encrypted password, as returned by \fBcrypt\fR(3). + The default is to disable the account. +@@ -170,19 +189,24 @@ + .SH NOTES + The system administrator is responsible for placing the default + user files in the \fI/etc/skel\fR directory. ++.br ++This version of useradd was modified by Red Hat to suit Red Hat ++user/group convention. + .SH CAVEATS + You may not add a user to an NIS group. + This must be performed on the NIS server. + .SH FILES +-/etc/passwd \- user account information ++\fB/etc/passwd\fR \- user account information ++.br ++\fB/etc/shadow\fR \- secure user account information + .br +-/etc/shadow \- secure user account information ++\fB/etc/group\fR \- group information + .br +-/etc/group \- group information ++\fB/etc/default/useradd\fR \- default information + .br +-/etc/default/useradd \- default information ++\fB/etc/login.defs\fR \- system-wide settings + .br +-/etc/skel \- directory containing default files ++\fB/etc/skel\fR \- directory containing default files + .SH SEE ALSO + .BR chfn (1), + .BR chsh (1), +--- shadow-19990827/man/groupadd.8.redhat Mon Dec 28 15:35:05 1998 ++++ shadow-19990827/man/groupadd.8 Wed Sep 22 15:56:41 1999 +@@ -32,7 +32,7 @@ + groupadd \- Create a new group + .SH SYNOPSIS + .B groupadd +-[\fB-g\fI gid \fR[\fB-o\fR]] ++[\fB-g\fI gid \fR[\fB-o\fR]] [\fB-r\fR] [\fB-f\fR] + .I group + .SH DESCRIPTION + The \fBgroupadd\fR command +@@ -44,9 +44,29 @@ + The numerical value of the group's ID. + This value must be unique, unless the \fB-o\fR option is used. + The value must be non-negative. +-The default is to use the smallest ID value greater than 99 and ++The default is to use the smallest ID value greater than 500 and + greater than every other group. +-Values between 0 and 99 are typically reserved for system accounts. ++Values between 0 and 499 are typically reserved for \fIsystem accounts\fR. ++.IP \fB-r\fR ++This flag instructs \fBgroupadd\fR to add a \fIsystem ++account\fR. First available \fIgid\fR lower than 499 will be ++automatically selected unless \fB-g\fR option is given also on the ++command line. ++.br ++This is an option added by Red Hat Software. ++.IP \fB-f\fR ++This is \fIforce\fR flag. This will stop \fBgroupadd\fR exit with ++error when the group about to be added already exists on the ++system. If that is the case, the group won't be altered (or added ++again, for that matter). ++.br ++This option also modifies the way \fB-g\fR option works. When you ++request a \fIgid\fR that it is not unique and you don't give \fB-o\fR ++option too, the group creation will fall back to the standard behavior ++(adding a group as neither \fB-g\fR or \fB-o\fR options were ++specified). ++.br ++This is an option added by Red Hat Software. + .SH FILES + /etc/group \- group account information + .br +--- shadow-19990827/src/useradd.c.redhat Mon Jun 7 12:40:45 1999 ++++ shadow-19990827/src/useradd.c Wed Sep 22 15:56:41 1999 +@@ -61,7 +61,7 @@ + #define USER_DEFAULTS_FILE "/etc/default/useradd" + #define NEW_USER_FILE "/etc/default/nuaddXXXXXX" + #endif +- ++ + /* + * Needed for MkLinux DR1/2/2.1 - J. + */ +@@ -75,7 +75,7 @@ + static gid_t def_group = 100; + static const char *def_gname = "other"; + static const char *def_home = "/home"; +-static const char *def_shell = ""; ++static const char *def_shell = "/dev/null"; + static const char *def_template = SKEL_DIR; + #ifdef SHADOWPWD + static long def_inactive = -1; +@@ -87,7 +87,7 @@ + #define VALID(s) (strcspn (s, ":\n") == strlen (s)) + + static const char *user_name = ""; +-static const char *user_pass = "!"; ++static const char *user_pass = "!!"; + static uid_t user_id; + static gid_t user_gid; + static const char *user_comment = ""; +@@ -115,10 +115,13 @@ + sflg = 0, /* shell program for new account */ + cflg = 0, /* comment (GECOS) field for new account */ + mflg = 0, /* create user's home directory if it doesn't exist */ +- kflg = 0, /* specify a directory to fill new user directory */ ++ Mflg = 0, /* do NOT create user's home directory no matter what */ ++ kflg = 0, /* specify a directory to fill new user directory */ + fflg = 0, /* days until account with expired password is locked */ + eflg = 0, /* days since 1970-01-01 when account is locked */ +- Dflg = 0; /* set/show new user default values */ ++ Dflg = 0, /* set/show new user default values */ ++ nflg = 0, /* do not add a group for this user */ ++ rflg = 0; /* create a system account */ + + #ifdef AUTH_METHODS + static int Aflg = 0; /* specify authentication method for user */ +@@ -181,19 +184,19 @@ + #define E_HOMEDIR 12 /* can't create home directory */ + + #ifdef SVR4 +-#define DGROUP "defgroup=" +-#define HOME "defparent=" +-#define SHELL "defshell=" +-#define INACT "definact=" +-#define EXPIRE "defexpire=" +-#define SKEL "defskel=" ++#define DGROUP "defgroup=" ++#define HOME "defparent=" ++#define SHELL "defshell=" ++#define INACT "definact=" ++#define EXPIRE "defexpire=" ++#define SKEL "defskel=" + #else +-#define DGROUP "GROUP=" +-#define HOME "HOME=" +-#define SHELL "SHELL=" +-#define INACT "INACTIVE=" +-#define EXPIRE "EXPIRE=" +-#define SKEL "SKEL=" ++#define DGROUP "GROUP=" ++#define HOME "HOME=" ++#define SHELL "SHELL=" ++#define INACT "INACTIVE=" ++#define EXPIRE "EXPIRE=" ++#define SKEL "SKEL=" + #endif + + /* local function prototypes */ +@@ -711,7 +714,7 @@ + #ifdef AUTH_METHODS + fprintf(stderr, _("[-A program] ")); + #endif +- fprintf(stderr, _("[-p passwd] name\n")); ++ fprintf(stderr, _("[-p passwd] [-n] [-r] name\n")); + + fprintf(stderr, _(" %s\t-D [-g group] [-b base] [-s shell]\n"), + Prog); +@@ -807,31 +810,7 @@ + struct sgrp *nsgrp; + #endif + +- /* +- * Lock and open the group file. This will load all of the group +- * entries. +- */ +- +- if (! gr_lock ()) { +- fprintf(stderr, _("%s: error locking group file\n"), Prog); +- fail_exit(E_GRP_UPDATE); +- } +- if (! gr_open (O_RDWR)) { +- fprintf(stderr, _("%s: error opening group file\n"), Prog); +- fail_exit(E_GRP_UPDATE); +- } +-#ifdef SHADOWGRP +- if (is_shadow_grp && ! sgr_lock ()) { +- fprintf(stderr, _("%s: error locking shadow group file\n"), +- Prog); +- fail_exit(E_GRP_UPDATE); +- } +- if (is_shadow_grp && ! sgr_open (O_RDWR)) { +- fprintf(stderr, _("%s: error opening shadow group file\n"), +- Prog); +- fail_exit(E_GRP_UPDATE); +- } +-#endif ++ /* Locking and opening of the group files moved to open_files() --gafton */ + + /* + * Scan through the entire group file looking for the groups that +@@ -969,8 +948,13 @@ + const struct passwd *pwd; + uid_t uid_min, uid_max; + +- uid_min = getdef_num("UID_MIN", 100); +- uid_max = getdef_num("UID_MAX", 60000); ++ if (!rflg) { ++ uid_min = getdef_num("UID_MIN", 500); ++ uid_max = getdef_num("UID_MAX", 60000); ++ } else { ++ uid_min = 1; ++ uid_max = 499; ++ } + + /* + * Start with some UID value if the user didn't provide us with +@@ -1036,6 +1020,88 @@ + } + } + ++/* ++ * find_new_gid - find the next available GID ++ * ++ * find_new_gid() locates the next highest unused GID in the group ++ * file, or checks the given group ID against the existing ones for ++ * uniqueness. ++ */ ++ ++static void ++find_new_gid() ++{ ++ const struct group *grp; ++ gid_t gid_min, gid_max; ++ ++ if (!rflg) { ++ gid_min = getdef_num("GID_MIN", 500); ++ gid_max = getdef_num("GID_MAX", 60000); ++ } else { ++ gid_min = 1; ++ gid_max = 499; ++ } ++ ++ /* ++ * Start with some GID value if the user didn't provide us with ++ * one already. ++ */ ++ ++ user_gid = gid_min; ++ ++ /* ++ * Search the entire group file, either looking for this ++ * GID (if the user specified one with -g) or looking for the ++ * largest unused value. ++ */ ++ ++#ifdef NO_GETGRENT ++ gr_rewind(); ++ while ((grp = gr_next())) ++#else ++ setgrent(); ++ while ((grp = getgrent())) ++#endif ++ { ++ if (strcmp(user_name, grp->gr_name) == 0) { ++ user_gid = grp->gr_gid; ++ return; ++ } ++ if (grp->gr_gid >= user_gid) { ++ if (grp->gr_gid > gid_max) ++ continue; ++ user_gid = grp->gr_gid + 1; ++ } ++ } ++#ifndef NO_GETGRENT /* RH Linux does have this, so ... */ ++ /* A quick test gets here: if the UID is available ++ * as a GID, go ahead and use it */ ++ if (!getgrgid(user_id)) { ++ user_gid = user_id; ++ return; ++ } ++#endif ++ if (user_gid == gid_max + 1) { ++ for (user_gid = gid_min; user_gid < gid_max; user_gid++) { ++#ifdef NO_GETGRENT ++ gr_rewind(); ++ while ((grp = gr_next()) && grp->gr_gid != user_gid) ++ ; ++ if (!grp) ++ break; ++#else ++ if (!getgrgid(user_gid)) ++ break; ++#endif ++ } ++ if (user_gid == gid_max) { ++ fprintf(stderr, "%s: can't get unique gid (run out of GIDs)\n", ++ Prog); ++ fail_exit(4); ++ } ++ } ++} ++ + #ifdef AUTH_METHODS + /* + * convert_auth - convert the argument list to a authentication list +@@ -1126,9 +1192,9 @@ + char *cp; + + #ifdef SHADOWPWD +-#define FLAGS "A:Du:og:G:d:s:c:mk:p:f:e:b:O:M" ++#define FLAGS "A:Du:og:G:d:s:c:mk:p:f:e:b:O:Mnr" + #else +-#define FLAGS "A:Du:og:G:d:s:c:mk:p:b:O:M" ++#define FLAGS "A:Du:og:G:d:s:c:mk:p:b:O:Mnr" + #endif + while ((arg = getopt(argc, argv, FLAGS)) != EOF) { + #undef FLAGS +@@ -1252,12 +1318,6 @@ + case 'm': + mflg++; + break; +- case 'M': +- /* +- * don't create home dir - this is the default, +- * ignored for RedHat/PLD adduser compatibility. +- */ +- break; + case 'o': + oflg++; + break; +@@ -1302,6 +1362,15 @@ + user_id = get_number(optarg); + uflg++; + break; ++ case 'n': ++ nflg++; ++ break; ++ case 'r': ++ rflg++; ++ break; ++ case 'M': ++ Mflg++; ++ break; + default: + usage(); + } +@@ -1312,9 +1381,12 @@ + * Certain options are only valid in combination with others. + * Check it here so that they can be specified in any order. + */ +- if ((oflg && !uflg) || (kflg && !mflg)) ++ if (kflg && !mflg) + usage(); + ++ if (mflg && Mflg) /* the admin is not decided .. create or not ? */ ++ usage(); ++ + /* + * Either -D or username is required. Defaults can be set with -D + * for the -b, -e, -f, -g, -s options only. +@@ -1435,6 +1507,31 @@ + exit(E_PW_UPDATE); + } + #endif ++ /* ++ * Lock and open the group file. This will load all of the group ++ * entries. ++ */ ++ ++ if (! gr_lock ()) { ++ fprintf(stderr, _("%s: error locking group file\n"), Prog); ++ fail_exit(E_GRP_UPDATE); ++ } ++ if (! gr_open (O_RDWR)) { ++ fprintf(stderr, _("%s: error opening group file\n"), Prog); ++ fail_exit(E_GRP_UPDATE); ++ } ++#ifdef SHADOWGRP ++ if (is_shadow_grp && ! sgr_lock ()) { ++ fprintf(stderr, _("%s: error locking shadow group file\n"), ++ Prog); ++ fail_exit(E_GRP_UPDATE); ++ } ++ if (is_shadow_grp && ! sgr_open (O_RDWR)) { ++ fprintf(stderr, _("%s: error opening shadow group file\n"), ++ Prog); ++ fail_exit(E_GRP_UPDATE); ++ } ++#endif /* SHADOWGRP*/ + } + + +@@ -1483,9 +1580,6 @@ + struct spwd spent; + #endif + +- if (! oflg) +- find_new_uid (); +- + #ifdef AUTH_METHODS + if (Aflg) { + convert_auth(user_auth, auth_arg); +@@ -1643,6 +1737,118 @@ + } + } + ++/* a fake something */ ++static char *empty_list = NULL; ++ ++/* ++ * new_grent - initialize the values in a group file entry ++ * ++ * new_grent() takes all of the values that have been entered and ++ * fills in a (struct group) with them. ++ */ ++ ++static void ++new_grent(grent) ++ struct group *grent; ++{ ++ bzero ((char *) grent, sizeof *grent); ++ (const char *) (grent->gr_name) = user_name; ++ grent->gr_passwd = "x"; ++ grent->gr_gid = user_gid; ++ grent->gr_mem = &empty_list; ++} ++ ++#ifdef SHADOWGRP ++/* ++ * new_sgent - initialize the values in a shadow group file entry ++ * ++ * new_sgent() takes all of the values that have been entered and ++ * fills in a (struct sgrp) with them. ++ */ ++ ++static void ++new_sgent(sgent) ++ struct sgrp *sgent; ++{ ++ bzero ((char *) sgent, sizeof *sgent); ++ (const char *)(sgent->sg_name) = user_name; ++ sgent->sg_passwd = "!"; ++ sgent->sg_adm = &empty_list; ++ sgent->sg_mem = &empty_list; ++} ++#endif /* SHADOWGRP */ ++ ++/* ++ * grp_update - add new group file entries ++ * ++ * grp_update() writes the new records to the group files. ++ */ ++ ++static void grp_add() ++{ ++ struct group grp; ++#ifdef SHADOWGRP ++ struct sgrp sgrp; ++#endif /* SHADOWGRP */ ++ ++ /* ++ * Create the initial entries for this new group. ++ */ ++ ++ new_grent (&grp); ++#ifdef SHADOWGRP ++ new_sgent (&sgrp); ++#endif /* SHADOWGRP */ ++ ++ /* ++ * Write out the new group file entry. ++ */ ++ if (! gr_update (&grp)) { ++ fprintf (stderr, "%s: error adding new group entry\n", Prog); ++ fail_exit (10); ++ } ++#ifdef NDBM ++ ++ /* ++ * Update the DBM group file with the new entry as well. ++ */ ++ ++ if (gr_dbm_present() && ! gr_dbm_update (&grp)) { ++ fprintf (stderr, "%s: cannot add new dbm group entry\n", Prog); ++ fail_exit (10); ++ } ++ endgrent (); ++#endif /* NDBM */ ++ ++#ifdef SHADOWGRP ++ ++ /* ++ * Write out the new shadow group entries as well. ++ */ ++ ++ if (is_shadow_grp && ! sgr_update (&sgrp)) { ++ fprintf (stderr, "%s: error adding new group entry\n", Prog); ++ fail_exit (10); ++ } ++#ifdef NDBM ++ ++ /* ++ * Update the DBM group file with the new entry as well. ++ */ ++ ++ if (is_shadow_grp && sg_dbm_present() && ! sg_dbm_update (&sgrp)) { ++ fprintf (stderr, "%s: cannot add new dbm group entry\n", Prog); ++ fail_exit (10); ++ } ++ endsgent (); ++#endif /* NDBM */ ++#endif /* SHADOWGRP */ ++ SYSLOG((LOG_INFO, "new group: name=%s, gid=%d\n", ++ user_name, user_gid)); ++ /* we need to remeber we have to close the group file... */ ++ do_grp_update++; ++} ++ + /* + * main - useradd command + */ +@@ -1688,6 +1894,14 @@ + + process_flags(argc, argv); + ++ if (!rflg) /* for system accounts defaults are ignored and we ++ * do not create a home dir -- gafton */ ++ if (getdef_bool("CREATE_HOME")) ++ mflg = 1; ++ ++ if (Mflg) /* absolutely sure that we do not create home dirs */ ++ mflg = 0; ++ + /* + * See if we are messing with the defaults file, or creating + * a new user. +@@ -1706,8 +1920,12 @@ + */ + + if (getpwnam(user_name)) { ++ if (!oflg) { + fprintf(stderr, _("%s: user %s exists\n"), Prog, user_name); + exit(E_NAME_IN_USE); ++ } else { ++ exit(E_SUCCESS); ++ } + } + + /* +@@ -1717,28 +1935,33 @@ + + open_files (); + ++ /* first, seek for a valid uid to use for this user. ++ * We do this because later we can use the uid we found as ++ * gid too ... --gafton */ ++ if (! uflg) ++ find_new_uid (); ++ /* do we have to add a group for that user? This is why we need to ++ * open the group files in the open_files() function --gafton */ ++ if (! (nflg || gflg)) { ++ find_new_gid(); ++ grp_add(); ++ } ++ + usr_update (); + + if (mflg) { + create_home (); + copy_tree (def_template, user_home, user_id, user_gid); +- } else if (getdef_str("CREATE_HOME")) { +- /* +- * RedHat added the CREATE_HOME option in login.defs in their +- * version of shadow-utils (which makes -m the default, with +- * new -M option to turn it off). Unfortunately, this +- * changes the way useradd works (it can be run by scripts +- * expecting some standard behaviour), compared to other +- * Unices and other Linux distributions, and also adds a lot +- * of confusion :-(. +- * So we now recognize CREATE_HOME and give a warning here +- * (better than "configuration error ... notify administrator" +- * errors in every program that reads /etc/login.defs). -MM +- */ +- fprintf(stderr, +- _("%s: warning: CREATE_HOME not supported, please use -m instead.\n"), +- Prog); +- } ++ } /* Stupid warning removed for the innocent's protection */ ++ /* ++ * The whole idea about breaking some stupid scripts by creating a new ++ * variable is crap - I could care less about the scripts. Historically ++ * adduser type programs have always created the home directories and ++ * I don't like the idea of providing a script when we can fix the binary ++ * itself. And if the scripts are using the right options to the useradd ++ * then they will not break. If not, they depend on unspecified behavior ++ * and they will break, but they were broken anyway to beging with --gafton ++ */ + + close_files (); + exit(E_SUCCESS); +--- shadow-19990827/src/groupadd.c.redhat Mon Jun 7 12:40:45 1999 ++++ shadow-19990827/src/groupadd.c Wed Sep 22 15:56:41 1999 +@@ -72,6 +72,10 @@ + static int oflg = 0; /* permit non-unique group ID to be specified with -g */ + static int gflg = 0; /* ID value for the new group */ + static int fflg = 0; /* if group already exists, do nothing and exit(0) */ ++static int rflg = 0; /* for adding system accounts (RedHat) */ ++ ++/* For adding "system" accounts */ ++#define MIN_GID 10 + + #ifdef NDBM + extern int gr_dbm_mode; +@@ -103,7 +107,7 @@ + static void + usage(void) + { +- fprintf(stderr, _("usage: groupadd [-g gid [-o]] group\n")); ++ fprintf(stderr, _("usage: groupadd [-g gid [-o]] [-r] [-f] group\n")); + exit(E_USAGE); + } + +@@ -228,8 +232,13 @@ + const struct group *grp; + gid_t gid_min, gid_max; + +- gid_min = getdef_num("GID_MIN", 100); +- gid_max = getdef_num("GID_MAX", 60000); ++ if (!rflg) { ++ gid_min = getdef_num("GID_MIN", 500); ++ gid_max = getdef_num("GID_MAX", 60000); ++ } else { ++ gid_min = MIN_GID; ++ gid_max = getdef_num("GID_MIN", 499); ++ } + + /* + * Start with some GID value if the user didn't provide us with +@@ -339,7 +348,7 @@ + char *cp; + int arg; + +- while ((arg = getopt(argc, argv, "og:O:f")) != EOF) { ++ while ((arg = getopt(argc, argv, "og:O:fr")) != EOF) { + switch (arg) { + case 'g': + gflg++; +@@ -384,7 +393,13 @@ + */ + fflg++; + break; +- default: ++ case 'r': ++ /* ++ * create a system group ++ */ ++ rflg++; ++ break; ++ default: + usage(); + } + } +--- shadow-19990827/src/userdel.c.redhat Mon Jun 7 12:40:45 1999 ++++ shadow-19990827/src/userdel.c Wed Sep 22 15:59:40 1999 +@@ -59,7 +59,9 @@ + + static char *user_name; + static uid_t user_id; ++static gid_t user_gid; + static char *user_home; ++static char *user_group; + + static char *Prog; + static int fflg = 0, rflg = 0; +@@ -248,6 +250,100 @@ + #endif /* SHADOWGRP */ + } + ++/* remove_group() ++ * remove the user's group unless it is not really a user-private group ++ */ ++static void ++remove_group () ++{ ++ char *glist_name; ++ struct group *gr; ++ struct passwd *pwd; ++#ifdef NDBM ++ struct group *ogrp; ++#endif ++ ++ if (user_group == NULL || user_name == NULL) ++ return; ++ ++ if (strcmp(user_name, user_group)) { ++ return; ++ } ++ ++ glist_name = NULL; ++ gr = getgrnam(user_group); ++ if (gr) ++ glist_name = *(gr->gr_mem); ++ while (glist_name) { ++ while (glist_name && *glist_name) { ++ if (strncmp(glist_name, user_name, 16)) { ++ return; ++ } ++ glist_name++; ++ } ++ } ++ ++ setpwent(); ++ while ((pwd = getpwent())) { ++ if (strcmp(pwd->pw_name, user_name) == 0) ++ continue; ++ ++ if (pwd->pw_gid == user_gid) { ++ return; ++ } ++ } ++ ++ /* now actually do the removal if we haven't already returned */ ++ ++ if (! gr_remove (user_group)) { ++ fprintf (stderr, "%s: error removing group entry\n", Prog); ++ } ++#ifdef NDBM ++ ++ /* ++ * Update the DBM group file ++ */ ++ ++ if (gr_dbm_present()) { ++ if ((ogrp = getgrnam (user_group)) && ++ ! gr_dbm_remove (ogrp)) { ++ fprintf (stderr, "%s: error removing group dbm entry\n", ++ Prog); ++ } ++ } ++ endgrent (); ++#endif /* NDBM */ ++ ++#ifdef SHADOWGRP ++ ++ /* ++ * Delete the shadow group entries as well. ++ */ ++ ++ if (is_shadow_grp && ! sgr_remove (user_group)) { ++ fprintf (stderr, "%s: error removing shadow group entry\n", ++ Prog); ++ } ++#ifdef NDBM ++ ++ /* ++ * Update the DBM shadow group file ++ */ ++ ++ if (is_shadow_grp && sg_dbm_present()) { ++ if (! sg_dbm_remove (user_group)) { ++ fprintf (stderr, ++ "%s: error removing shadow group dbm entry\n", ++ Prog); ++ } ++ } ++ endsgent (); ++#endif /* NDBM */ ++#endif /* SHADOWGRP */ ++ SYSLOG((LOG_INFO, "remove group `%s'\n", user_group)); ++ return; ++} ++ + /* + * close_files - close all of the files that were opened + * +@@ -512,7 +608,8 @@ + + fprintf(stderr, _("%s: user %s is currently logged in\n"), + Prog, name); +- exit(E_USER_BUSY); ++ if (!fflg) ++ exit(E_USER_BUSY); + } + } + +@@ -647,6 +744,7 @@ + main(int argc, char **argv) + { + struct passwd *pwd; ++ struct group *gr; + int arg; + int errors = 0; + +@@ -736,6 +834,9 @@ + #endif + user_id = pwd->pw_uid; + user_home = xstrdup(pwd->pw_dir); ++ user_gid = pwd->pw_gid; ++ gr = getgrgid(pwd->pw_gid); ++ if (gr) user_group = xstrdup(gr->gr_name); + + /* + * Check to make certain the user isn't logged in. +@@ -792,6 +893,9 @@ + } + } + #endif ++ ++ /* remove user's group if appropriate */ ++ remove_group (); + + if (rflg) { + if (remove_tree(user_home) || rmdir(user_home)) { diff --git a/sys-apps/shadow/files/useradd b/sys-apps/shadow/files/useradd new file mode 100644 index 000000000000..722c9172276f --- /dev/null +++ b/sys-apps/shadow/files/useradd @@ -0,0 +1,6 @@ +GROUP=100 +HOME=/home +INACTIVE=-1 +EXPIRE= +SHELL=/bin/bash +SKEL=/etc/skel
\ No newline at end of file diff --git a/sys-apps/shadow/shadow-19990827-r1.ebuild b/sys-apps/shadow/shadow-19990827-r1.ebuild new file mode 100644 index 000000000000..5b394429e94c --- /dev/null +++ b/sys-apps/shadow/shadow-19990827-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-19990827-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P="shadow-19990827" +A=${P}.tar.gz +A0=shadow-19990827-redhat.patch +S=${WORKDIR}/${P} +DESCRIPTION="Utilities to deal with user accounts" +CATEGORY="sys-apps" +SRC_URI="ftp://piast.t19.ds.pwr.wroc.pl/pub/linux/shadow/shadow-19990827.tar.gz" + +src_compile() { + ./configure --disable-desrpc --with-libcrypt --with-catgets \ + --with-libcrack \ + --with-libpam --disable-shared --host=${CHOST} + make +} + +src_unpack() { + unpack ${A} + einfo "Applying patch from RedHat 6.1..." + patch -p0 < ${O}/files/${A0} +} + +src_install() { + cd ${S} + make install prefix=${D}/usr exec_prefix=${D} + cd ${D}/usr/sbin + ln -s useradd ${D}/usr/sbin/adduser + gzip -9 ${D}/usr/man/man?/*.[1-9] + cd ${D}/usr/man/man8 + ln -s useradd.8.gz adduser.8.gz + ln -s pwconv.8.gz pwuconv.8.gz + ln -s pwconv.8.gz grpconv.8.gz + ln -s pwconv.8.gz grpunconv.8.gz + dodir /etc + cp ${O}/files/login.defs ${D}/etc + + dodir /etc/defaults + cp ${O}/files/useradd ${D}/etc/defaults + chmod 0600 ${D}/etc/defaults/useradd + dodir /etc/skel + cd ${S}/etc + cp shells shells.orig + echo "# /etc/shells: valid login shells" > shells + echo "/bin/sh" >> shells + echo "/bin/bash" >> shells + echo "/bin/tcsh" >> shells + insinto /etc + doins limits shells + insopts -m0600 + doins suauth login.access + cd ${S} + dodoc ABOUT-NLS + cd ${S}/doc + dodoc ANNOUNCE CHANGES HOWTO INSTALL LICENSE LSM README* WISHLIST *.txt + +} + + + diff --git a/sys-apps/sharutils/files/digest b/sys-apps/sharutils/files/digest new file mode 100644 index 000000000000..f5f03b27c116 --- /dev/null +++ b/sys-apps/sharutils/files/digest @@ -0,0 +1 @@ +MD5 b8ba1d409f07edcb335ff72a27bd9828 sharutils-4.2.1.tar.gz diff --git a/sys-apps/sharutils/sharutils-4.2.1-r1.ebuild b/sys-apps/sharutils/sharutils-4.2.1-r1.ebuild new file mode 100644 index 000000000000..5c9a23f902a9 --- /dev/null +++ b/sys-apps/sharutils/sharutils-4.2.1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sharutils/sharutils-4.2.1-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=sharutils-4.2.1 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Tools to deal with shar archives" +CATEGORY="sys-apps" +SRC_URI="ftp://prep.ai.mit.edu/gnu/sharutils/${A}" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr + make +} + +src_unpack() { + unpack ${A} + cd ${S}/po + mv nl.po nl.po.orig + sed -e 's/aangemaakt/aangemaakt\\n/' nl.po.orig > nl.po + mv pt.po pt.po.orig + sed -e 's/de %dk/de %dk\\n/' pt.po.orig > pt.po +} + +src_install() { + cd ${S} + make prefix=${D}/usr install + doman doc/*.[15] + prepinfo + rm -r ${D}/usr/share/locale + mv ${D}/usr/lib/locale/ ${D}/usr/share/ + rm -rf ${D}/usr/lib + cd ${S} + dodoc AUTHORS BACKLOG COPYING ChangeLog ChangeLog.OLD NEWS README README.OLD THANKS TODO +} + + diff --git a/sys-apps/sysklogd/files/digest b/sys-apps/sysklogd/files/digest new file mode 100644 index 000000000000..95a6dc6ba23f --- /dev/null +++ b/sys-apps/sysklogd/files/digest @@ -0,0 +1 @@ +MD5 b82928eeebe8426d0d8a42ebed115b08 sysklogd-1.3-31.tar.gz diff --git a/sys-apps/sysklogd/sysklogd-1.3.31-r1.ebuild b/sys-apps/sysklogd/sysklogd-1.3.31-r1.ebuild new file mode 100644 index 000000000000..0a712bf9be25 --- /dev/null +++ b/sys-apps/sysklogd/sysklogd-1.3.31-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysklogd/sysklogd-1.3.31-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P=sysklogd-1.3.31 +A=sysklogd-1.3-31.tar.gz +S=${WORKDIR}/sysklogd-1.3-31 +DESCRIPTION="standard log daemons" +CATEGORY="sys-apps" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/${A}" + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/-O3/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into /usr + dosbin syslogd klogd + doman *.[1-9] + dodoc ANNOUNCE COPYING MANIFEST NEWS README.1st README.linux Sysklogd-1.3.lsm + docinto debian + dodoc debian/* +} + + diff --git a/sys-apps/sysvinit/files/digest b/sys-apps/sysvinit/files/digest new file mode 100644 index 000000000000..762e3231d98c --- /dev/null +++ b/sys-apps/sysvinit/files/digest @@ -0,0 +1 @@ +MD5 cf40920a0423b05479504d79c0bd70ea sysvinit-2.78.tar.gz diff --git a/sys-apps/sysvinit/sysvinit-2.78-r1.ebuild b/sys-apps/sysvinit/sysvinit-2.78-r1.ebuild new file mode 100644 index 000000000000..7cc3b3afa420 --- /dev/null +++ b/sys-apps/sysvinit/sysvinit-2.78-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel robbins <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.78-r1.ebuild,v 1.1 2000/08/02 17:07:14 achim Exp $ + +P="sysvinit-2.78" +A=${P}.tar.gz +S=${WORKDIR}/sysvinit-2.78 +DESCRIPTION="System initialization schtuff" +CATEGORY="sys-apps" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/init/${A}" + +src_compile() { + cd ${S}/src + make + cd ${S}/contrib + gcc start-stop-daemon.c -o start-stop-daemon +} + +src_unpack() { + unpack ${A} + cd ${S}/src + mv Makefile Makefile.orig + sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + cd ${S}/src + into / + dosbin halt init killall5 runlevel shutdown sulogin + dobin last mesg utmpdump wall + dosym killall5 /sbin/pidof + dosym halt /sbin/reboot + cd ${S}/contrib + dosbin start-stop-daemon + into /usr + cd ${S}/man + doman *.[1-9] + + cd ${S} + dodoc README doc/* + +} + + diff --git a/sys-apps/tar/files/digest b/sys-apps/tar/files/digest new file mode 100644 index 000000000000..54b23affd34c --- /dev/null +++ b/sys-apps/tar/files/digest @@ -0,0 +1 @@ +MD5 4704d86de59410d8687cf2857ffd2f48 tar-1.13.17.tar.gz diff --git a/sys-apps/tar/tar-1.13.17-r1.ebuild b/sys-apps/tar/tar-1.13.17-r1.ebuild new file mode 100644 index 000000000000..e106285e8689 --- /dev/null +++ b/sys-apps/tar/tar-1.13.17-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/tar/tar-1.13.17-r1.ebuild,v 1.1 2000/08/02 17:07:15 achim Exp $ + +P=tar-1.13.17 +A=${P}.tar.gz +S=${WORKDIR}/${P} + +DESCRIPTION="Use this to make tarballs :)" +CATEGORY="sys-apps" +SRC_URI="ftp://alpha.gnu.org/gnu/tar/"${A} + +src_compile() { + ./configure --prefix=/usr --with-catgets --host=${CHOST} + cp lib/fnmatch.hin lib/fnmatch.h + make + cd ${S} +} + +src_install() { + cd ${S} + make prefix=${D}/usr install + prepinfo + dodoc COPYING NEWS README THANKS AUTHORS +} + + diff --git a/sys-apps/tcp-wrappers/files/digest b/sys-apps/tcp-wrappers/files/digest new file mode 100644 index 000000000000..61c8414280b9 --- /dev/null +++ b/sys-apps/tcp-wrappers/files/digest @@ -0,0 +1 @@ +MD5 e6fa25f71226d090f34de3f6b122fb5a tcp_wrappers_7.6.tar.gz diff --git a/sys-apps/tcp-wrappers/files/tcp_wrappers_7.6.patch b/sys-apps/tcp-wrappers/files/tcp_wrappers_7.6.patch new file mode 100644 index 000000000000..e5241b10ae47 --- /dev/null +++ b/sys-apps/tcp-wrappers/files/tcp_wrappers_7.6.patch @@ -0,0 +1,24 @@ +diff -u -2 -r tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile +--- tcp_wrappers_7.6.orig/Makefile Fri Mar 21 19:27:21 1997 ++++ tcp_wrappers_7.6/Makefile Sun May 7 16:16:06 2000 +@@ -45,5 +45,5 @@ + # + # SysV.4 Solaris 2.x OSF AIX +-#REAL_DAEMON_DIR=/usr/sbin ++REAL_DAEMON_DIR=/usr/sbin + # + # BSD 4.4 +diff -u -2 -r tcp_wrappers_7.6.orig/percent_m.c tcp_wrappers_7.6/percent_m.c +--- tcp_wrappers_7.6.orig/percent_m.c Wed Dec 28 17:42:37 1994 ++++ tcp_wrappers_7.6/percent_m.c Sun May 7 16:16:17 2000 +@@ -14,8 +14,8 @@ + + extern int errno; +-#ifndef SYS_ERRLIST_DEFINED ++/*#ifndef SYS_ERRLIST_DEFINED + extern char *sys_errlist[]; + extern int sys_nerr; +-#endif ++#endif*/ + + #include "mystdarg.h" diff --git a/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.ebuild b/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.ebuild new file mode 100644 index 000000000000..774a8551fa2f --- /dev/null +++ b/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.ebuild,v 1.1 2000/08/02 17:07:15 achim Exp $ + +P=tcp-wrappers-7.6 +A=tcp_wrappers_7.6.tar.gz +A0="tcp_wrappers_7.6.patch" +S=${WORKDIR}/tcp_wrappers_7.6 +DESCRIPTION="tcp wrappers" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.porcupine.org/pub/security/${A}" + + +src_unpack() { + unpack ${A} + cd ${S}/ + patch -p1 < ${O}/files/${A0} + cp Makefile Makefile.orig + sed -e "s/-O/${CFLAGS}/" \ + -e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile.orig > Makefile +} + +src_compile() { + make REAL_DAEMON_DIR=/usr/sbin linux +} + +src_install() { + into /usr + mkdir -p ${D}/usr/sbin + for i in tcpd tcpdchk tcpdmatch safe_finger try-from; + do + dosbin ${i} + done + doman *.[358] + dolib.a libwrap.a + insinto /usr/include + doins tcpd.h + dodoc BLURB CHANGES DISCLAIMER README* +} + + + + + diff --git a/sys-apps/textutils/files/digest b/sys-apps/textutils/files/digest new file mode 100644 index 000000000000..28566c337f00 --- /dev/null +++ b/sys-apps/textutils/files/digest @@ -0,0 +1 @@ +MD5 d161f21f88ddf49e10954307da69464e textutils-2.0f.tar.gz diff --git a/sys-apps/textutils/textutils-2.0f-r1.ebuild b/sys-apps/textutils/textutils-2.0f-r1.ebuild new file mode 100644 index 000000000000..e6107e9246e0 --- /dev/null +++ b/sys-apps/textutils/textutils-2.0f-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/textutils/textutils-2.0f-r1.ebuild,v 1.1 2000/08/02 17:07:15 achim Exp $ + +P=textutils-2.0f +A=${P}.tar.gz +S=${WORKDIR}/${P} + +CATEGORY="sys-apps" +DESCRIPTION="Standard GNU text utilities" +SRC_URI="ftp://alpha.gnu.org/gnu/fetish/textutils-2.0f.tar.gz" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} \ + --with-catgets --without-included-regex + make +} + +src_unpack() { + unpack ${A} + cd ${S}/src + mv tr.c tr.c.orig + sed -e "234d" tr.c.orig > tr.c +} + +src_install() { + cd ${S} + make prefix=${D}/usr install + prepman + prepinfo + dodoc AUTHORS COPYING ChangeLog NEWS README* THANKS TODO + dodir /bin + dosym /usr/bin/cat /bin/cat + rmdir ${D}/usr/lib +} + + + + diff --git a/sys-apps/updated/files/digest b/sys-apps/updated/files/digest new file mode 100644 index 000000000000..609b681042bd --- /dev/null +++ b/sys-apps/updated/files/digest @@ -0,0 +1 @@ +MD5 6328b9b044bd0a3653d703ebbd8b80fd updated-2.11.tar.gz diff --git a/sys-apps/updated/updated-2.11-r1.ebuild b/sys-apps/updated/updated-2.11-r1.ebuild new file mode 100644 index 000000000000..2cefb5924dcf --- /dev/null +++ b/sys-apps/updated/updated-2.11-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/updated/updated-2.11-r1.ebuild,v 1.1 2000/08/02 17:07:15 achim Exp $ + +P=updated-2.11 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Update flushes filesystem buffers at regular intervals" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/daemons/${P}" + +src_compile() { + make +} + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile Makefile.orig + sed -e "s/-O3/${CFLAGS}/" Makefile.orig > Makefile +} + +src_install() { + into / + dosbin update + doman update.8 + dodoc COPYING update.lsm debian/* +} + + diff --git a/sys-apps/util-linux/files/digest b/sys-apps/util-linux/files/digest new file mode 100644 index 000000000000..778059423a73 --- /dev/null +++ b/sys-apps/util-linux/files/digest @@ -0,0 +1,4 @@ +MD5 bf2f4616594ce04208efe833bbb24a89 util-linux-2.10m.tar.bz2 +MD5 571b7c1e5b81ff386fb5e5f6cb73aeb8 util-linux-2.10m-mount-compat.patch +MD5 9b70160a2227035def45e25f793b6e5a util-linux-2.10m-mount-nfsv3.patch +MD5 0e529f499a33c42b06f169f05c98427f util-linux-2.10m-mount-rpc.patch diff --git a/sys-apps/util-linux/util-linux-2.10m-r1.ebuild b/sys-apps/util-linux/util-linux-2.10m-r1.ebuild new file mode 100644 index 000000000000..1f00c2553d52 --- /dev/null +++ b/sys-apps/util-linux/util-linux-2.10m-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.10m-r1.ebuild,v 1.1 2000/08/02 17:07:15 achim Exp $ + +P="util-linux-2.10m" +A="${P}.tar.bz2 + ${P}-mount-compat.patch + ${P}-mount-nfsv3.patch + ${P}-mount-rpc.patch" + +S=${WORKDIR}/${P} +DESCRIPTION="Various useful Linux utilities" +CATEGORY="sys-apps" +SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/util-linux/${P}.tar.bz2 + ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/${P}-mount-compat.patch + ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/${P}-mount-nfsv3.patch + ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/${P}-mount-rpc.patch" + +src_compile() { + ./configure + make +} + +src_unpack() { + unpack ${P}.tar.bz2 + cd ${S} + patch -p1 < ${DISTDIR}/${P}-mount-compat.patch + patch -p1 < ${DISTDIR}/${P}-mount-nfsv3.patch + patch -p1 < ${DISTDIR}/${P}-mount-rpc.patch + cp MCONFIG MCONFIG.orig + sed -e "s/-pipe -O2 -m486 -fomit-frame-pointer/${CFLAGS}/" \ + -e "s/HAVE_PAM=no/HAVE_PAM=yes/" \ + -e "s/HAVE_SLN=no/HAVE_SLN=yes/" \ + -e "s/HAVE_TSORT=no/HAVE_TSORT=yes/" \ + -e "s/# HAVE_SLANG/HAVE_SLANG/" \ + -e "s/# SLANGFLAGS/SLANGSFLAGS/" \ + MCONFIG.orig > MCONFIG +} + +src_install() { + cd ${S} + make DESTDIR=${D} install + cd ${S} + dodoc licenses/* HISTORY + prepman + prepinfo + docinto examples + dodoc example.files/* +} + + diff --git a/sys-apps/vcron/files/digest b/sys-apps/vcron/files/digest new file mode 100644 index 000000000000..12da92affca3 --- /dev/null +++ b/sys-apps/vcron/files/digest @@ -0,0 +1 @@ +MD5 d9f12c3edfca4a4918b8d299cce5f2b4 cron3.0pl1.tar.gz diff --git a/sys-apps/vcron/vcron-3.0p1-r1.ebuild b/sys-apps/vcron/vcron-3.0p1-r1.ebuild new file mode 100644 index 000000000000..61070f855530 --- /dev/null +++ b/sys-apps/vcron/vcron-3.0p1-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/vcron/vcron-3.0p1-r1.ebuild,v 1.1 2000/08/02 17:07:16 achim Exp $ + +P=vcron-3.0p1 +A=cron3.0pl1.tar.gz +S=${WORKDIR}/cron3.0pl1 +CATEGORY="sys-apps" +DESCRIPTION="Crontab Daemon" +SRC_URI="ftp://sunsite.unc.edu/pub/Linux/system/daemons/cron/"${A} + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed -e "s/^OPTIM.*/OPTIM = ${CFLAGS}/" Makefile.orig > Makefile +} + +src_compile() { + cd ${S} + make +} + +src_install() { + cd ${S} + into /usr + dobin cron + dosbin crontab + doman crontab.[15] cron.8 + dodoc CHANGES CONVERSION FEATURES MAIL MANIFEST README THANKS +} + + + diff --git a/sys-apps/vim-nogui/files/digest b/sys-apps/vim-nogui/files/digest new file mode 100644 index 000000000000..bd52e4ba82b9 --- /dev/null +++ b/sys-apps/vim-nogui/files/digest @@ -0,0 +1,2 @@ +MD5 0b2bca69c7018a8777d8d5390e23d06e vim-5.7-src.tar.gz +MD5 b7d9cbc64479e26f52e2bc58d312bd84 vim-5.7-rt.tar.gz diff --git a/sys-apps/vim-nogui/vim-nogui-5.7-r1.ebuild b/sys-apps/vim-nogui/vim-nogui-5.7-r1.ebuild new file mode 100644 index 000000000000..79f25ebc12d5 --- /dev/null +++ b/sys-apps/vim-nogui/vim-nogui-5.7-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/vim-nogui/vim-nogui-5.7-r1.ebuild,v 1.1 2000/08/02 17:07:16 achim Exp $ + +P=vim-nogui-5.7 +A="vim-5.7-src.tar.gz vim-5.7-rt.tar.gz" +S=${WORKDIR}/vim-5.7 +CATEGORY="sys-apps" +DESCRIPTION="Handy vi-compatible editor" +SRC_URI="ftp://ftp.home.vim.org/pub/vim/unix/vim-5.7-src.tar.gz + ftp://ftp.home.vim.org/pub/vim/unix/vim-5.7-rt.tar.gz" + +src_compile() { + ./configure --prefix=/usr --host=${CHOST} \ + --enable-gui=no --without-x + make +} + +src_install() { + make prefix=${D}/usr install + prepman + dodoc README* + + cd ${D}/usr/doc/${P} + ln -s ../../share/vim/vim57/doc ${P} + gzip -9 ${D}/usr/share/vim/vim57/doc/*.txt + + cd ${D}/usr/bin + ln -s vim vi + +} + + + diff --git a/sys-apps/which/files/digest b/sys-apps/which/files/digest new file mode 100644 index 000000000000..3b5ad0af2dca --- /dev/null +++ b/sys-apps/which/files/digest @@ -0,0 +1 @@ +MD5 f4f245abb6cf848ba3642d7da57be905 which-2.11.tar.gz diff --git a/sys-apps/which/which-2.11-r1.ebuild b/sys-apps/which/which-2.11-r1.ebuild new file mode 100644 index 000000000000..409eb2c85b26 --- /dev/null +++ b/sys-apps/which/which-2.11-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/which/which-2.11-r1.ebuild,v 1.1 2000/08/02 17:07:16 achim Exp $ + +P=which-2.11 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="sys-apps" +DESCRIPTION="Prints out location of specified executables that are in your path" +SRC_URI="ftp://prep.ai.mit.edu/gnu/which/${P}" + +src_compile() { + ./configure --prefix=/usr + make +} + +src_unpack() { + unpack ${A} + cd ${S}/tilde + cp shell.c shell.c.orig + echo "#define NULL ( 0L )" > shell.c + cat shell.c.orig >> shell.c +} + +src_install() { + into /usr + dobin which + doman which.1 + doinfo which.info + dodoc AUTHORS COPYING EXAMPLES NEWS README* +} + diff --git a/sys-apps/xinetd/files/digest b/sys-apps/xinetd/files/digest new file mode 100644 index 000000000000..72aa49d63056 --- /dev/null +++ b/sys-apps/xinetd/files/digest @@ -0,0 +1 @@ +MD5 5d1f4d5bab29d9e68dc8850b4cb90969 xinetd-2.1.8.8p3.tar.gz diff --git a/sys-apps/xinetd/files/xinetd b/sys-apps/xinetd/files/xinetd new file mode 100755 index 000000000000..ff71ba4c47d4 --- /dev/null +++ b/sys-apps/xinetd/files/xinetd @@ -0,0 +1,42 @@ +#!/bin/sh +#RCUPDATE:3 4:72:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=xinetd +EXE="/usr/sbin/xinetd" +opts="start stop reconfig" + +start() { + if [ ! -e /etc/xinetd.conf ] ; then + einfo "Creating new config from inetd..." + /usr/sbin/xconv.pl < /etc/inetd.conf > /etc/xinetd.conf + fi + if [ /etc/inetd.conf -nt /etc/xinetd.conf ] ; then + einfo "Creating new config from inetd..." + /usr/sbin/xconv.pl < /etc/inetd.conf > /etc/xinetd.conf + fi + if [ ! -e /etc/xinetd.conf ] + then + eerror "Xinetd not started. Config file not found." + exit 1 + fi + ebegin "Starting ${SERVICE}" + start-stop-daemon --start --quiet --exec $EXE 1>&2 + eend $? "Error starting ${SERVICE}." +} + +stop() { + ebegin "Stopping ${SERVICE}" + start-stop-daemon --stop --quiet -u root -n $SERVICE 1>&2 + eend $? "Error stopping ${SERVICE}." +} + +reconfig () { + ebegin "Reconfiguring ${SERVICE}" + start-stop-daemon --stop --quiet -u root -n $SERVICE --signal 1 1>&2 + eend $? "Error reconfiguring ${SERVICE}." +} + +doservice ${@} + diff --git a/sys-apps/xinetd/files/xinetd.conf b/sys-apps/xinetd/files/xinetd.conf new file mode 100644 index 000000000000..1a914d050813 --- /dev/null +++ b/sys-apps/xinetd/files/xinetd.conf @@ -0,0 +1,103 @@ +# This file generated by xconv.pl, included with the xinetd +# package. xconv.pl was written by Rob Braun (bbraun@synack.net) +# +# The file is merely a translation of your inetd.conf file into +# the equivalent in xinetd.conf syntax. xinetd has many +# features that may not be taken advantage of with this translation. +# Please refer to the xinetd.conf man page for more information +# on how to properly configure xinetd. + + +# The defaults section sets some information for all services +defaults +{ + #The maximum number of requests a particular service may handle + # at once. + instances = 25 + + # The type of logging. This logs to a file that is specified. + # Another option is: SYSLOG syslog_facility [syslog_level] + log_type = FILE /var/log/servicelog + + # What to log when the connection succeeds. + # PID logs the pid of the server processing the request. + # HOST logs the remote host's ip address. + # USERID logs the remote user (using RFC 1413) + # EXIT logs the exit status of the server. + # DURATION logs the duration of the session. + log_on_success = HOST PID + + # What to log when the connection fails. Same options as above + log_on_failure = HOST RECORD + + # The maximum number of connections a specific IP address can + # have to a specific service. + per_source = 5 +} + +service time +{ + flags = REUSE NAMEINARGS + socket_type = stream + protocol = tcp + wait = no + user = root + type = INTERNAL + id = time-stream +} + +service time +{ + flags = REUSE NAMEINARGS + socket_type = dgram + protocol = udp + wait = yes + user = root + type = INTERNAL + id = time-dgram +} + +service ftp +{ + flags = REUSE NAMEINARGS + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/sbin/tcpd + server_args = proftpd +} + +service smtp +{ + flags = REUSE NAMEINARGS + socket_type = stream + protocol = tcp + wait = no + user = root + server = /var/qmail/bin/tcp-env + server_args = tcp-env /var/qmail/bin/qmail-smtpd +} + +service pop-3 +{ + flags = REUSE NAMEINARGS + socket_type = stream + protocol = tcp + wait = no + user = root + server = /var/qmail/bin/qmail-popup + server_args = qmail-popup localhost /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir +} + +service swat +{ + flags = REUSE NAMEINARGS + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/sbin/swat + server_args = swat +} + diff --git a/sys-apps/xinetd/xinetd-2.1.8.8p3-r1.ebuild b/sys-apps/xinetd/xinetd-2.1.8.8p3-r1.ebuild new file mode 100644 index 000000000000..3a39600f1420 --- /dev/null +++ b/sys-apps/xinetd/xinetd-2.1.8.8p3-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/xinetd-2.1.8.8p3-r1.ebuild,v 1.1 2000/08/02 17:07:17 achim Exp $ + +P=xinetd-2.1.8.8p3 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Replacement for inetd." +CATEGORY="sys-apps" +SRC_URI="http://www.xinetd.org/${A}" + +src_compile() { + ./configure --with-loadavg --with-libwrap --prefix=/usr --host=${CHOST} + make + +} + +src_install() { + cd ${S} + make prefix=${D}/usr install + prepman + dodoc CHANGELOG README COPYRIGHT + dodir /etc/rc.d/init.d + cp ${O}/files/xinetd ${D}/etc/rc.d/init.d/xinetd + cp ${O}/files/xinetd.conf ${D}/etc +} + + + + |