dnsmasq: switch to systemd, drop openrc support.
This commit is contained in:
parent
89f2fee091
commit
84e4b7b363
3 changed files with 3 additions and 19 deletions
|
@ -1,4 +0,0 @@
|
||||||
# /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=""
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/sbin/runscript
|
|
||||||
|
|
||||||
pidfile=/var/run/dnsmasq.pid
|
|
||||||
command=/usr/sbin/dnsmasq
|
|
||||||
command_args="${DNSMASQ_OPTS:---user=dnsmasq --pid-file=${pidfile}}"
|
|
||||||
|
|
||||||
depend()
|
|
||||||
{
|
|
||||||
provide dns
|
|
||||||
need localmount net
|
|
||||||
after bootmisc
|
|
||||||
}
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'dnsmasq'
|
# Template file for 'dnsmasq'
|
||||||
pkgname=dnsmasq
|
pkgname=dnsmasq
|
||||||
version=2.58
|
version=2.58
|
||||||
|
revision=1
|
||||||
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
||||||
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
@ -19,12 +20,13 @@ long_desc="
|
||||||
|
|
||||||
system_accounts="dnsmasq"
|
system_accounts="dnsmasq"
|
||||||
conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq"
|
conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq"
|
||||||
openrc_services="dnsmasq default false"
|
systemd_services="dnsmasq.service"
|
||||||
|
|
||||||
Add_dependency run glibc
|
Add_dependency run glibc
|
||||||
Add_dependency run dbus-libs
|
Add_dependency run dbus-libs
|
||||||
Add_dependency run libcap
|
Add_dependency run libcap
|
||||||
Add_dependency run libidn
|
Add_dependency run libidn
|
||||||
|
Add_dependency run dbus
|
||||||
|
|
||||||
Add_dependency build gettext
|
Add_dependency build gettext
|
||||||
Add_dependency build dbus-devel
|
Add_dependency build dbus-devel
|
||||||
|
@ -42,8 +44,6 @@ do_install()
|
||||||
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
|
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
|
||||||
vinstall ${FILESDIR}/dnsmasq.rc 755 etc/init.d dnsmasq
|
|
||||||
vinstall ${FILESDIR}/dnsmasq.confd 644 etc/conf.d dnsmasq
|
|
||||||
vinstall ${FILESDIR}/dnsmasq.service 644 lib/systemd/system
|
vinstall ${FILESDIR}/dnsmasq.service 644 lib/systemd/system
|
||||||
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
|
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue