mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 17:33:03 +02:00
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'
|
# 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue