dnsmasq: added runit service.
This commit is contained in:
parent
22654c1740
commit
32ee9349f2
2 changed files with 11 additions and 3 deletions
2
srcpkgs/dnsmasq/files/dnsmasq/run
Normal file
2
srcpkgs/dnsmasq/files/dnsmasq/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec dnsmasq -k --enable-dbus -u dnsmasq -g dnsmasq 2>&1
|
|
@ -1,11 +1,13 @@
|
|||
# Template file for 'dnsmasq'
|
||||
pkgname=dnsmasq
|
||||
version=2.72
|
||||
revision=1
|
||||
revision=2
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="dbus-devel libcap-devel libidn-devel"
|
||||
conf_files="/etc/dnsmasq.conf"
|
||||
build_options="systemd"
|
||||
system_accounts="dnsmasq"
|
||||
dnsmasq_homedir="/var/chroot"
|
||||
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
|
@ -20,7 +22,11 @@ do_build() {
|
|||
do_install() {
|
||||
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||
|
||||
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
|
||||
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system
|
||||
vsv dnsmasq
|
||||
vconf dnsmasq.conf.example dnsmasq.conf
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue