dhcpcd: added a per device systemd service.
This commit is contained in:
parent
46f1e73628
commit
298c2f03d7
11
srcpkgs/dhcpcd/files/dhcpcd@.service
Normal file
11
srcpkgs/dhcpcd/files/dhcpcd@.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Lightweight DHCP client daemon on %I
|
||||||
|
Wants=network.target
|
||||||
|
Before=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/sbin/dhcpcd -q -B %I
|
||||||
|
ExecStop=/sbin/dhcpcd -k %I
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=multi-user.target.wants/dhcpcd@eth0.service
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'dhcpcd'
|
# Template file for 'dhcpcd'
|
||||||
pkgname=dhcpcd
|
pkgname=dhcpcd
|
||||||
version=5.2.12
|
version=5.2.12
|
||||||
revision=2
|
revision=3
|
||||||
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
|
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2"
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--libexecdir=/lib/dhcpcd"
|
configure_args="--libexecdir=/lib/dhcpcd"
|
||||||
@ -20,8 +20,8 @@ Add_dependency build ntp
|
|||||||
|
|
||||||
conf_files="/etc/dhcpcd.conf"
|
conf_files="/etc/dhcpcd.conf"
|
||||||
|
|
||||||
post_install()
|
post_install() {
|
||||||
{
|
|
||||||
chmod 755 ${DESTDIR}/sbin/dhcpcd
|
chmod 755 ${DESTDIR}/sbin/dhcpcd
|
||||||
vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system
|
vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system
|
||||||
|
vinstall ${FILESDIR}/dhcpcd@.service 644 lib/systemd/system
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user