Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a04c1a4aa425a91c0d46b8d66ef70090fca9b0fb
commit a04c1a4aa425a91c0d46b8d66ef70090fca9b0fb Author: bouleetbil <bouleet...@frogdev.info> Date: Tue Sep 7 17:19:56 2010 +0000 dnsmasq-2.51-2-i686 *added rc status diff --git a/source/network-extra/dnsmasq/FrugalBuild b/source/network-extra/dnsmasq/FrugalBuild index c64e29d..c53f6d6 100644 --- a/source/network-extra/dnsmasq/FrugalBuild +++ b/source/network-extra/dnsmasq/FrugalBuild @@ -4,7 +4,7 @@ pkgname=dnsmasq pkgver=2.51 -pkgrel=1 +pkgrel=2 pkgdesc="Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server." url="http://thekelleys.org.uk/dnsmasq/doc.html" depends=() @@ -15,7 +15,7 @@ up2date="lynx -dump http://www.thekelleys.org.uk/dnsmasq |grep 'LATEST'|sed 's/ source=(http://thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz \ rc.dnsmasq dnsmasq.conf makefile.patch) sha1sums=('2f161b9bce87de6cfc18e2c84017753bdb0ef209' \ - '6d3cb198ff8aec2b5b7f1b51d4cb3cfd44c9d8fd' \ + 'f8d86e165c051623b4eebf5e15cb72d15f278ab0' \ 'fd09fa99f453cf81e905e2de4da2137e8c3be3d4' \ 'b1e390905416f9f055ed28d2e5bbef7cfc6f38eb') build() diff --git a/source/network-extra/dnsmasq/rc.dnsmasq b/source/network-extra/dnsmasq/rc.dnsmasq index 6b61cca..b7500c0 100644 --- a/source/network-extra/dnsmasq/rc.dnsmasq +++ b/source/network-extra/dnsmasq/rc.dnsmasq @@ -11,7 +11,7 @@ source /lib/initscripts/functions TEXTDOMAIN=dnsmasq TEXTDOMAINDIR=/lib/initscripts -actions=(restart start stop) +actions=(restart start stop status) daemon=$"Dnsmasq" pid="pidof dnsmasq 2> /dev/null" @@ -38,6 +38,15 @@ rc_stop() fi } +rc_status() +{ + msg "$daemon are" + if [[ "$eval $pid)" == "" ]] ; then + ok 997 + else + ok 998 + fi +} rc_exec $1 # vim: ft=sh _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git