malfs mekanizma guncelleme

This commit is contained in:
shamil 2016-03-12 01:09:47 +02:00
parent 596e09409d
commit 234729ba19
7 changed files with 45 additions and 36 deletions

51
bin/mps
View File

@ -190,14 +190,20 @@ paket_derle_oto2(){
} }
paket_kur_oto(){ paket_kur_oto(){
local kpkt pkt local kpkt pkt pak
for kpkt in `cat $1`;do for kpkt in `cat $1`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do for pkt in `ls $kpkt* | cut -d'#' -f1`;do
mps -k "$pkt#"* pak=`ls "$pkt#"*`
mps -k "$pak"
done done
done done
} }
#otomatik derle kontrollu kur
paket_kur_oto2(){
mps -dly "$1" > /dev/null && mps -ok genel.derleme.liste
}
paket_sil_oto(){ paket_sil_oto(){
local spkt local spkt
for spkt in `cat $1`;do for spkt in `cat $1`;do
@ -280,6 +286,13 @@ bagimli_bilgi(){
} }
ters_bagimli(){
local ara
ara=" $1 "
sy=`grep -o "/" <<<"$talimatname_dizin" | wc -l`
grep -rli $ara "$talimatname_dizin" | cut -d'/' -f`expr $sy + 3`
}
kurulu_kontrol(){ kurulu_kontrol(){
if [ -d "/var/lib/pkg/DB/$1" ];then if [ -d "/var/lib/pkg/DB/$1" ];then
echo "kurulu" echo "kurulu"
@ -320,37 +333,49 @@ tarihce_yap(){
tarihce_yukle(){ tarihce_yukle(){
tarihce_dkontrol tarihce_dkontrol
local sil_onay local islem_onay cikis
sil_onay="h" sil_onay="h"
if [ -f $TARIHCE_DIZIN/"$1-pkvt.tar.lz" ];then if [ -f $TARIHCE_DIZIN/"$1-pkvt.tar.lz" ];then
bsdtar -p -o -C /tmp -xf $TARIHCE_DIZIN/"$1-pkvt.tar.lz" 2>/dev/null bsdtar -p -o -C /tmp -xf $TARIHCE_DIZIN/"$1-pkvt.tar.lz" 2>/dev/null
ls /tmp/var/lib/pkg/DB/ > temel.pkvt ls /tmp/var/lib/pkg/DB/ > hedef.pkvt
ls /var/lib/pkg/DB/ > simdiki.pkvt ls /var/lib/pkg/DB/ > simdiki.pkvt
grep -vf temel.pkvt simdiki.pkvt > sil.liste grep -vf hedef.pkvt simdiki.pkvt > sil.liste
rm temel.pkvt simdiki.pkvt grep -vf simdiki.pkvt hedef.pkvt > kur.liste
rm hedef.pkvt simdiki.pkvt
rm -r /tmp/var rm -r /tmp/var
cikis=""
if [ -s sil.liste ];then if [ -s sil.liste ];then
ryaz 32 "silinecekler" ryaz 32 "silinecekler"
ryaz 32 "------------" ryaz 32 "------------"
cat sil.liste cat sil.liste
else fi
ryaz 33 "sistem zaten temel durumda"
if [ -s kur.liste ];then
ryaz 32 "kurulacaklar"
ryaz 32 "------------"
cat kur.liste
fi
if [ ! -s sil.liste ] && [ ! -s kur.liste ];then
ryaz 32 "sistem zaten hedef durumda!"
exit 1 exit 1
fi fi
while true; do while true; do
ryaz 34 "otomatik geri dönüşüm başlasın mı?";read -p "e veya h-> " eh ryaz 34 "otomatik geri dönüşüm başlasın mı?";read -p "e veya h-> " eh
case $eh in case $eh in
[Ee]* ) sil_onay="e"; break;; [Ee]* ) islem_onay="e"; break;;
[Hh]* ) break;; [Hh]* ) break;;
* ) echo "e veya h";; * ) echo "e veya h";;
esac esac
done done
if [ "$sil_onay" = "e" ];then if [ "$islem_onay" = "e" ];then
mps -os sil.liste mps -os sil.liste
mps -ok kur.liste
mv sil.liste silinenler.liste mv sil.liste silinenler.liste
mv kur.liste kurulanlar.liste
exit 1 exit 1
fi fi
mv sil.liste sil_iptal.liste mv sil.liste sil_iptal.liste
mv kur.liste kur_iptal.liste
else else
ryaz 31 "ilgili tarihce dosyası bulunamadı!" ryaz 31 "ilgili tarihce dosyası bulunamadı!"
fi fi
@ -467,6 +492,8 @@ ayarlar() {
paket_derle_oto2 "$2" ;; paket_derle_oto2 "$2" ;;
-ok|--pkok) -ok|--pkok)
paket_kur_oto "$2" ;; paket_kur_oto "$2" ;;
-ko|--pkko)
paket_kur_oto2 "$2" ;;
-os|--pkos) -os|--pkos)
if [ ! "$2" ]; then if [ ! "$2" ]; then
ryaz 31 "silme listesi yok" ryaz 31 "silme listesi yok"
@ -491,7 +518,9 @@ ayarlar() {
paket_bilgi "$2" ;; paket_bilgi "$2" ;;
-bb|--pkbb) -bb|--pkbb)
bagimli_bilgi "$2" | column -t;; bagimli_bilgi "$2" | column -t;;
-tb|--talb) -tb|--pktb)
ters_bagimli "$2" ;;
-talb|--talb)
talimat_bilgi "$2" | column -t;; talimat_bilgi "$2" | column -t;;
-Ggit|--gitgun) -Ggit|--gitgun)
git_guncelle ;; git_guncelle ;;

