dnsmasq: added runit service.
This commit is contained in:
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'
|
# 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user