Added packages that were not VC'ed yet.

This commit is contained in:
Francisco Pina Martins 2014-12-06 22:16:10 +00:00
commit 33e3bb1cb6
5 changed files with 157 additions and 0 deletions

28
.SRCINFO Normal file
View file

@ -0,0 +1,28 @@
pkgbase = eee-control
pkgdesc = A utility for the EeePC family which allows the user to modify the FSB, toggle hardware on and off and more.
pkgver = 0.9.7.2
pkgrel = 2
url = http://launchpad.net/eee-control/
arch = i686
arch = x86_64
license = BSDL
makedepends = bzr
depends = python2
depends = dbus-python
depends = gconf
depends = python-wnck
depends = pygtk
depends = python-notify
depends = acpid
depends = consolekit
depends = python2-gconf
backup = etc/eee-control.conf
source = eee-control-daemon.rc
source = eee-control-daemon.conf.diff
source = eee-control-daemon.diff
md5sums = f66a56858f0e9ee4b274c55df5fcf7fc
md5sums = 9a03658a5c1d358fc4d0a12fd95305ea
md5sums = b22072d36fb4febae53698d841115112
pkgname = eee-control

63
PKGBUILD Normal file
View file

@ -0,0 +1,63 @@
# Maintainer: Stunts <f.pinamartins@gmail.com>
# Contributor: dieghen89 <dieghen89@gmail.com>
pkgname=eee-control
pkgver=0.9.7.2
pkgrel=2
pkgdesc="A utility for the EeePC family which allows the user to modify the FSB, toggle hardware on and off and more."
arch=('i686' 'x86_64')
url="http://launchpad.net/eee-control/"
license=('BSDL')
backup=('etc/eee-control.conf')
depends=('python2' 'dbus-python' 'gconf' 'python-wnck' 'pygtk' 'python-notify' 'acpid' 'consolekit' 'python2-gconf')
makedepends=('bzr')
source=(eee-control-daemon.rc
eee-control-daemon.conf.diff
eee-control-daemon.diff)
_bzrtrunk="lp:eee-control"
_bzrmod="eee-control"
build() {
echo $startdir
cd "${srcdir}"
msg "Connecting to the server...."
if [ -d ${_bzrmod} ]; then
bzr up ${_bzrmod}
msg "The local files are updated."
else
bzr co ${_bzrtrunk} ${_bzrmod}
fi
msg "BZR checkout done or server timeout"
msg "Starting make..."
rm -rf "${_bzrmod}-build"
cp -r "${_bzrmod}" "${_bzrmod}-build"
cd "${_bzrmod}-build"
python2 setup.py install --prefix=$pkgdir/usr
# Some patches for compatibility in arch
cd $pkgdir
patch -Np1 < $srcdir/../eee-control-daemon.diff
patch -Np1 < $srcdir/../eee-control-daemon.conf.diff
cd $srcdir
# Now python 2.7 is called python2 (not needed when building from source)
#for i in eee-control-daemon eee-control-tray ; do
#sed -i -e "s|/usr/bin/python|/usr/bin/python2|g" $pkgdir/usr/bin/$i
#done
#Remove some conflicting lines
sed -i '329d' $pkgdir/usr/lib/python2.7/site-packages/EeeControl/tray.py
sed -i '329d' $pkgdir/usr/lib/python2.7/site-packages/EeeControl/tray.py
install -D -m 755 $pkgdir/usr/share/eee-control/eee-control.conf $pkgdir/etc/eee-control.conf
install -D -m 755 $startdir/eee-control-daemon.rc $pkgdir/etc/rc.d/eee-control-daemon
}
md5sums=('f66a56858f0e9ee4b274c55df5fcf7fc'
'9a03658a5c1d358fc4d0a12fd95305ea'
'b22072d36fb4febae53698d841115112')

View file

@ -0,0 +1,16 @@
*** a/etc/dbus-1/system.d/eee-control-daemon.conf Sat Apr 25 17:37:21 2009
--- b/etc/dbus-1/system.d/eee-control-daemon.conf Mon Apr 27 22:26:25 2009
***************
*** 11,21 ****
<allow send_destination="org.eee.Eee"/>
<allow send_interface="org.eee.Eee"/>
</policy>
- <!-- Debian still needs group-based permissions -->
- <policy group="powerdev">
- <allow send_destination="org.eee.Eee"/>
- <allow send_interface="org.eee.Eee"/>
- </policy>
<policy context="default">
<deny own="org.eee.Eee"/>
<deny send_destination="org.eee.Eee"/>
--- 11,16 ----

11
eee-control-daemon.diff Normal file
View file

@ -0,0 +1,11 @@
--- a/usr/bin/eee-control-daemon 2011-05-12 18:29:18.000000000 +0100
+++ b/usr/bin/eee-control-daemon 2011-07-31 22:19:12.255166646 +0100
@@ -84,6 +84,8 @@
brn_path = os.path.join(acpi_base, "brn")
elif os.path.exists("/sys/class/backlight/eeepc/brightness"):
brn_path = "/sys/class/backlight/eeepc/brightness"
+ elif os.path.exists("/sys/class/backlight/acpi_video0/brightness"):
+ brn_path = "/sys/class/backlight/acpi_video0/brightness"
elif os.path.exists("/sys/class/backlight/psblvds/brightness"):
brn_path = "/sys/class/backlight/psblvds/brightness"
elif os.path.exists(os.path.join(acpi_base, "backlight/eeepc/brightness")):

39
eee-control-daemon.rc Executable file
View file

@ -0,0 +1,39 @@
#! /bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`cat /var/run/eee-control-daemon.pid 2>/dev/null`
case "$1" in
start)
stat_busy "Starting Eee Control Daemon"
[ -z "$PID" ] && /usr/bin/eee-control-daemon
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon eee-control-daemon
stat_done
fi
;;
stop)
stat_busy "Stopping Eee Control Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon eee-control-daemon
rm -f /var/run/eee-control-daemon.pid
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0