summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-01-16 14:09:18 +0000
committerAchim Gottinger <achim@gentoo.org>2001-01-16 14:09:18 +0000
commitfcba3654a5c6e49ea1c37d14f1427fec2fa8b5af (patch)
tree6d34e044afaf9ce18a6f53d263a2377effcfcd02 /sys-libs
parent*** empty log message *** (diff)
downloadgentoo-2-fcba3654a5c6e49ea1c37d14f1427fec2fa8b5af.tar.gz
gentoo-2-fcba3654a5c6e49ea1c37d14f1427fec2fa8b5af.tar.bz2
gentoo-2-fcba3654a5c6e49ea1c37d14f1427fec2fa8b5af.zip
*** empty log message ***
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/files/digest-glibc-2.2.12
-rw-r--r--sys-libs/glibc/glibc-2.2.1.ebuild92
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/digest-glibc-2.2.1 b/sys-libs/glibc/files/digest-glibc-2.2.1
new file mode 100644
index 000000000000..7b9682289a38
--- /dev/null
+++ b/sys-libs/glibc/files/digest-glibc-2.2.1
@@ -0,0 +1,2 @@
+MD5 5fda58bc58a2e7b5a818994b5d1445c3 glibc-2.2.1.tar.gz
+MD5 0963a626c6f4dc0c9871f60931643f5a glibc-linuxthreads-2.2.1.tar.gz
diff --git a/sys-libs/glibc/glibc-2.2.1.ebuild b/sys-libs/glibc/glibc-2.2.1.ebuild
new file mode 100644
index 000000000000..74296e7605df
--- /dev/null
+++ b/sys-libs/glibc/glibc-2.2.1.ebuild
@@ -0,0 +1,92 @@
+# 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-libs/glibc/glibc-2.2.1.ebuild,v 1.1 2001/01/16 14:07:34 achim Exp $
+
+A="$P.tar.gz glibc-linuxthreads-${PV}.tar.gz"
+S=${WORKDIR}/${P}
+DESCRIPTION="GNU libc6 (also called glibc2) C library"
+SRC_URI="ftp://sourceware.cygnus.com/pub/glibc/releases/glibc-${PV}.tar.gz
+ ftp://sourceware.cygnus.com/pub/glibc/releases/glibc-linuxthreads-${PV}.tar.gz
+ ftp://ftp.unina.it/pub/Unix/cygnus/glibc/releases/glibc-${PV}.tar.gz
+ ftp://ftp.unina.it/pub/Unix/cygnus/glibc/releases/glibc-linuxthreads-${PV}.tar.gz
+ ftp://ftp.gnu.org/pub/gnu/glibc/glibc-${PV}.tar.gz
+ ftp://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-${PV}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/libc/libc.html"
+DEPEND=""
+RDEPEND="$DEPEND
+ >=sys-apps/bash-2.04
+ >=sys-devel/perl-5.6"
+
+src_compile() {
+
+ rm -rf buildhere
+ mkdir buildhere
+ cd buildhere
+ try ../configure --host=${CHOST} --without-cvs \
+ --enable-add-ons=linuxthreads \
+ --disable-profile --prefix=/usr \
+ --enable-kernel=2.4.0
+ try make PARALLELMFLAGS=${MAKEOPTS}
+ make check
+}
+
+src_unpack() {
+ unpack glibc-${PV}.tar.gz
+ cd ${S}
+ unpack glibc-linuxthreads-${PV}.tar.gz
+# patch -p1 < ${FILESDIR}/glibc-2.2-ldconfig.patch
+}
+
+src_install() {
+ cd ${S}
+ rm -rf ${D}
+ mkdir ${D}
+ dodir /etc/rc.d/init.d
+ export LC_ALL=C
+ try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} install -C buildhere
+ try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} info -C buildhere
+ try make PARALELLMFLAGS=${MAKEOPTS} install_root=${D} localedata/install-locales -C buildhere
+ try make PARALELLMFLAGS=${MAKEOPTS} -C linuxthreads/man
+ mkdir -p ${D}/usr/man/man3
+ install -m 0644 linuxthreads/man/*.3thr ${D}/usr/man/man3
+ chmod 755 ${D}/usr/libexec/pt_chown
+ install -m 644 nscd/nscd.conf ${D}/etc
+ install -m 755 ${O}/files/nscd ${D}/etc/rc.d/init.d/nscd
+ rm ${D}/lib/ld-linux.so.2
+ rm ${D}/lib/libc.so.6
+
+ dodoc BUGS ChangeLog* CONFORMANCE COPYING* FAQ INTERFACE NEWS NOTES \
+ PROJECTS README*
+}
+
+pkg_preinst()
+{
+ echo "Saving ld-linux and libc6"
+
+ cp ${ROOT}lib/ld-linux.so.2 ${ROOT}tmp
+ sln ${ROOT}tmp/ld-linux.so.2 ${ROOT}lib/ld-linux.so.2
+ cp ${ROOT}lib/libc.so.6 ${ROOT}tmp
+ sln ${ROOT}tmp/libc.so.6 ${ROOT}lib/libc.so.6
+
+ if [ -e ${ROOT}etc/localtime ]
+ then
+ #keeping old timezone
+ rm ${D}/etc/localtime
+ else
+ echo "Please remember to set your timezone using the zic command."
+ fi
+}
+
+pkg_postinst()
+{
+ echo "Setting ld-linux and libc6"
+
+ sln ${ROOT}lib/ld-2.2.so ${ROOT}lib/ld-linux.so.2
+ sln ${ROOT}lib/libc-2.2.so ${ROOT}lib/libc.so.6
+ rm ${ROOT}tmp/ld-linux.so.2
+ rm ${ROOT}tmp/libc.so.6
+ ldconfig -r ${ROOT}
+}
+
+