Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9c49a1b0785d4178b135b5f92c7e34f9279fe0e3
commit 9c49a1b0785d4178b135b5f92c7e34f9279fe0e3 Author: Priyank <[EMAIL PROTECTED]> Date: Thu Nov 22 18:53:42 2007 +0530 fun-0.1.0-1-i686 * New package / Initial import * Closes #2403 diff --git a/source/xapps/fun/FrugalBuild b/source/xapps/fun/FrugalBuild new file mode 100644 index 0000000..2947876 --- /dev/null +++ b/source/xapps/fun/FrugalBuild @@ -0,0 +1,27 @@ +# Compiling Time: 0.05 SBU +# Maintainer: Priyank Gosalia <[EMAIL PROTECTED]> + +pkgname=fun +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Frugalware Update Notifier (FUN)" +url="http://ftp.frugalware.org/pub/other/fun" +rodepends=('gfpm>=1.0.4') +depends=('glib2' 'gtk+2' 'libglade' 'pacman-g2' 'frugalwareutils' 'dbus' 'dbus-glib') +makedepends=('pkgconfig' 'intltool') +groups=('xapps') +archs=('i686' 'x86_64') +_F_gnome_iconcache="y" +Finclude gnome-scriptlet +up2date="lynx -dump $url | Flasttar" +source=($url/$pkgname-$pkgver.tar.gz rc.fun) +signatures=(${source[0]}.asc '') + +build() +{ + Fbuild + Fbuild_gnome_scriptlet + Frcd2 +} + +# optimization OK diff --git a/source/xapps/fun/rc.fun b/source/xapps/fun/rc.fun new file mode 100644 index 0000000..2bb2bb6 --- /dev/null +++ b/source/xapps/fun/rc.fun @@ -0,0 +1,40 @@ +#!/bin/sh + +# (c) 2007 Priyank M. Gosalia <[EMAIL PROTECTED]> +# rc.fun for Frugalware +# distributed under GPL License + +# chkconfig: 2345 50 15 +# description: Frugalware Update Notifier (FUN) + +source /lib/initscripts/functions + +TEXTDOMAIN=fun +TEXTDOMAINDIR=/lib/initscripts/messages +actions=(restart start stop) +daemon=$"Frugalware Update Notifier daemon" +pid="pidof fund 2> /dev/null" + +rc_start() +{ + start_msg + if [ -z "$(eval $pid)" ]; then + /usr/sbin/fund --daemon > /dev/null + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ ! -z "$(eval $pid)" ]; then + killall fund + ok $? + else + ok 999 + fi +} + +rc_exec $1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
