malfs mekanizma guncelleme
This commit is contained in:
parent
a9e9e21ee7
commit
e9048a4cab
16
bin/mps
16
bin/mps
|
@ -28,10 +28,10 @@ icerik_ekle(){
|
||||||
mkdir -p tmpk.$paketad
|
mkdir -p tmpk.$paketad
|
||||||
tar xf $1 -C tmpk.$paketad &&
|
tar xf $1 -C tmpk.$paketad &&
|
||||||
mkdir -p /var/lib/pkg/DB/"$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
|
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/.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
|
#kur-kos calistirilmasi
|
||||||
if [ -f tmpk.$paketad/.POST ];then
|
if [ -f tmpk.$paketad/.POST ];then
|
||||||
|
@ -48,8 +48,10 @@ icerik_ekle(){
|
||||||
# rm $kokdizin/.README
|
# rm $kokdizin/.README
|
||||||
#fi
|
#fi
|
||||||
rm -r tmpk.$paketad
|
rm -r tmpk.$paketad
|
||||||
if [ -f /etc/ld.so.conf ];then
|
if [ -f /tools/sbin/ldconfig ];then
|
||||||
ldconfig
|
/tools/sbin/ldconfig
|
||||||
|
else
|
||||||
|
/sbin/ldconfig
|
||||||
fi
|
fi
|
||||||
ryaz 34 $paketad" paketi kuruldu."
|
ryaz 34 $paketad" paketi kuruldu."
|
||||||
}
|
}
|
||||||
|
@ -88,8 +90,10 @@ icerik_ekle2(){
|
||||||
# rm $kokdizin/.README
|
# rm $kokdizin/.README
|
||||||
#fi
|
#fi
|
||||||
rm -r tmpk.$paketad
|
rm -r tmpk.$paketad
|
||||||
if [ -f /etc/ld.so.conf ];then
|
if [ -f /tools/sbin/ldconfig ];then
|
||||||
ldconfig
|
/tools/sbin/ldconfig
|
||||||
|
else
|
||||||
|
/sbin/ldconfig
|
||||||
fi
|
fi
|
||||||
ryaz 34 $paketad" paketi kuruldu."
|
ryaz 34 $paketad" paketi kuruldu."
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,7 @@ ikinci_ayarlar(){
|
||||||
generate_milis_version
|
generate_milis_version
|
||||||
cp $ANADIZIN/ayarlar/mpsd.conf $LFS/etc/
|
cp $ANADIZIN/ayarlar/mpsd.conf $LFS/etc/
|
||||||
cp $ANADIZIN/ayarlar/onmpsd.conf $LFS/etc/
|
cp $ANADIZIN/ayarlar/onmpsd.conf $LFS/etc/
|
||||||
|
cp $ANADIZIN/ayarlar/ld.so.conf $LFS/tools/etc/
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_milis_version() {
|
generate_milis_version() {
|
||||||
|
|
|
@ -13,7 +13,7 @@ cd build
|
||||||
|
|
||||||
../configure \
|
../configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--host=$LFS_TARGET \
|
--host=$LFS_TGT \
|
||||||
--build=$(../scripts/config.guess) \
|
--build=$(../scripts/config.guess) \
|
||||||
--disable-profile \
|
--disable-profile \
|
||||||
--enable-kernel=2.6.32 \
|
--enable-kernel=2.6.32 \
|
||||||
|
@ -30,7 +30,7 @@ rm -rf /tools/share/info/dir
|
||||||
make install
|
make install
|
||||||
|
|
||||||
echo 'main(){}' > dummy.c
|
echo 'main(){}' > dummy.c
|
||||||
$LFS_TARGET-gcc dummy.c
|
$LFS_TGT-gcc dummy.c
|
||||||
echo $(readelf -l a.out | grep ': /tools')
|
echo $(readelf -l a.out | grep ': /tools')
|
||||||
rm -v dummy.c a.out
|
rm -v dummy.c a.out
|
||||||
}
|
}
|
|
@ -12,8 +12,6 @@ build() {
|
||||||
# Vérifier si necessaire de faire les verifs du bon fonctionnement de
|
# Vérifier si necessaire de faire les verifs du bon fonctionnement de
|
||||||
# glibc et du linker
|
# glibc et du linker
|
||||||
if [ -L /bin/pwd ];then
|
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/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/$(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
|
mv -v /tools/bin/ld-new /tools/bin/ld
|
||||||
|
|
Loading…
Reference in New Issue