diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-08 09:47:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-08 09:47:59 +0000 |
commit | 3aebb4fffe342116c206a339d3276a600e52ef59 (patch) | |
tree | 612c5db9b3085030caf62ca9640f46879e63ba42 /main/dhcpcd | |
parent | 836efa79e6397dda69543c7b553e33f5bcf2d615 (diff) | |
download | aports-3aebb4fffe342116c206a339d3276a600e52ef59.tar.bz2 aports-3aebb4fffe342116c206a339d3276a600e52ef59.tar.xz |
main/dhcpcd: add init.d script
Diffstat (limited to 'main/dhcpcd')
-rw-r--r-- | main/dhcpcd/APKBUILD | 11 | ||||
-rw-r--r-- | main/dhcpcd/dhcpcd.initd | 17 |
2 files changed, 24 insertions, 4 deletions
diff --git a/main/dhcpcd/APKBUILD b/main/dhcpcd/APKBUILD index ec04e0ac77..5f85d9f86c 100644 --- a/main/dhcpcd/APKBUILD +++ b/main/dhcpcd/APKBUILD @@ -2,15 +2,16 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dhcpcd pkgver=5.2.5 -pkgrel=0 +pkgrel=1 pkgdesc="RFC2131 compliant DHCP client" url="http://roy.marples.name/projects/dhcpcd/" license="BSD-2" depends= -makedepends="" +makedepends= install= subpackages="$pkgname-doc" -source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2" +source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2 + dhcpcd.initd" build() { cd "$srcdir/$pkgname-$pkgver" @@ -23,6 +24,8 @@ build() { package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install + install -Dm755 "$srcdir"/dhcpcd.initd "$pkgdir"/etc/init.d/dhcpcd } -md5sums="79f5452252026c0547886f89ab87adf1 dhcpcd-5.2.5.tar.bz2" +md5sums="79f5452252026c0547886f89ab87adf1 dhcpcd-5.2.5.tar.bz2 +ecbd807cf3f87d7c5b6095bf63f26894 dhcpcd.initd" diff --git a/main/dhcpcd/dhcpcd.initd b/main/dhcpcd/dhcpcd.initd new file mode 100644 index 0000000000..d88b0610dd --- /dev/null +++ b/main/dhcpcd/dhcpcd.initd @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 2007-2008 Roy Marples <roy@marples.name> +# All rights reserved. Released under the 2-clause BSD license. + +command=/sbin/dhcpcd +pidfile=/var/run/dhcpcd.pid +command_args=-q +name="DHCP Client Daemon" + +depend() +{ + provide net + need localmount + use logger network + after bootmisc modules + before dns +} |