aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:47:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:47:59 +0000
commit3aebb4fffe342116c206a339d3276a600e52ef59 (patch)
tree612c5db9b3085030caf62ca9640f46879e63ba42
parent836efa79e6397dda69543c7b553e33f5bcf2d615 (diff)
downloadaports-3aebb4fffe342116c206a339d3276a600e52ef59.tar.bz2
aports-3aebb4fffe342116c206a339d3276a600e52ef59.tar.xz
main/dhcpcd: add init.d script
-rw-r--r--main/dhcpcd/APKBUILD11
-rw-r--r--main/dhcpcd/dhcpcd.initd17
2 files changed, 24 insertions, 4 deletions
diff --git a/main/dhcpcd/APKBUILD b/main/dhcpcd/APKBUILD
index ec04e0ac7..5f85d9f86 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 000000000..d88b0610d
--- /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
+}