dhcpcd: strict iface deps for dhcpcd@.service.
This commit is contained in:
parent
33cd2c597e
commit
a39e208011
|
@ -2,6 +2,8 @@
|
||||||
Description=Lightweight DHCP client daemon on %I
|
Description=Lightweight DHCP client daemon on %I
|
||||||
Wants=network.target
|
Wants=network.target
|
||||||
Before=network.target
|
Before=network.target
|
||||||
|
BindsTo=sys-subsystem-net-devices-%i.device
|
||||||
|
After=sys-subsystem-net-devices-%i.device
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/dhcpcd -q -B %I
|
ExecStart=/usr/sbin/dhcpcd -q -B %I
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'dhcpcd'
|
# Template file for 'dhcpcd'
|
||||||
pkgname=dhcpcd
|
pkgname=dhcpcd
|
||||||
version=5.6.2
|
version=5.6.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --rundir=/run"
|
configure_args="--prefix=/usr --libexecdir=/usr/lib
|
||||||
|
--sysconfdir=/etc --rundir=/run"
|
||||||
makedepends="ntp"
|
makedepends="ntp"
|
||||||
conf_files="/etc/dhcpcd.conf"
|
conf_files="/etc/dhcpcd.conf"
|
||||||
short_desc="RFC2131 compliant DHCP client"
|
short_desc="RFC2131 compliant DHCP client"
|
||||||
|
@ -20,10 +21,6 @@ long_desc="
|
||||||
computer to work on the attached networks without trouble and mostly without
|
computer to work on the attached networks without trouble and mostly without
|
||||||
configuration."
|
configuration."
|
||||||
|
|
||||||
pre_install() {
|
|
||||||
sed -i -e "s|/var/run/dhcpcd|/run/dhcpcd|g" dhcpcd-run-hooks.in
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
chmod 755 ${DESTDIR}/usr/sbin/dhcpcd
|
chmod 755 ${DESTDIR}/usr/sbin/dhcpcd
|
||||||
vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system
|
||||||
|
|
Loading…
Reference in New Issue