From 33e3bb1cb61fd7bd85e08f62482fe48345af8bfd Mon Sep 17 00:00:00 2001 From: Francisco Pina Martins Date: Sat, 6 Dec 2014 22:16:10 +0000 Subject: [PATCH] Added packages that were not VC'ed yet. --- .SRCINFO | 28 ++++++++++++++++ PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++ eee-control-daemon.conf.diff | 16 +++++++++ eee-control-daemon.diff | 11 +++++++ eee-control-daemon.rc | 39 ++++++++++++++++++++++ 5 files changed, 157 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 eee-control-daemon.conf.diff create mode 100644 eee-control-daemon.diff create mode 100755 eee-control-daemon.rc diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fac11df3dc8a --- /dev/null +++ b/.SRCINFO @@ -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 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..535ab646f7e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Stunts +# Contributor: dieghen89 + +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') diff --git a/eee-control-daemon.conf.diff b/eee-control-daemon.conf.diff new file mode 100644 index 000000000000..107d7ecdcc0b --- /dev/null +++ b/eee-control-daemon.conf.diff @@ -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 **** + + + +- +- +- +- +- + + + +--- 11,16 ---- diff --git a/eee-control-daemon.diff b/eee-control-daemon.diff new file mode 100644 index 000000000000..9462437b80b0 --- /dev/null +++ b/eee-control-daemon.diff @@ -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")): diff --git a/eee-control-daemon.rc b/eee-control-daemon.rc new file mode 100755 index 000000000000..7c05fa5c57f9 --- /dev/null +++ b/eee-control-daemon.rc @@ -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