malfs mekanizma guncelleme

This commit is contained in:
root 2016-03-21 19:23:43 +02:00
parent e9048a4cab
commit 71b979db59
3 changed files with 18 additions and 21 deletions

View File

@ -48,10 +48,8 @@ icerik_ekle(){
# rm $kokdizin/.README # rm $kokdizin/.README
#fi #fi
rm -r tmpk.$paketad rm -r tmpk.$paketad
if [ -f /tools/sbin/ldconfig ];then if [ -f /etc/ld.so.conf ];then
/tools/sbin/ldconfig ldconfig
else
/sbin/ldconfig
fi fi
ryaz 34 $paketad" paketi kuruldu." ryaz 34 $paketad" paketi kuruldu."
} }

View File

@ -831,22 +831,22 @@ build_package() {
j=0 j=0
done done
#dil desteginin eklenmesi-geri kalanın temizlenmesi #dil desteginin eklenmesi-geri kalanın temizlenmesi
if [ ! "$PAKET_LOKAL" == "hepsi" ];then #if [ ! "$PAKET_LOKAL" == "hepsi" ];then
local lokaldizin # local lokaldizin
if [ -d usr/share/locale ];then # if [ -d usr/share/locale ];then
lokaldizin="usr/share/locale" # lokaldizin="usr/share/locale"
fi # fi
if [ -d opt/*/usr/share/locale ];then # if [ -d opt/*/usr/share/locale ];then
lokaldizin="opt/*/usr/share/locale" # lokaldizin="opt/*/usr/share/locale"
fi # fi
for DIR in `ls $lokaldizin` ; do # for DIR in `ls $lokaldizin` ; do
if [[ "$PAKET_LOKAL" == *"$DIR"* ]]; then # if [[ "$PAKET_LOKAL" == *"$DIR"* ]]; then
echo $DIR "dil paketi ekleniyor" # echo $DIR "dil paketi ekleniyor"
else # else
rm -rf $lokaldizin/$DIR # rm -rf $lokaldizin/$DIR
fi # fi
done # done
fi #fi
if [ "`ls|wc -l`" != "0" ]; then if [ "`ls|wc -l`" != "0" ]; then
bsdtar -r -f $PKGMK_PACKAGE_DIR/${name}#$version-${PKGMK_ARCH}.${PKT_UZANTISI} * bsdtar -r -f $PKGMK_PACKAGE_DIR/${name}#$version-${PKGMK_ARCH}.${PKT_UZANTISI} *

View File

@ -149,7 +149,6 @@ 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() {