malfs mekanizma guncelleme

This commit is contained in:
shamil 2016-03-09 02:57:13 +02:00
parent 0b95dd5d2d
commit 54c8f2eb47
3 changed files with 64 additions and 4 deletions

60
bin/mps
View File

@ -12,6 +12,7 @@ dokunulmaz="/etc/dokunulmaz"
talimatname_dizin="/root/talimatname"
kokdizin="/"
VT="/var/lib/pkg/DB"
TARIHCE_DIZIN="/var/lib/pkg/tarihce"
icerik_ekle(){
@ -279,6 +280,47 @@ kaynakdizin_kontrol(){
fi
}
tarihce_dkontrol(){
if [ ! -d $TARIHCE_DIZIN ];then
mkdir $TARIHCE_DIZIN
fi
}
tarihce_liste(){
tarihce_dkontrol
ls $TARIHCE_DIZIN/
}
tarihce_yap(){
tarihce_dkontrol
zaman=`date +%m-%d-%y.%H%M%S`
bsdtar -P -r -f $TARIHCE_DIZIN/"$zaman"-pkvt.tar $VT
lzip -9 $TARIHCE_DIZIN/"$zaman"-pkvt.tar
}
tarihce_yukle(){
tarihce_dkontrol
if [ -f $TARIHCE_DIZIN/"$1" ];then
rm -f $TARIHCE_DIZIN/"$1"
else
ryaz 31 "ilgili tarihce dosyası bulunamadı!"
fi
}
tarihce_sil(){
tarihce_dkontrol
if [ -f $TARIHCE_DIZIN/"$1" ];then
rm -f $TARIHCE_DIZIN/"$1"
else
ryaz 31 "ilgili tarihce dosyası bulunamadı!"
fi
}
log_tutma(){
echo "$(date +'%F %T') - $1 - paket" >> test.log
}
git_guncelle() {
kaynakdizin_kontrol
cd $DERLEME_KAYNAKDIZIN
@ -420,6 +462,24 @@ ayarlar() {
fi
ayar_dosyasi="$2"
shift ;;
-tro)
tarihce_yap ;;
-try)
if [ ! "$2" ]; then
ryaz 31 "tarihce dosyasi eksik $1"
exit 1
fi
tarihce_yukle "$2"
shift ;;
-trl)
tarihce_liste ;;
-trs)
if [ ! "$2" ]; then
ryaz 31 "parametre eksik $1"
exit 1
fi
tarihce_sil "$2"
shift ;;
-v)
ryaz 33 "$betikad $versiyon"
exit 0 ;;

View File

@ -55,12 +55,12 @@ check_pkgfile() {
exit $E_TALIMAT
fi
if [ "${version}" == "" ]; then
error "Variable 'version' not initiated or not found in $PKGMK_PKGFILE."
error "'versiyon' degeri $PKGMK_PKGFILE dosyası içinde yok veya tanımlı degil."
exit $E_TALIMAT
fi
if [ "$SURUM_YOKSAY" = "yok" ]; then
if [ "${release}" == "" ]; then
error "Variable 'release' not initiated or not found in $PKGMK_PKGFILE."
error " 'release' degeri $PKGMK_PKGFILE dosyası içinde yok veya tanımlı degil."
exit $E_TALIMAT
fi
fi

View File

@ -7,8 +7,8 @@ http://www.linuxfromscratch.org/patches/lfs/development/bash-4.3.30-upstream_fix
http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2
http://www.linuxfromscratch.org/patches/lfs/development/bc-1.06.95-memory_leak-1.patch
http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2
http://www.linuxfromscratch.org/patches/lfs/development/binutils-2.26-upstream_fix-1.patch
http://www.linuxfromscratch.org/patches/lfs/development/binutils-2.26-upstream_fix-2.patch
http://www.linuxfromscratch.org/patches/downloads/binutils/binutils-2.26-upstream_fix-1.patch
http://www.linuxfromscratch.org/patches/downloads/binutils/binutils-2.26-upstream_fix-2.patch
http://downloads.nutyx.org/current/sources/binutils-2.26-upstream_fix-2.patch
http://www.linuxfromscratch.org/patches/lfs/7.7/bzip2-1.0.6-install_docs-1.patch
http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz