dnsmasq: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 04:33:52 +02:00
parent 89f2fee091
commit 84e4b7b363
3 changed files with 3 additions and 19 deletions

View file

@ -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=""

View file

@ -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
}

View file

@ -1,6 +1,7 @@
# Template file for 'dnsmasq'
pkgname=dnsmasq
version=2.58
revision=1
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
build_style=custom-install
@ -19,12 +20,13 @@ long_desc="
system_accounts="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 dbus-libs
Add_dependency run libcap
Add_dependency run libidn
Add_dependency run dbus
Add_dependency build gettext
Add_dependency build dbus-devel
@ -42,8 +44,6 @@ do_install()
make PREFIX=/usr DESTDIR=${DESTDIR} install
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 dbus/dnsmasq.conf 644 etc/dbus-1/system.d
}