Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=27da6452840606c89155d7813486ce487e10ccf4

commit 27da6452840606c89155d7813486ce487e10ccf4
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Mon Sep 6 08:27:24 2010 +0200

frugalware-tweak-0.1.4.1-1-i686
*new package replace frugal-mono-tools

diff --git a/source/xapps-extra/frugalware-tweak/FrugalBuild 
b/source/xapps-extra/frugalware-tweak/FrugalBuild
new file mode 100644
index 0000000..7bf9927
--- /dev/null
+++ b/source/xapps-extra/frugalware-tweak/FrugalBuild
@@ -0,0 +1,89 @@
+# Compiling Time: 0.02 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+pkgname=frugalware-tweak
+pkgver=0.1.4.1
+pkgrel=1
+url="http://ftp.frugalware.org/pub/other/people/bouleetbil/frugal-tweak/";
+up2date="Flasttar $url/releases/"
+source=($url/releases/$pkgname-$pkgver.tar.gz rc.frugalware-tweak \
+       $url/releases/frugal-py-tweak-$pkgver.tar.gz)
+pkgdesc="Frugalware configuration utility"
+depends=('gtk2-sharp' 'notify-sharp' 'webkit-sharp>=0.3' 'vte-python')
+rodepends=('gtk-usermode')
+options=('scriptlet')
+groups=('xapps-extra')
+archs=('i686' 'x86_64' 'ppc')
+Finclude mono
+sha1sums=('a689af0bef83898e1bddb1bd4486ebfc2dfc7565' \
+          '4f9d611a47fab28224263dd1b891f28f756e8b64' \
+          '067815734a039e9113981f3a16dc5094084be3d5')
+
+replaces=('frugal-mono-tools')
+provides=('frugal-mono-tools')
+conflicts=('frugal-mono-tools')
+
+build() {
+       Fcd
+       Fmonoexport
+       Fmkdir usr/share/pixmaps
+       Fmkdir etc/xdg/autostart/
+       Fmkdir usr/share/applications/
+       Fbuild
+       #For start it with Xsession
+       Fcp $pkgname-$pkgver/frugal-mono-tools/frugal-tweak.desktop \
+               etc/xdg/autostart/frugal-tweak.desktop
+       Fcp $pkgname-$pkgver/frugal-mono-tools/fw.png 
usr/share/pixmaps/FrugalTools.png
+       #python terminal
+       Fcp frugal-py-tweak/PyUtils/PyVTE.py /usr/bin/PyFrugalVTE
+       #irc python client for join #frugalware
+       Fcp frugal-py-tweak/PyUtils/irc.py /usr/bin/PyFrugalIRC
+
+       #for can start it wit root user
+       _F_desktop_exec="sucontrolcenter"
+       _F_desktop_name="frugalware configuration"
+       _F_desktop_desc="Tools to configure Frugalware (root mode)"
+       _F_desktop_icon="FrugalTools.png"
+       _F_desktop_categories="Application;GTK;System;"
+       Fdesktop2
+
+       Fmkdir usr/share/apps/sucontrolcenter
+       Fmkdir etc/pam.d
+       Fmkdir etc/security/console.apps
+
+cat > $Fdestdir/usr/share/apps/sucontrolcenter/sucontrolcenter << "EOF"
+#!/bin/sh
+exec frugalware-tweak $@
+EOF
+
+       chmod +x $Fdestdir/usr/share/apps/sucontrolcenter/sucontrolcenter || 
Fdie
+
+cat > $Fdestdir/etc/pam.d/sucontrolcenter << "EOF"
+#%PAM-1.0
+auth        include     config-control-center
+account     include     config-control-center
+session     include     config-control-center
+EOF
+
+cat > $Fdestdir/etc/pam.d/config-control-center << "EOF"
+#%PAM-1.0
+auth           sufficient      pam_rootok.so
+auth           sufficient      pam_timestamp.so
+auth           include         system-auth
+account                required        pam_permit.so
+session                required        pam_permit.so
+session                optional        pam_xauth.so
+session                optional        pam_timestamp.so
+EOF
+
+cat >  $Fdestdir/etc/security/console.apps/sucontrolcenter << "EOF"
+USER=root
+PROGRAM=/usr/share/apps/sucontrolcenter/sucontrolcenter
+SESSION=true
+EOF
+
+       Fln /usr/bin/consolehelper /usr/bin/sucontrolcenter
+
+       Fmonocleanup
+       Frcd2
+}
diff --git a/source/xapps-extra/frugalware-tweak/rc.frugalware-tweak 
b/source/xapps-extra/frugalware-tweak/rc.frugalware-tweak
new file mode 100644
index 0000000..3b3fc59
--- /dev/null
+++ b/source/xapps-extra/frugalware-tweak/rc.frugalware-tweak
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# (c) 2010 bouleetbil <bouleet...@frogdev.info>
+# rc.frugal-mono-tools for Frugalware
+# distributed under GPL License
+
+# chkconfig: 2345 99 02
+# description: Daemon to for check update packages
+
+TEXTDOMAIN=frugalware-tweak
+TEXTDOMAINDIR=/lib/initscripts/messages
+source /lib/initscripts/functions
+daemon="Frugalware check update"
+
+actions=(start stop restart)
+
+rc_start()
+{
+
+       start_msg
+       if [ ! -f /var/run/ServiceMonoFrugal.exe.lock ]; then
+               exec mono-service2 -l:/var/run/ServiceMonoFrugal.exe.lock 
"/usr/lib/frugal-mono-tools/ServiceMonoFrugal.exe" &
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+
+rc_stop()
+{
+       stop_msg
+       if [ -f /var/run/ServiceMonoFrugal.exe.lock ] ;then
+               kill `cat /var/run/ServiceMonoFrugal.exe.lock`
+               rm /var/run/ServiceMonoFrugal.exe.lock > /dev/null
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+rc_exec $1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to