From patchwork Mon Sep 22 06:09:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 391793 X-Patchwork-Delegate: kiho@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 42DDB14017D for ; Mon, 22 Sep 2014 16:10:09 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 428C040023 for ; Mon, 22 Sep 2014 08:10:03 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id E9AAE3FF50 for ; Mon, 22 Sep 2014 08:09:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=3668; q=dns/txt; s=ironport2; t=1411366198; x=1442902198; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FrUK+6AKZo5Eu0+vXKnwz09Av3E2M8YhlvLxFifb1OY=; b=w8dpfBOMR22xr8xa2HZ1riaWKrfVW29lv2ztOZGoILd+B6AEWn5P6OU3 c0OdTK07ifSgR0QHE7eUaNDdVcUXEG/wOYOllq+WLgX3nO40OhnDCV8lJ fQxdo77gjm3cv59F/mb7qloxulEB2k09v9V9q7Y3//8SbiOSxx6Boxrno s=; X-IronPort-AV: E=Sophos;i="5.04,570,1406584800"; d="scan'208";a="1085052" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 22 Sep 2014 08:09:57 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Mon, 22 Sep 2014 08:09:57 +0200 Received: by localhost (Postfix, from userid 30019) id ED651682D1E; Mon, 22 Sep 2014 06:09:55 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 6/7] dnsmasq: New recipe Date: Mon, 22 Sep 2014 06:09:53 +0000 Message-ID: X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Kim Bøndergaard --- recipes/dnsmasq/dnsmasq.inc | 25 +++++++++++++++++++++++++ recipes/dnsmasq/dnsmasq_2.71.oe | 2 ++ recipes/dnsmasq/dnsmasq_2.71.oe.sig | 1 + recipes/dnsmasq/files/dnsmasq | 34 ++++++++++++++++++++++++++++++++++ recipes/dnsmasq/files/makefile.patch | 11 +++++++++++ 5 files changed, 73 insertions(+) create mode 100644 recipes/dnsmasq/dnsmasq.inc create mode 100644 recipes/dnsmasq/dnsmasq_2.71.oe create mode 100644 recipes/dnsmasq/dnsmasq_2.71.oe.sig create mode 100755 recipes/dnsmasq/files/dnsmasq create mode 100644 recipes/dnsmasq/files/makefile.patch diff --git a/recipes/dnsmasq/dnsmasq.inc b/recipes/dnsmasq/dnsmasq.inc new file mode 100644 index 0000000..a4ed159 --- /dev/null +++ b/recipes/dnsmasq/dnsmasq.inc @@ -0,0 +1,25 @@ +DESCRIPTION = "dnsmasq" +HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html" +LICENSE = "GPL-3" + +SRC_URI = "http://www.thekelleys.org.uk/${PN}/${PN}-${PV}.tar.gz" +SRC_URI += "file://dnsmasq" +SRC_URI += "file://makefile.patch" + +inherit c make sysvinit pkgconfig + +RECIPE_FLAGS += "dnsmasq_sysvinit_start" +DEFAULT_USE_dnsmasq_sysvinit_start = "97" +DEFAULT_USE_dnsmasq_sysvinit_stop = "0" +SYSVINIT_SCRIPT_dnsmasq = "dnsmasq" + +do_install[postfuncs] =+ " do_install_dnsmasq_extra" +do_install_dnsmasq_extra() { + install -d 755 ${D}${bindir} ${D}${sysconfdir}/init.d + + install -m 755 ${SRCDIR}/dnsmasq ${D}${sysconfdir}/init.d + #install -m 755 ${S}/src/dnsmasq ${D}${bindir}/ + install -m 755 ${S}/dnsmasq.conf.example ${D}${sysconfdir}/ +} + +FILES_${PN} += " ${sysconfdir} ${bindir}" diff --git a/recipes/dnsmasq/dnsmasq_2.71.oe b/recipes/dnsmasq/dnsmasq_2.71.oe new file mode 100644 index 0000000..8a5b07c --- /dev/null +++ b/recipes/dnsmasq/dnsmasq_2.71.oe @@ -0,0 +1,2 @@ +require dnsmasq.inc + diff --git a/recipes/dnsmasq/dnsmasq_2.71.oe.sig b/recipes/dnsmasq/dnsmasq_2.71.oe.sig new file mode 100644 index 0000000..2cc94f0 --- /dev/null +++ b/recipes/dnsmasq/dnsmasq_2.71.oe.sig @@ -0,0 +1 @@ +b0a39f66557c966629a0ed9282cd87df8f409004 dnsmasq-2.71.tar.gz diff --git a/recipes/dnsmasq/files/dnsmasq b/recipes/dnsmasq/files/dnsmasq new file mode 100755 index 0000000..4dbece2 --- /dev/null +++ b/recipes/dnsmasq/files/dnsmasq @@ -0,0 +1,34 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/dnsmasq +NAME=dnsmasq +DESC="Dnsmasq - DNS server" +OPTS="" + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop -x "$DAEMON" + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop -x "$DAEMON" + sleep 1 + start-stop-daemon --start -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/recipes/dnsmasq/files/makefile.patch b/recipes/dnsmasq/files/makefile.patch new file mode 100644 index 0000000..5b62741 --- /dev/null +++ b/recipes/dnsmasq/files/makefile.patch @@ -0,0 +1,11 @@ +--- dnsmasq-2.71/Makefile.orig 2014-09-09 22:19:14.705703992 +0200 ++++ dnsmasq-2.71/Makefile 2014-09-09 22:21:03.441706034 +0200 +@@ -18,7 +18,7 @@ + + # Variables you may well want to override. + +-PREFIX = /usr/local ++PREFIX = /usr + BINDIR = $(PREFIX)/sbin + MANDIR = $(PREFIX)/share/man + LOCALEDIR = $(PREFIX)/share/locale