dnsmasq: added runit service.

This commit is contained in:
Juan RP 2014-10-27 18:06:48 +01:00
parent 22654c1740
commit 32ee9349f2
2 changed files with 11 additions and 3 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec dnsmasq -k --enable-dbus -u dnsmasq -g dnsmasq 2>&1

View file

@ -1,11 +1,13 @@
# Template file for 'dnsmasq' # Template file for 'dnsmasq'
pkgname=dnsmasq pkgname=dnsmasq
version=2.72 version=2.72
revision=1 revision=2
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="dbus-devel libcap-devel libidn-devel" makedepends="dbus-devel libcap-devel libidn-devel"
conf_files="/etc/dnsmasq.conf" conf_files="/etc/dnsmasq.conf"
build_options="systemd"
system_accounts="dnsmasq" system_accounts="dnsmasq"
dnsmasq_homedir="/var/chroot"
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server" short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"
@ -20,7 +22,11 @@ do_build() {
do_install() { do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install make PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf vsv dnsmasq
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system vconf dnsmasq.conf.example dnsmasq.conf
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system
fi
} }