core/glibc/Pkgfile

49 lines
1.4 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# 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
2006-02-23 16:26:10 +01:00
name=glibc
2014-02-15 18:02:52 +01:00
version=2.19
2014-07-11 20:28:29 +02:00
release=3
2012-08-08 10:08:54 +02:00
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
2014-02-15 18:02:52 +01:00
http://crux.nu/files/distfiles/kernel-headers-3.12.tar.bz2 \
2014-02-15 23:54:34 +01:00
$name-$version-multilib-dirs.patch \
2014-07-11 20:28:29 +02:00
CVE-2014-0475.patch \
2014-02-15 18:02:52 +01:00
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
2006-02-23 16:26:10 +01:00
build() {
2012-08-08 10:08:54 +02:00
# install kernel headers
mkdir $PKG/usr/
2014-02-15 18:02:52 +01:00
cp -r $SRC/kernel-headers-3.12/include $PKG/usr
2012-08-08 10:08:54 +02:00
chown root:root $PKG/usr
2014-02-15 23:54:34 +01:00
patch -p1 -d $SRC/$name-$version -i $SRC/$name-$version-multilib-dirs.patch
2014-07-11 20:28:29 +02:00
patch -p1 -d $SRC/$name-$version -i $SRC/CVE-2014-0475.patch
2014-02-15 18:02:52 +01:00
mkdir $SRC/build
cd $SRC/build
2012-08-08 10:08:54 +02:00
../$name-$version/configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
--enable-kernel=3.10 \
2012-08-08 10:08:54 +02:00
--enable-add-ons \
--disable-profile \
--without-gd \
--enable-obsolete-rpc \
--enable-multi-arch \
--enable-static-nss
2012-08-08 10:08:54 +02:00
make
#make check
make install_root=$PKG install
install -m 0644 $SRC/$name-$version/nscd/nscd.conf $PKG/etc
install -d $PKG/var/{db,run}/nscd
install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
2012-08-08 10:08:54 +02:00
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},bin/tzselect,sbin/z{dump,ic}}
2006-02-23 16:26:10 +01:00
}