diff --git a/srcpkgs/dhcpcd/files/dhcpcd@.service b/srcpkgs/dhcpcd/files/dhcpcd@.service new file mode 100644 index 00000000000..f024a399b62 --- /dev/null +++ b/srcpkgs/dhcpcd/files/dhcpcd@.service @@ -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 diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template index 087de0df2a4..15397630267 100644 --- a/srcpkgs/dhcpcd/template +++ b/srcpkgs/dhcpcd/template @@ -1,7 +1,7 @@ # Template file for 'dhcpcd' pkgname=dhcpcd version=5.2.12 -revision=2 +revision=3 distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-$version.tar.bz2" build_style=configure configure_args="--libexecdir=/lib/dhcpcd" @@ -20,8 +20,8 @@ Add_dependency build ntp conf_files="/etc/dhcpcd.conf" -post_install() -{ +post_install() { chmod 755 ${DESTDIR}/sbin/dhcpcd vinstall ${FILESDIR}/dhcpcd.service 644 lib/systemd/system + vinstall ${FILESDIR}/dhcpcd@.service 644 lib/systemd/system }