malfs mekanizma guncelleme

This commit is contained in:
shamil 2016-03-02 02:26:35 +02:00
parent 96ed660224
commit b965d9be64
9 changed files with 157 additions and 32 deletions

1
ayarlar/.xinitrc.openbox Normal file
View File

@ -0,0 +1 @@
exec openbox-session

46
bin/mps
View File

@ -99,7 +99,7 @@ paket_bilgi(){
} }
derleme_listyap(){ derleme_listyap(){
bagimlist=`bagimli_bilgi "$1"` bagimlist=`bagimlilar "$1"`
for bagim in $bagimlist;do for bagim in $bagimlist;do
if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then
derleme_listyap "$bagim" derleme_listyap "$bagim"
@ -123,6 +123,10 @@ derleme_listyap(){
fi fi
} }
derleme_listbilgi(){
echo "yapim asamasında"
}
paket_derle_oto(){ paket_derle_oto(){
for dpkt in `cat $1`;do for dpkt in `cat $1`;do
echo $dpkt "derleniyor...." echo $dpkt "derleniyor...."
@ -130,6 +134,15 @@ paket_derle_oto(){
done done
} }
paket_kur_oto(){
local kpkt pkt
for kpkt in `cat $1`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do
mps -k "$pkt#"*
done
done
}
paket_derle(){ paket_derle(){
local konum derleme_onay eh bagimd local konum derleme_onay eh bagimd
derleme_onay="h" derleme_onay="h"
@ -176,12 +189,31 @@ paket_derle(){
} }
bagimli_bilgi(){ bagimlilar(){
local bagimd konum local bagimd konum
konum="`find "$talimatname_dizin" -name $1`" konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2` bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
#echo $bagimd if [ -n "$bagimd" ]; then
echo `echo "$bagimd" | sed 's/,/ /g'` bagimd=`echo "$bagimd" | sed 's/,/ /g'`
#sıralı gösterme
echo `echo "$bagimd" | sed 's/,/ /g'`
fi
}
bagimli_bilgi(){
local bagimd konum bag
konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
if [ -n "$bagimd" ]; then
bagimd=`echo "$bagimd" | sed 's/,/ /g'`
#sıralı gösterme
#echo `echo "$bagimd" | sed 's/,/ /g'`
#kurulu kontrollu gosterim
for bag in $bagimd;do
echo $bag "`kurulu_kontrol $bag`"
done
fi
echo "$1" "`kurulu_kontrol $1`"
} }
kurulu_kontrol(){ kurulu_kontrol(){
@ -254,6 +286,8 @@ ayarlar() {
paket_derle "$2" ;; paket_derle "$2" ;;
-odk|--pkodk) -odk|--pkodk)
paket_derle_oto "$2" ;; paket_derle_oto "$2" ;;
-ok|--pkok)
paket_kur_oto "$2" ;;
-dly|--drly) -dly|--drly)
if [ -f derleme.liste ];then if [ -f derleme.liste ];then
mv derleme.liste derleme.liste.eski mv derleme.liste derleme.liste.eski
@ -264,10 +298,12 @@ ayarlar() {
touch derleme.liste touch derleme.liste
touch genel.derleme.liste touch genel.derleme.liste
derleme_listyap "$2" ;; derleme_listyap "$2" ;;
-dlb|--drlb)
derleme_listbilgi "$2" | column -t;;
-b|--pkbl) -b|--pkbl)
paket_bilgi "$2" ;; paket_bilgi "$2" ;;
-bb|--pkbb) -bb|--pkbb)
bagimli_bilgi "$2" ;; bagimli_bilgi "$2" | column -t;;
-G|--pvtg) -G|--pvtg)
paketvt_guncelle ;; paketvt_guncelle ;;
-g|--pkgu) -g|--pkgu)

View File

@ -1 +1,2 @@
cp /lib/ncurses/terminfo/x/xterm /usr/share/terminfo/x/ cp /lib/ncurses/terminfo/x/xterm /usr/share/terminfo/x/
echo "export TERM='xterm' " >> /root/.bashrc

View File

@ -1011,7 +1011,8 @@ chroot_gir(){
lfs_kontrol lfs_kontrol
unmount_islemi unmount_islemi
mount_islemi mount_islemi
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login +h #chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login +h
chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h
} }

View File

@ -99,7 +99,7 @@ paket_bilgi(){
} }
derleme_listyap(){ derleme_listyap(){
bagimlist=`bagimli_bilgi "$1"` bagimlist=`bagimlilar "$1"`
for bagim in $bagimlist;do for bagim in $bagimlist;do
if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then
derleme_listyap "$bagim" derleme_listyap "$bagim"
@ -123,6 +123,10 @@ derleme_listyap(){
fi fi
} }
derleme_listbilgi(){
echo "yapim asamasında"
}
paket_derle_oto(){ paket_derle_oto(){
for dpkt in `cat $1`;do for dpkt in `cat $1`;do
echo $dpkt "derleniyor...." echo $dpkt "derleniyor...."
@ -130,6 +134,15 @@ paket_derle_oto(){
done done
} }
paket_kur_oto(){
local kpkt pkt
for kpkt in `cat $1`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do
mps -k "$pkt#"*
done
done
}
paket_derle(){ paket_derle(){
local konum derleme_onay eh bagimd local konum derleme_onay eh bagimd
derleme_onay="h" derleme_onay="h"
@ -176,12 +189,31 @@ paket_derle(){
} }
bagimli_bilgi(){ bagimlilar(){
local bagimd konum local bagimd konum
konum="`find "$talimatname_dizin" -name $1`" konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2` bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
#echo $bagimd if [ -n "$bagimd" ]; then
echo `echo "$bagimd" | sed 's/,/ /g'` bagimd=`echo "$bagimd" | sed 's/,/ /g'`
#sıralı gösterme
echo `echo "$bagimd" | sed 's/,/ /g'`
fi
}
bagimli_bilgi(){
local bagimd konum bag
konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
if [ -n "$bagimd" ]; then
bagimd=`echo "$bagimd" | sed 's/,/ /g'`
#sıralı gösterme
#echo `echo "$bagimd" | sed 's/,/ /g'`
#kurulu kontrollu gosterim
for bag in $bagimd;do
echo $bag "`kurulu_kontrol $bag`"
done
fi
echo "$1" "`kurulu_kontrol $1`"
} }
kurulu_kontrol(){ kurulu_kontrol(){
@ -254,6 +286,8 @@ ayarlar() {
paket_derle "$2" ;; paket_derle "$2" ;;
-odk|--pkodk) -odk|--pkodk)
paket_derle_oto "$2" ;; paket_derle_oto "$2" ;;
-ok|--pkok)
paket_kur_oto "$2" ;;
-dly|--drly) -dly|--drly)
if [ -f derleme.liste ];then if [ -f derleme.liste ];then
mv derleme.liste derleme.liste.eski mv derleme.liste derleme.liste.eski
@ -264,10 +298,12 @@ ayarlar() {
touch derleme.liste touch derleme.liste
touch genel.derleme.liste touch genel.derleme.liste
derleme_listyap "$2" ;; derleme_listyap "$2" ;;
-dlb|--drlb)
derleme_listbilgi "$2" | column -t;;
-b|--pkbl) -b|--pkbl)
paket_bilgi "$2" ;; paket_bilgi "$2" ;;
-bb|--pkbb) -bb|--pkbb)
bagimli_bilgi "$2" ;; bagimli_bilgi "$2" | column -t;;
-G|--pvtg) -G|--pvtg)
paketvt_guncelle ;; paketvt_guncelle ;;
-g|--pkgu) -g|--pkgu)

