Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=bouleetbiltesting.git;a=commitdiff;h=aed57d3b1e137f4841300a284352038371a5753c
commit aed57d3b1e137f4841300a284352038371a5753c
Author: bouleetbil <[EMAIL PROTECTED]>
Date: Tue Oct 14 21:26:54 2008 +0200
lxnm-0.2.2-1-i686
*new package
diff --git a/source/apps-extra/lxnm/FrugalBuild
b/source/apps-extra/lxnm/FrugalBuild
new file mode 100644
index 0000000..f95b496
--- /dev/null
+++ b/source/apps-extra/lxnm/FrugalBuild
@@ -0,0 +1,23 @@
+# Compiling Time: 0.05 SBU
+# Maintainer: bouleetbil <[EMAIL PROTECTED]>
+
+pkgname=lxnm
+pkgver=0.2.2
+pkgrel=1
+pkgdesc="Network manager of the LXDE Desktop"
+depends=('dhcpcd' 'glib2')
+_F_sourceforge_dirname="lxde"
+Finclude sourceforge
+options=('scriptlet')
+groups=('apps-extra' 'lxde-desktop')
+archs=('i686')
+source=($source rc.lxnmd)
+sha1sums=('e4c8946ac46c9788e992cf131a5c92672558b622' \
+ 'f70430a7ef10c3ce7a98fc05906c9d0b6649ced3')
+
+build() {
+ Fbuild
+ Frcd2 lxnmd
+}
+
+# optimization OK
diff --git a/source/apps-extra/lxnm/lxnm.install
b/source/apps-extra/lxnm/lxnm.install
new file mode 100644
index 0000000..f2a75fd
--- /dev/null
+++ b/source/apps-extra/lxnm/lxnm.install
@@ -0,0 +1,18 @@
+# arg 1: the new package version
+post_install()
+{
+ chkconfig --add rc.lxnmd
+}
+
+# arg 1: the old package version
+pre_remove()
+{
+ chkconfig --del rc.lxnmd
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
diff --git a/source/apps-extra/lxnm/rc.lxnmd b/source/apps-extra/lxnm/rc.lxnmd
new file mode 100644
index 0000000..f993320
--- /dev/null
+++ b/source/apps-extra/lxnm/rc.lxnmd
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# (c) 2008 bouleetbil <[EMAIL PROTECTED]>
+# rc.lxnmd for FrugalWare
+# distributed under GPL License
+
+# chkconfig: 2345 95 05
+# description: Network manager for LXDE
+
+source /lib/initscripts/functions
+TEXTDOMAIN=lxnmd
+TEXTDOMAINDIR=/lib/initscripts/messages
+
+actions=(restart start status stop)
+daemon=$"lxnm daemon"
+
+pid="pidof lxnm 2> /dev/null"
+
+rc_start()
+{
+ start_msg
+ if [[ "$(eval $pid)" == "" ]] ; then
+ lxnm
+ ok $?
+ else
+ ok 999
+ fi
+}
+
+rc_stop()
+{
+ stop_msg
+ if [[ "$(eval $pid)" != "" ]] ; then
+ killall lxnm
+ rm -f /var/run/lxnm.pid
+ ok $?
+ else
+ ok 999
+ fi
+}
+
+rc_exec $1
+
+# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git