Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kdetesting2.git;a=commitdiff;h=e1ec2c856eb58b33fc455ffb33a28a3ac0e12dbf

commit e1ec2c856eb58b33fc455ffb33a28a3ac0e12dbf
Author: Melko <lorddarthfe...@gmail.com>
Date:   Mon Jan 10 17:26:42 2011 +0100

jupiter-0.0.46-1-i686

* new package

[ mv: permission fix ]

diff --git a/source/xapps-extra/jupiter/01_jupiter 
b/source/xapps-extra/jupiter/01_jupiter
new file mode 100644
index 0000000..62d2ab2
--- /dev/null
+++ b/source/xapps-extra/jupiter/01_jupiter
@@ -0,0 +1,2 @@
+%jupiter ALL=NOPASSWD: /usr/lib/jupiter/scripts/bluetooth, 
/usr/lib/jupiter/scripts/camera, /usr/lib/jupiter/scripts/cpu-control, 
/usr/lib/jupiter/scripts/resolutions, /usr/lib/jupiter/scripts/rotate, 
/usr/lib/jupiter/scripts/touchpad, /usr/lib/jupiter/scripts/vga-out, 
/usr/lib/jupiter/scripts/wifi
+
diff --git a/source/xapps-extra/jupiter/FrugalBuild 
b/source/xapps-extra/jupiter/FrugalBuild
new file mode 100644
index 0000000..3798281
--- /dev/null
+++ b/source/xapps-extra/jupiter/FrugalBuild
@@ -0,0 +1,42 @@
+# Compiling Time: 0 SBU
+# Maintainer: none
+# Contributor: Melko <lorddarthfe...@gmail.com>
+
+pkgname=jupiter
+pkgver=0.0.46
+pkgrel=1
+pkgdesc="Simple, easy to use hardware and power management applet for all 
Linux laptops and netbooks"
+depends=('gtk2-sharp')
+groups=('xapps-extra')
+archs=('i686' 'x86_64')
+url="http://sourceforge.net/projects/jupiter/";
+Fpkgversep="_"
+install=jupiter.install
+up2date="Flasttar 
https://$pkgname.svn.sourceforge.net/svnroot/$pkgname/releases";
+source=(${up2date/Flasttar /}/${pkgname}_${pkgver}.tar.gz \
+       ${pkgname} \
+       01_$pkgname)
+sha1sums=('942ce0ddf6ac6fe181b79853f32469ef35db8aac' \
+          'c6a93948d41b473c4e731b40366ec111c09d004d' \
+          '6aa1a6e93343afe2c029df6f05fbea5c154d754c')
+
+build() {
+       Fcd $pkgname-$pkgver
+       ./bin/build.sh || Fdie
+       Fsed "Exec=.*" "Exec=/usr/bin/jupiter" 
usr/share/applications/$pkgname.desktop
+       Fsed '($JUPITER_PATH' '(sudo $JUPITER_PATH' 
usr/lib/jupiter/scripts/jupiter
+       Fcp $pkgname-$pkgver/usr
+       Fexe usr/bin/jupiter
+       Fmv usr/bin/jupiter.exe usr/lib/jupiter
+       Frm usr/src
+       Ffile {$pkgname-$pkgver,/etc}/pm/power.d/00-$pkgname-cpu
+       Fsed "Exec=.*" "Exec=/usr/bin/jupiter" xdg/autostart/$pkgname.desktop
+       Fsed "Exec=.*" "Exec=/usr/bin/jupiter restore" 
xdg/autostart/$pkgname-startup.desktop
+       Ffile {$pkgname-$pkgver,/etc}/xdg/autostart/$pkgname.desktop
+       Ffile {$pkgname-$pkgver,/etc}/xdg/autostart/$pkgname-startup.desktop
+       Finstall 440 /etc/sudoers.d/01_$pkgname
+       Fmkdir var/$pkgname
+       Fdirschown var/$pkgname root 300
+       Fdirschmod var/$pkgname 775
+       Ffileschown usr/lib/$pkgname root 300
+}
diff --git a/source/xapps-extra/jupiter/jupiter 
b/source/xapps-extra/jupiter/jupiter
new file mode 100644
index 0000000..ef07900
--- /dev/null
+++ b/source/xapps-extra/jupiter/jupiter
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ -z $1 ]; then
+       if [ "$XAUTHORITY" = "" -a -e $HOME/.Xauthority ]; then
+               XAUTHORITY=$HOME/.Xauthority /usr/bin/mono 
/usr/lib/jupiter/jupiter.exe
+       else
+               /usr/bin/mono /usr/lib/jupiter/jupiter.exe
+       fi
+elif [ "$1" = "restore" ]; then
+       if [ "$XAUTHORITY" = "" -a -e $HOME/.Xauthority ]; then
+               XAUTHORITY=$HOME/.Xauthority /usr/lib/jupiter/scripts/jupiter
+       else
+               /usr/lib/jupiter/scripts/jupiter
+       fi
+fi
diff --git a/source/xapps-extra/jupiter/jupiter.install 
b/source/xapps-extra/jupiter/jupiter.install
new file mode 100644
index 0000000..25c6e10
--- /dev/null
+++ b/source/xapps-extra/jupiter/jupiter.install
@@ -0,0 +1,31 @@
+post_install()
+{
+       echo "Adding Jupiter group"
+       getent group jupiter > /dev/null || /usr/sbin/groupadd -g 300 jupiter
+       echo "Done"
+
+       echo -n "Adding users to Jupiter group: "
+       for i in $(awk -F: '$6 ~ /\/home/ && $3 >= 1000 {print $1}' 
/etc/passwd);
+       do
+               echo -n $i" "
+               usermod -G jupiter -a $i 2>/dev/null
+       done
+
+       if [ -e "/etc/pm/sleep.d/00-jupiter-wifi" ]; then
+               rm -f /etc/pm/sleep.d/00-jupiter-wifi 2>/dev/null
+       fi
+}
+
+post_upgrade()
+{
+       post_install
+}
+
+post_remove()
+{
+       groupdel jupiter
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to