Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=95de0cbd2684049671b929f29215e7c6f4f771a5

commit 95de0cbd2684049671b929f29215e7c6f4f771a5
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sat Feb 5 14:08:30 2011 +0100

wicd-1.7.0-2-i686

*enable service by default

diff --git a/source/xapps-extra/wicd/FrugalBuild 
b/source/xapps-extra/wicd/FrugalBuild
index 286ff34..d7d9f61 100644
--- a/source/xapps-extra/wicd/FrugalBuild
+++ b/source/xapps-extra/wicd/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=wicd
pkgver=1.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="A wired and wireless network manager for Linux"
depends=('dbus-python' 'pygtk' 'dhcp' 'dhcpcd' 'wireless_tools' 
'wpa_supplicant'\
'ethtool' 'python>=2.7' 'urwid' 'python-wpactrl' 'python-iwscan')
diff --git a/source/xapps-extra/wicd/wicd.install 
b/source/xapps-extra/wicd/wicd.install
new file mode 100644
index 0000000..4260aa4
--- /dev/null
+++ b/source/xapps-extra/wicd/wicd.install
@@ -0,0 +1,31 @@
+post_install()
+{
+       chkconfig --add rc.wicd
+       systemctl daemon-reload >/dev/null 2>&1
+       systemctl enable wicd.service >/dev/null 2>&1
+}
+
+post_upgrade()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+       systemctl try-restart wicd.service >/dev/null 2>&1
+}
+
+pre_remove()
+{
+       systemctl stop wicd.service >/dev/null 2>&1
+       systemctl disable wicd.service >/dev/null 2>&1
+       chkconfig --del rc.wicd
+}
+
+post_remove()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to