[Lunar-commits] r23149 - in moonbase/trunk/net: . dnsmasq dnsmasq/init.d

Dennis Veatch stumbles at lunar-linux.org
Mon Feb 5 17:12:26 CET 2007


Author: stumbles
Date: 2007-02-05 17:12:25 +0100 (Mon, 05 Feb 2007)
New Revision: 23149

Added:
   moonbase/trunk/net/dnsmasq/
   moonbase/trunk/net/dnsmasq/BUILD
   moonbase/trunk/net/dnsmasq/CONFLICTS
   moonbase/trunk/net/dnsmasq/DETAILS
   moonbase/trunk/net/dnsmasq/init.d/
   moonbase/trunk/net/dnsmasq/init.d/dnsmasq
Log:

Initial import. Been using this for about a month now and
has been no trouble. Not using it for anything terribly 
compilicated. Just on a bridged Dell GX1 and with static
IPs and it's ad blocking abilities.

The version (over 2.36) has some improvements in RFC-2855
DHCP-over-firewire and RFC-4390 DHCP-over-InfiniBand, 
some efficiency tweaks to the cache code for very large
/etc/hosts files and a few others.

Wasn't quite sure which init levels to use, had them set to
91 and 11, just the same decided to use same ones as maradns.



Added: moonbase/trunk/net/dnsmasq/BUILD
===================================================================
--- moonbase/trunk/net/dnsmasq/BUILD	                        (rev 0)
+++ moonbase/trunk/net/dnsmasq/BUILD	2007-02-05 16:12:25 UTC (rev 23149)
@@ -0,0 +1,15 @@
+(
+
+  sedit "s:/usr/local:/usr:" Makefile  &&
+
+  default_make
+
+  if [ -f /etc/rc.d/init.d/dnsmasq ] ; then
+    rm -f /etc/rc.d/init.d/dnsmasq
+  fi
+
+  if [ ! -f /etc/dnsmasq.conf ] ; then
+    cp $SOURCE_DIRECTORY/dnsmasq.conf.example /etc/dnsmasq.conf
+  fi
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/net/dnsmasq/CONFLICTS
===================================================================
--- moonbase/trunk/net/dnsmasq/CONFLICTS	                        (rev 0)
+++ moonbase/trunk/net/dnsmasq/CONFLICTS	2007-02-05 16:12:25 UTC (rev 23149)
@@ -0,0 +1,3 @@
+conflicts dhcp    &&
+conflicts bind    &&
+conflicts maradns

Added: moonbase/trunk/net/dnsmasq/DETAILS
===================================================================
--- moonbase/trunk/net/dnsmasq/DETAILS	                        (rev 0)
+++ moonbase/trunk/net/dnsmasq/DETAILS	2007-02-05 16:12:25 UTC (rev 23149)
@@ -0,0 +1,19 @@
+          MODULE=dnsmasq
+         VERSION=2.37
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://www.thekelleys.org.uk/$MODULE/
+      SOURCE_VFY=sha1:1543baf390c14e09c54ef33cd66264fd7661d31d
+        WEB_SITE=http://www.thekelleys.org.uk/
+         ENTERED=20070205
+         UPDATED=20070205
+           SHORT="easy to configure DNS forwarder and DHCP server"
+cat << EOF
+Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
+It is designed to provide DNS and, optionally, DHCP, to a small network.
+It can serve the names of local machines which are not in the global DNS.
+
+Dnsmasq is targeted at home networks using NAT and connected to the
+internet via a modem, cable-modem or ADSL connection but would be a
+good choice for any small network where low resource use and ease of
+configuration are important.
+EOF

Added: moonbase/trunk/net/dnsmasq/init.d/dnsmasq
===================================================================
--- moonbase/trunk/net/dnsmasq/init.d/dnsmasq	                        (rev 0)
+++ moonbase/trunk/net/dnsmasq/init.d/dnsmasq	2007-02-05 16:12:25 UTC (rev 23149)
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Start/stop dnsmasq
+#
+# chkconfig: 345 45 55
+# description: DNS forwarder and DHCP server
+# processname: dnsmasq
+# pidfile: /var/run/dnsmasq.pid
+# config: /etc/dnsmasq.conf
+
+start () {
+    echo -n "Starting dnsmasq: "
+    dnsmasq -C /etc/dnsmasq.conf > /dev/null 2>&1
+    echo -e "$RESULT_OK"   ||
+    echo -e "$RESULT_FAIL"
+
+}
+
+stop () {
+    echo  -e "Stopping dnsmasq: "
+    killall dnsmasq    &&
+    echo -e "$RESULT_OK"   ||
+    echo -e "$RESULT_FAIL"
+}
+
+restart () {
+    stop;
+    start;
+}
+
+usage () {
+    echo  "Usage: $0 {start|stop|restart}"
+}
+
+. /lib/lsb/init-functions



More information about the Lunar-commits mailing list