From 66bb2e2540ac8ff5676b06cd54fcde43942d52c0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 4 Dec 2009 07:05:13 +0100 Subject: [PATCH] Added dnsmasq-2.51 build template. --HG-- extra : convert_revision : da31a497c00030a5281a786c79229a81e3246581 --- srcpkgs/dnsmasq/files/dnsmasq.confd | 4 ++++ srcpkgs/dnsmasq/files/dnsmasq.rc | 12 ++++++++++ srcpkgs/dnsmasq/template | 34 +++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 srcpkgs/dnsmasq/files/dnsmasq.confd create mode 100644 srcpkgs/dnsmasq/files/dnsmasq.rc create mode 100644 srcpkgs/dnsmasq/template diff --git a/srcpkgs/dnsmasq/files/dnsmasq.confd b/srcpkgs/dnsmasq/files/dnsmasq.confd new file mode 100644 index 00000000000..47826dd5082 --- /dev/null +++ b/srcpkgs/dnsmasq/files/dnsmasq.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/dnsmasq: config file for /etc/init.d/dnsmasq + +# See the dnsmasq(8) man page for possible options to put here. +DNSMASQ_OPTS="" diff --git a/srcpkgs/dnsmasq/files/dnsmasq.rc b/srcpkgs/dnsmasq/files/dnsmasq.rc new file mode 100644 index 00000000000..5b6df9a6ea9 --- /dev/null +++ b/srcpkgs/dnsmasq/files/dnsmasq.rc @@ -0,0 +1,12 @@ +#!/sbin/runscript + +pidfile=/var/run/dnsmasq.pid +command=/usr/sbin/dnsmasq +command_args="${DNSMASQ_OPTS:--g nogroup -u nobody}" + +depend() +{ + provide dns + need localmount net + after bootmisc +} diff --git a/srcpkgs/dnsmasq/template b/srcpkgs/dnsmasq/template new file mode 100644 index 00000000000..ae0cc074d37 --- /dev/null +++ b/srcpkgs/dnsmasq/template @@ -0,0 +1,34 @@ +# Template file for 'dnsmasq' +pkgname=dnsmasq +version=2.51 +distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_makefile +make_install_args="PREFIX=/usr" +short_desc="Lightweight, easy to configure DNS forwarder and DHCP server" +maintainer="Juan RP " +checksum=08a7f95e1aa344be07681f514d992320b86932c5dc2f091ac6edd0599ff90622 +long_desc=" + 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. + The DHCP server integrates with the DNS server and allows machines with + DHCP-allocated addresses to appear in the DNS with names configured either in + each host or in a central configuration file. Dnsmasq supports static and + dynamic DHCP leases and BOOTP/TFTP/PXE for network booting of diskless machines." + +conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq" +openrc_services="dnsmasq default" + +Add_dependency full glibc +Add_dependency full libcap + +post_install() +{ + cd ${wrksrc} || return 1 + install -D -m644 dnsmasq.conf.example \ + ${DESTDIR}/etc/dnsmasq.conf || return 1 + install -D -m755 ${FILESDIR}/dnsmasq.rc \ + ${DESTDIR}/etc/init.d/dnsmasq || return 1 + install -D -m644 ${FILESDIR}/dnsmasq.confd \ + ${DESTDIR}/etc/conf.d/dnsmasq || return 1 +}