milis/talimatname/temel/coreutils/talimat

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-01-08 21:48:19 +01:00
# Tanım: Temel sistem özelliklerini göstermek ve ayarlamak için kullanılan yardımcı programlar
2016-02-24 01:27:23 +01:00
# URL: http://www.gnu.org/software/coreutils/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge@gmail.com
# Gerekler:
2018-01-08 21:48:19 +01:00
# Grup: temel
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
isim=coreutils
surum=8.25
devir=2
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz
http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-i18n-2.patch)
2017-10-27 21:56:50 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:15:02 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
patch -Np1 -i ../$isim-$surum-i18n-2.patch
2016-02-24 01:27:23 +01:00
FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \
--libexecdir=/lib --bindir=/bin --sbindir=/sbin \
--enable-no-install-program=kill,uptime
FORCE_UNSAFE_CONFIGURE=1 make || FORCE_UNSAFE_CONFIGURE=1 make -j1
if [ -f /tools/bin/su ];then
make NON_ROOT_USERNAME=nobody check-root
echo "dummy:x:1000:nobody" >> /etc/group
chown -Rv nobody .
su-tools nobody -s /bin/bash -c "make -k RUN_EXPENSIVE_TESTS=yes check"||true
sed -i '/dummy/d' /etc/group
fi
make DESTDIR=$PKG install
mkdir $PKG/sbin
mkdir -p $PKG/usr/share/man/man8
mv -v $PKG/bin/chroot $PKG/sbin
mv -v $PKG/usr/share/man/man1/chroot.1 $PKG/usr/share/man/man8/chroot.8
sed -i s/\"1\"/\"8\"/1 $PKG/usr/share/man/man8/chroot.8
rm -rf $PKG/usr/share/info/dir
mkdir -p $PKG/usr/bin
mv $PKG/bin/env $PKG/usr/bin
mv $PKG/bin/install $PKG/usr/bin
}