summaryrefslogtreecommitdiff
path: root/core/dhcpcd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-16 00:02:36 +0000
committerroot <root@rshg054.dnsready.net>2012-08-16 00:02:36 +0000
commit0fc1870f2eadde8cb06004be1cbe8d1a4333aa69 (patch)
tree09ae142c72b3ef3bba14bcd0fbd982446585d894 /core/dhcpcd
parent8f1eb849d6de0031d4d91fb6d8780828b1ba924b (diff)
Thu Aug 16 00:02:36 UTC 2012
Diffstat (limited to 'core/dhcpcd')
-rw-r--r--core/dhcpcd/PKGBUILD16
-rw-r--r--core/dhcpcd/dhcpcd.service13
2 files changed, 23 insertions, 6 deletions
diff --git a/core/dhcpcd/PKGBUILD b/core/dhcpcd/PKGBUILD
index ce8ac114e..427609e39 100644
--- a/core/dhcpcd/PKGBUILD
+++ b/core/dhcpcd/PKGBUILD
@@ -1,13 +1,13 @@
-# $Id: PKGBUILD 155703 2012-04-05 10:02:36Z ronald $
+# $Id: PKGBUILD 165283 2012-08-14 20:43:47Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Tom Killian <tom.archlinux.org>
# Contributor: Judd Vinet <jvinet.zeroflux.org>
pkgname=dhcpcd
-pkgver=5.5.6
+pkgver=5.6.0
pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
-url="http://roy.marples.name/dhcpcd/"
+url="http://roy.marples.name/projects/dhcpcd/"
arch=('i686' 'x86_64')
license=('BSD')
groups=('base')
@@ -15,9 +15,10 @@ depends=('glibc' 'sh')
backup=('etc/conf.d/dhcpcd' 'etc/dhcpcd.conf')
options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2" \
- 'dhcpcd.conf.d')
-sha1sums=('7f9ca207bce051252c0acb6a6cae3de22babcb20'
- 'b67b9ce6a2faaca75fea356966a16be2283b7db0')
+ 'dhcpcd.conf.d' 'dhcpcd.service')
+sha1sums=('28ad6931393420a72da307ee173466a9e00cd952'
+ 'b67b9ce6a2faaca75fea356966a16be2283b7db0'
+ '3d0542eab1b89a88d56ca427128228ac72c40d1f')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -48,4 +49,7 @@ package() {
# Set Options in /etc/dhcpcd.conf
echo noipv4ll >> ${pkgdir}/etc/dhcpcd.conf # Disable ip4vall
+
+ # install systemd files
+ install -Dm644 ${srcdir}/dhcpcd.service ${pkgdir}/usr/lib/systemd/system/dhcpcd@.service
}
diff --git a/core/dhcpcd/dhcpcd.service b/core/dhcpcd/dhcpcd.service
new file mode 100644
index 000000000..25a1923ac
--- /dev/null
+++ b/core/dhcpcd/dhcpcd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=dhcpcd on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd-%I.pid
+ExecStart=/sbin/dhcpcd -A -q -w %I
+ExecStop=/sbin/dhcpcd -k %I
+
+[Install]
+Alias=multi-user.target.wants/dhcpcd@eth0.service