This commit is contained in:
milisman 2016-05-01 01:26:55 +00:00
parent ea9ccf8a52
commit 32d295d93b
2 changed files with 20 additions and 4 deletions

20
bin/mps
View File

@ -1,10 +1,13 @@
#!/bin/bash #!/bin/bash
. /etc/mpsd.conf . /etc/mpsd.conf
. /etc/mps.conf
. /root/bin/fonks.sh . /root/bin/fonks.sh
versiyon="0.4" versiyon="0.4"
iletisim="milisarge@gmail.com" iletisim="milisarge@gmail.com"
paketdepo="/depo/paketler/" paketdepo="/depo/paketler/"
sunucu="192.168.1.66:8000/" if [ -z ${sunucu+:} ]; then
sunucu="192.168.1.66:8000/"
fi
#sunucu="http://milis.gungre.ch/packages/" #sunucu="http://milis.gungre.ch/packages/"
git_sunucu="https://github.com/milisarge/malfs-milis" git_sunucu="https://github.com/milisarge/malfs-milis"
ikaynak="" ikaynak=""
@ -16,9 +19,15 @@ VT="/var/lib/pkg/DB"
TARIHCE_DIZIN="/var/lib/pkg/tarihce" TARIHCE_DIZIN="/var/lib/pkg/tarihce"
LOGDIZIN="/var/log/mps" LOGDIZIN="/var/log/mps"
tekrarkur="hayir" tekrarkur="hayir"
lokal="tr" if [ -z ${lokal+:} ]; then
docsil="evet" lokal="tr"
yerelsil="evet" fi
if [ -z ${docsil+:} ]; then
docsil="evet"
fi
if [ -z ${yerelsil+:} ]; then
yerelsil="evet"
fi
icerik_ekle(){ icerik_ekle(){
@ -648,6 +657,9 @@ ayarlar() {
derleme_listbilgi "$2";; derleme_listbilgi "$2";;
-b|--pkbl) -b|--pkbl)
paket_bilgi "$2" ;; paket_bilgi "$2" ;;
#sunucu bilgisi alma
-sun|--sunucu)
ryaz 32 $sunucu ;;
-bb|--pkbb) -bb|--pkbb)
bagimli_bilgi "$2" | column -t;; bagimli_bilgi "$2" | column -t;;
-tb|--pktb) -tb|--pktb)

4
rootfs/etc/mps.conf Normal file
View File

@ -0,0 +1,4 @@
sunucu="http://milis.gungre.ch/packages/"
#lokal="tr"
#docsil="evet"
#yerelsil="evet"