malfs mekanizma guncelleme

This commit is contained in:
root 2016-03-21 17:51:03 +02:00
parent a9e9e21ee7
commit e9048a4cab
4 changed files with 13 additions and 10 deletions

16
bin/mps
View File

@ -28,10 +28,10 @@ icerik_ekle(){
mkdir -p tmpk.$paketad
tar xf $1 -C tmpk.$paketad &&
mkdir -p /var/lib/pkg/DB/"$paketad" &&
cp -avf tmpk.$paketad/* $kokdizin > tmpk.$paketad/kurulan &&
cp -axvnu tmpk.$paketad/* $kokdizin > tmpk.$paketad/kurulan
cat tmpk.$paketad/kurulan | cut -d '>' -f2 > /var/lib/pkg/DB/"$paketad"/kurulan
#mv tmpk.$paketad/.MTREE /var/lib/pkg/DB/"$paketad"/files &&
mv tmpk.$paketad/.META /var/lib/pkg/DB/"$paketad"/META &&
mv tmpk.$paketad/.META /var/lib/pkg/DB/"$paketad"/META
#kur-kos calistirilmasi
if [ -f tmpk.$paketad/.POST ];then
@ -48,8 +48,10 @@ icerik_ekle(){
# rm $kokdizin/.README
#fi
rm -r tmpk.$paketad
if [ -f /etc/ld.so.conf ];then
ldconfig
if [ -f /tools/sbin/ldconfig ];then
/tools/sbin/ldconfig
else
/sbin/ldconfig
fi
ryaz 34 $paketad" paketi kuruldu."
}
@ -88,8 +90,10 @@ icerik_ekle2(){
# rm $kokdizin/.README
#fi
rm -r tmpk.$paketad
if [ -f /etc/ld.so.conf ];then
ldconfig
if [ -f /tools/sbin/ldconfig ];then
/tools/sbin/ldconfig
else
/sbin/ldconfig
fi
ryaz 34 $paketad" paketi kuruldu."
}

View File

@ -149,6 +149,7 @@ ikinci_ayarlar(){
generate_milis_version
cp $ANADIZIN/ayarlar/mpsd.conf $LFS/etc/
cp $ANADIZIN/ayarlar/onmpsd.conf $LFS/etc/
cp $ANADIZIN/ayarlar/ld.so.conf $LFS/tools/etc/
}
generate_milis_version() {

View File

@ -13,7 +13,7 @@ cd build
../configure \
--prefix=/tools \
--host=$LFS_TARGET \
--host=$LFS_TGT \
--build=$(../scripts/config.guess) \
--disable-profile \
--enable-kernel=2.6.32 \
@ -30,7 +30,7 @@ rm -rf /tools/share/info/dir
make install
echo 'main(){}' > dummy.c
$LFS_TARGET-gcc dummy.c
$LFS_TGT-gcc dummy.c
echo $(readelf -l a.out | grep ': /tools')
rm -v dummy.c a.out
}

View File

@ -12,8 +12,6 @@ build() {
# Vérifier si necessaire de faire les verifs du bon fonctionnement de
# glibc et du linker
if [ -L /bin/pwd ];then
ldconfig
ln -s /tools/lib/* /tools/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/
mv -v /tools/bin/ld /tools/bin/ld-old
mv -v /tools/$(uname -m)-pc-linux-gnu/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld-old
mv -v /tools/bin/ld-new /tools/bin/ld