[Lunar-commits] <moonbase-other> dnsmasq: Initial import
Stefan Wold
ratler at lunar-linux.org
Sat Feb 2 18:12:33 CET 2013
commit 89f31e1f30e023ef273ee023625970b07993a74c
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 02 Feb 2013 09:12:33 -0800
URL: https://github.com/lunar-linux/moonbase-other/commit/89f31e1f30e023ef273ee023625970b07993a74c
dnsmasq: Initial import
---
net/dnsmasq/BUILD | +11/-0
net/dnsmasq/DETAILS | +13/-0
net/dnsmasq/systemd.d/dnsmasq.service | +15/-0
3 files changed, 39 insertions(+)
--- /dev/null
+++ b/net/dnsmasq/BUILD
@@ -0,0 +1,11 @@
+
+add_priv_user dnsmasq &&
+
+sedit '/^#ifdef DNSMASQ_COMPILE_OPTS/ i#define HAVE_DBUS' src/config.h &&
+make &&
+prepare_install &&
+make PREFIX=/usr BINDIR=/usr/bin install &&
+
+[ ! -f /etc/dbus-1/systemd/dnsmasq.conf ] && install -D -m0644 dbus/dnsmasq.conf /etc/dbus-1/system.d/dnsmasq.conf
+[ ! -f /etc/dnsmasq.conf ] && install -D -m0644 dnsmasq.conf.example /etc/dnsmasq.conf
+
--- /dev/null
+++ b/net/dnsmasq/DETAILS
@@ -0,0 +1,13 @@
+ MODULE=dnsmasq
+ VERSION=2.65
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE_URL=http://www.thekelleys.org.uk/dnsmasq/
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha256:f5ddf3111b4ec372d0e07bcc036bbe3a4c5a1a68b60c2a1018102a0099bc0740
+ WEB_SITE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
+ ENTERED=20130202
+ UPDATED=20130202
+ SHORT="Lightweight, easy to configure DNS forwarder and DHCP server"
+cat <<EOF
+Lightweight, easy to configure DNS forwarder and DHCP server.
+EOF
--- /dev/null
+++ b/net/dnsmasq/systemd.d/dnsmasq.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=A lightweight DHCP and caching DNS server
+After=network.target
+Documentation=man:dnsmasq(8)
+
+[Service]
+Type=dbus
+BusName=uk.org.thekelleys.dnsmasq
+ExecStartPre=/usr/bin/dnsmasq --test
+ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+Alias=dbus-uk.org.thekelleys.dnsmasq
More information about the Lunar-commits
mailing list