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(){
bagimlist=`bagimli_bilgi "$1"`
bagimlist=`bagimlilar "$1"`
for bagim in $bagimlist;do
if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then
derleme_listyap "$bagim"
@ -123,12 +123,25 @@ derleme_listyap(){
fi
}
derleme_listbilgi(){
echo "yapim asamasında"
}
paket_derle_oto(){
for dpkt in `cat $1`;do
echo $dpkt "derleniyor...."
paket_derle $dpkt
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(){
local konum derleme_onay eh bagimd
@ -176,12 +189,31 @@ paket_derle(){
}
bagimli_bilgi(){
bagimlilar(){
local bagimd konum
konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
#echo $bagimd
echo `echo "$bagimd" | sed 's/,/ /g'`
if [ -n "$bagimd" ]; then
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(){
@ -254,6 +286,8 @@ ayarlar() {
paket_derle "$2" ;;
-odk|--pkodk)
paket_derle_oto "$2" ;;
-ok|--pkok)
paket_kur_oto "$2" ;;
-dly|--drly)
if [ -f derleme.liste ];then
mv derleme.liste derleme.liste.eski
@ -264,10 +298,12 @@ ayarlar() {
touch derleme.liste
touch genel.derleme.liste
derleme_listyap "$2" ;;
-dlb|--drlb)
derleme_listbilgi "$2" | column -t;;
-b|--pkbl)
paket_bilgi "$2" ;;
-bb|--pkbb)
bagimli_bilgi "$2" ;;
bagimli_bilgi "$2" | column -t;;
-G|--pvtg)
paketvt_guncelle ;;
-g|--pkgu)

View File

@ -1 +1,2 @@
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
unmount_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(){
bagimlist=`bagimli_bilgi "$1"`
bagimlist=`bagimlilar "$1"`
for bagim in $bagimlist;do
if [ "`cat derleme.liste | grep $bagim`" != "$bagim" ];then
derleme_listyap "$bagim"
@ -123,12 +123,25 @@ derleme_listyap(){
fi
}
derleme_listbilgi(){
echo "yapim asamasında"
}
paket_derle_oto(){
for dpkt in `cat $1`;do
echo $dpkt "derleniyor...."
paket_derle $dpkt
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(){
local konum derleme_onay eh bagimd
@ -176,12 +189,31 @@ paket_derle(){
}
bagimli_bilgi(){
bagimlilar(){
local bagimd konum
konum="`find "$talimatname_dizin" -name $1`"
bagimd=`cat $konum/talimat | grep "Depends" | cut -d':' -f2`
#echo $bagimd
echo `echo "$bagimd" | sed 's/,/ /g'`
if [ -n "$bagimd" ]; then
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(){
@ -254,6 +286,8 @@ ayarlar() {
paket_derle "$2" ;;
-odk|--pkodk)
paket_derle_oto "$2" ;;
-ok|--pkok)
paket_kur_oto "$2" ;;
-dly|--drly)
if [ -f derleme.liste ];then
mv derleme.liste derleme.liste.eski
@ -264,10 +298,12 @@ ayarlar() {
touch derleme.liste
touch genel.derleme.liste
derleme_listyap "$2" ;;
-dlb|--drlb)
derleme_listbilgi "$2" | column -t;;
-b|--pkbl)
paket_bilgi "$2" ;;
-bb|--pkbb)
bagimli_bilgi "$2" ;;
bagimli_bilgi "$2" | column -t;;
-G|--pvtg)
paketvt_guncelle ;;
-g|--pkgu)

View File

@ -18,5 +18,7 @@ build()
--docdir=/usr/share/doc/$name-$version
make
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
}

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
# 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
# Description: Lightweight panel/taskbar
# URL: http://tint2.googlecode.com
# Packager: Vitaly Sinilin, vs at kp4 dot ru
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Depends on: cmake imlib2 pango
name=tint2
version=0.12.2
release=1
source=(clock.patch)
version=0.11
release=2
source=(http://$name.googlecode.com/files/$name-$version.tar.bz2 \
add-power-now-support.patch)
build() {
git clone https://gitlab.com/o9000/tint2.git
cd $name
cd $name-$version
git checkout 0.12.2
patch -p0 -i $SRC/add-power-now-support.patch
patch -Np1 -i $SRC/clock.patch
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
-DENABLE_TINT2CONF=1
make
make DESTDIR=$PKG install
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_BATTERY=ON \
-DENABLE_EXAMPLES=OFF \
-DENABLE_TINT2CONF=OFF \
-DMANDIR=/usr/man \
-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
}