View File

@ -18,5 +18,7 @@ build()
--docdir=/usr/share/doc/$name-$version --docdir=/usr/share/doc/$name-$version
make make
make DESTDIR=$PKG install make DESTDIR=$PKG install
cp /lib/ncurses/terminfo/x/xterm /usr/share/terminfo/x/
install -D -m644 ../openbox.xinitrc $PKG/etc/X11/dm/openbox.xinitrc install -D -m644 ../openbox.xinitrc $PKG/etc/X11/dm/openbox.xinitrc
} }

View File

@ -0,0 +1,19 @@
diff -rup ../tint2-0.11.orig/src/battery/battery.c ./src/battery/battery.c
--- ../tint2-0.11.orig/src/battery/battery.c 2010-12-02 23:56:11.313403140 +0100
+++ ./src/battery/battery.c 2010-12-02 23:57:22.266956142 +0100
@@ -184,8 +184,14 @@ void init_battery()
}
g_free(path2);
}
- if (path_energy_now && path_energy_full) {
+
+ path_current_now = g_build_filename(battery_dir, "power_now", NULL);
+ if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) {
+ g_free(path_current_now);
path_current_now = g_build_filename(battery_dir, "current_now", NULL);
+ }
+
+ if (path_energy_now && path_energy_full) {
path_status = g_build_filename(battery_dir, "status", NULL);
// check file

View File

@ -1,27 +1,29 @@
# Description: task bar for wm light # Description: Lightweight panel/taskbar
# URL: http://code.google.com/p/tint2/ # URL: http://tint2.googlecode.com
# Maintainer: Chris Farrell timcowchip at gmail dot com # Packager: Vitaly Sinilin, vs at kp4 dot ru
# Packager: geantbrun at gmail dot com, tnut at nutyx dot com, timcowchip at gmail dot com # Maintainer: Jose V Beneyto, sepen at crux dot nu
# Depends on: cmake gtk2 librsvg startup-notification xorg-libxrandr xorg-libxinerama xorg-libxdamage xorg-libxcomposite pango imlib2 cairo # Depends on: cmake imlib2 pango
name=tint2 name=tint2
version=0.12.2 version=0.11
release=1 release=2
source=(http://$name.googlecode.com/files/$name-$version.tar.bz2 \
source=(clock.patch) add-power-now-support.patch)
build() { build() {
git clone https://gitlab.com/o9000/tint2.git cd $name-$version
cd $name
git checkout 0.12.2 patch -p0 -i $SRC/add-power-now-support.patch
patch -Np1 -i $SRC/clock.patch cmake \
mkdir build -DCMAKE_INSTALL_PREFIX=/usr \
cd build -DENABLE_BATTERY=ON \
cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \ -DENABLE_EXAMPLES=OFF \
-DENABLE_TINT2CONF=1 -DENABLE_TINT2CONF=OFF \
make -DMANDIR=/usr/man \
make DESTDIR=$PKG install -DSYSCONFDIR=/usr/etc
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
} }

View File

@ -0,0 +1,27 @@
# Description: task bar for wm light
# URL: http://code.google.com/p/tint2/
# Maintainer: Chris Farrell timcowchip at gmail dot com
# Packager: geantbrun at gmail dot com, tnut at nutyx dot com, timcowchip at gmail dot com
# Depends on: cmake gtk2 librsvg startup-notification xorg-libxrandr xorg-libxinerama xorg-libxdamage xorg-libxcomposite pango imlib2 cairo
name=tint2
version=0.12.2
release=1
source=(clock.patch)
build() {
git clone https://gitlab.com/o9000/tint2.git
cd $name
git checkout 0.12.2
patch -Np1 -i $SRC/clock.patch
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
-DENABLE_TINT2CONF=1
make
make DESTDIR=$PKG install
}