diff --git a/srcpkgs/dhcpcd/files/dhcpcd@.service b/srcpkgs/dhcpcd/files/dhcpcd@.service index c20f496b425..ce978f80312 100644 --- a/srcpkgs/dhcpcd/files/dhcpcd@.service +++ b/srcpkgs/dhcpcd/files/dhcpcd@.service @@ -2,6 +2,8 @@ Description=Lightweight DHCP client daemon on %I Wants=network.target Before=network.target +BindsTo=sys-subsystem-net-devices-%i.device +After=sys-subsystem-net-devices-%i.device [Service] ExecStart=/usr/sbin/dhcpcd -q -B %I diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template index b8273a49b54..15758d857d0 100644 --- a/srcpkgs/dhcpcd/template +++ b/srcpkgs/dhcpcd/template @@ -1,9 +1,10 @@ # Template file for 'dhcpcd' pkgname=dhcpcd version=5.6.2 -revision=1 +revision=2 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" conf_files="/etc/dhcpcd.conf" short_desc="RFC2131 compliant DHCP client" @@ -20,10 +21,6 @@ long_desc=" computer to work on the attached networks without trouble and mostly without configuration." -pre_install() { - sed -i -e "s|/var/run/dhcpcd|/run/dhcpcd|g" dhcpcd-run-hooks.in -} - post_install() { chmod 755 ${DESTDIR}/usr/sbin/dhcpcd vinstall ${FILESDIR}/dhcpcd.service 644 usr/lib/systemd/system