dhcpcd: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 03:25:46 +02:00
parent 62aaf952d7
commit fcb23579d7
3 changed files with 12 additions and 26 deletions

View file

@ -1,23 +0,0 @@
#!/sbin/runscript
#
#
command=/sbin/dhcpcd
command_args=-q
pidfile=/var/run/dhcpcd.pid
depend()
{
provide net
need localmount
use logger
after bootmisc modules
before dns
}
stop_pre()
{
if yesno $RC_GOINGDOWN; then
: ${stopsig:=SIGKILL}
fi
}

View file

@ -0,0 +1,10 @@
[Unit]
Description=Lightweight DHCP client daemon
Wants=network.target
Before=network.target
[Service]
ExecStart=/sbin/dhcpcd -q -B
[Install]
WantedBy=multi-user.target

View file

@ -1,6 +1,7 @@
# Template file for 'dhcpcd'
pkgname=dhcpcd
version=5.2.12
revision=1
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
build_style=configure
configure_args="--libexecdir=/lib/dhcpcd"
@ -19,11 +20,9 @@ Add_dependency run glibc
Add_dependency build ntp
conf_files="/etc/dhcpcd.conf"
openrc_services="dhcpcd default false"
post_install()
{
chmod 755 ${DESTDIR}/sbin/dhcpcd
# Install the OpenRC service
install -D -m755 ${FILESDIR}/dhcpcd.rc ${DESTDIR}/etc/init.d/dhcpcd
vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system
}