View File

@ -2,7 +2,7 @@
# URL: http://gpodder.org/ # URL: http://gpodder.org/
# Packager: Chris Farrell, timcowchip at gmail dot com # Packager: Chris Farrell, timcowchip at gmail dot com
# Maintainer: Chris Farrell, timcowchip at gmail dot com # Maintainer: Chris Farrell, timcowchip at gmail dot com
# Depends on: intltool, python, dbus-python, python-gtk, feedparser, mygpoclient # Depends on: intltool python dbus-python python-gtk feedparser mygpoclient
name=gpodder name=gpodder
version=3.9.0 version=3.9.0

View File

@ -2,7 +2,7 @@
# URL: http://pcmanfm.sourceforge.net/ # URL: http://pcmanfm.sourceforge.net/
# Maintainer: git.lxde.org/gitweb/?p=debian/libfm.git;a=summary # Maintainer: git.lxde.org/gitweb/?p=debian/libfm.git;a=summary
# Packager: geantbrun at gmail dot com # Packager: geantbrun at gmail dot com
# Depends on: gtk2,gobject-introspection,python-gtk # Depends on: gtk2 gobject-introspection python-gtk
name=keybinder2 name=keybinder2
version=0.3.0 version=0.3.0

View File

@ -1,5 +0,0 @@
. lib/lsb/init-functions
if [ ! -z "`cards list|grep cards.lib\ `" ]; then
cards remove -a cards.lib
log_info_msg "${INFO}cards.lib${NORMAL} is removed\n"
fi

View File

@ -1,15 +0,0 @@
# Description: Library utilities to manage software packages on NuTyX distribution.
# URL: https://github.com/NuTyX/cards
# Maintainer: tnut at nutyx dot org
# Packager: tnut at nutyx dot org
name=libcards
version=1.99.7
release=1
source=(http://downloads.nutyx.org/files/cards-$version.tar.gz)
build () {
cd cards-$version
make libs
make DESTDIR=$PKG install-libs
}

View File

@ -1,7 +1,7 @@
# Description: LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org. # Description: LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org.
# URL: http://www.libreoffice.org # URL: http://www.libreoffice.org
# Packagers: pierre at nutyx dot org, tnut at nutyx dot org # Packagers: pierre at nutyx dot org, tnut at nutyx dot org
# Depends on: tar apache-ant,openldap,python3,cups,curl,libatomic-ops,gperf,gtk2,gtk3,perl-archive-zip,perl-xml-parser,boost,expat,gstreamer-plugins-base,gstreamer1-plugins-base,libgsf,librsvg,libxml2,libxslt,neon,nss,poppler,postgresql,redland,icu,hunspell,gsfonts,dejavu-ttf,hunspell,p7zip,neon,graphite2,npapi-sdk,clucene,serf,unixodbc # Depends on: tar apache-ant openldap python3 cups curl libatomic-ops gperf gtk2 gtk3 perl-archive-zip perl-xml-parser boost expat gstreamer-plugins-base gstreamer1-plugins-base libgsf librsvg libxml2 libxslt neon nss poppler postgresql redland icu hunspell gsfonts dejavu-ttf hunspell p7zip neon graphite2 npapi-sdk clucene serf unixodbc
PKGMK_IGNORE_UNPACK="yes" PKGMK_IGNORE_UNPACK="yes"

View File

@ -1,7 +1,7 @@
# Description: A Trivial Database similar to GDBM but allows simultaneous commits # Description: A Trivial Database similar to GDBM but allows simultaneous commits
# URL: http://tdb.samba.org/ # URL: http://tdb.samba.org/
# Packager: tnut at nutyx dot org # Packager: tnut at nutyx dot org
# Depends on: python,libxslt,docbook-xsl # Depends on: python libxslt docbook-xsl
name=tdb name=tdb