diff options
author | Lukc <lukc@upyum.com> | 2010-12-11 19:15:23 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-11 19:15:35 +0100 |
commit | 6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch) | |
tree | b5e6da6d95b9a1235d82032b509b80483a886ff5 /glibc/Pkgfile.old | |
download | base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2 base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip |
Engagement initial.
Diffstat (limited to 'glibc/Pkgfile.old')
-rw-r--r-- | glibc/Pkgfile.old | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/glibc/Pkgfile.old b/glibc/Pkgfile.old new file mode 100644 index 0000000..e0931c3 --- /dev/null +++ b/glibc/Pkgfile.old @@ -0,0 +1,48 @@ +# Description: The C library used in the GNU system +# URL: http://www.gnu.org/software/libc/ +# Maintainer: CRUX System Team, core-ports at crux dot nu + +name=glibc +version=2.12.1 +release=2 +source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz + http://crux.nu/files/distfiles/kernel-headers-2.6.35.tar.xz + glibc-fedora_i686.patch + Optimize-__getpagesize-a-bit.patch + CVE-2010-3847.patch CVE-2010-3856.patch + hosts resolv.conf nsswitch.conf host.conf ld.so.conf) + +build() { + # install kernel headers + mkdir $PKG/usr/ + cp -r kernel-headers-2.6.35/include $PKG/usr + chown root:root $PKG/usr + + patch -p1 -d $name-$version -i $SRC/$name-fedora_i686.patch + patch -R -p1 -d $name-$version -i $SRC/Optimize-__getpagesize-a-bit.patch + patch -p1 -d $name-$version -i $SRC/CVE-2010-3847.patch + patch -p1 -d $name-$version -i $SRC/CVE-2010-3856.patch + + sed -i '/^all-subdirs/,+6s/manual//' $name-$version/Makeconfig + + mkdir build + cd build + ../$name-$version/configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --with-headers=$PKG/usr/include \ + --with-tls \ + --enable-kernel=2.6.27 \ + --enable-add-ons \ + --disable-profile \ + --without-gd + make + #make check + make install_root=$PKG install + + cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc + ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime + mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale + touch $PKG/etc/ld.so.cache + + rm -rf $PKG/usr/share/{info,locale} +} |