Subject: [alpine-aports] [PATCH 2/2] main/busybox-initscripts: add udhcpd service

From: Sören Tempel <[email-masked]>
Date: Fri, 21 Aug 2015 22:59:48 +0200

---
 main/busybox-initscripts/APKBUILD     | 17 ++++++++---------
 main/busybox-initscripts/udhcpd.initd | 11 +++++++++++
 2 files changed, 19 insertions(+), 9 deletions(-)
 create mode 100644 main/busybox-initscripts/udhcpd.initd

diff --git a/main/busybox-initscripts/APKBUILD b/main/busybox-initscripts/APKBUILD
index d7969e6..24cbfd1 100644
--- a/main/busybox-initscripts/APKBUILD
+++ b/main/busybox-initscripts/APKBUILD
@@ -2,27 +2,23 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=busybox-initscripts
 pkgver=2.3
-pkgrel=0
+pkgrel=1
 pkgdesc="Init scripts for busybox daemons"
 url="http://git.alpinelinux.org/cgit/aports/tree/core/busybox-initscripts"
 arch="noarch"
 license="GPL-2"
 depends="busybox"
-makedepends=
+makedepends=""
 install=$pkgname.post-install
-subpackages=
+subpackages=""
 replaces="alpine-baselayout openntpd"
-source="acpid.initd cron.initd dnsd.initd httpd.initd inetd.initd klogd.initd 
-	mdev.initd ntpd.initd rdate.initd syslog.initd
+source="acpid.initd cron.initd dnsd.initd httpd.initd inetd.initd klogd.initd
+	mdev.initd ntpd.initd rdate.initd syslog.initd udhcpd.initd
 	watchdog.initd cron.confd klogd.confd ntpd.confd rdate.confd syslog.confd
 	watchdog.confd mdev.conf dvbdev ide_links usbdev usbdisk_link xvd_links
 	default.script
 	"
 
-build() {
-	return 0
-}
-
 package() {
 	local i
 	cd "$srcdir"
@@ -61,6 +57,7 @@ b86749a0a4167e0a6178a217b264d0f6  mdev.initd
 88ac156aa6cc3999805d526498765d07  ntpd.initd
 e70b6427fb7b52f49801bcdfb99db3a2  rdate.initd
 763ef3ade65e24d89fe980651abfc915  syslog.initd
+c15ed9cb8657ec3dfab8f90d372cad20  udhcpd.initd
 4894514fb7e4485d6520290c9fa11a30  watchdog.initd
 8ddb8d040c9c7a32c63039a2c80ff496  cron.confd
 60bc14cc3163d76f41bcc93dc0f9984b  klogd.confd
@@ -85,6 +82,7 @@ e08f595cb22ad4aef4d48deabb933067407a4b94be131d078ebd715fd7e380d3  mdev.initd
 4a32eea4da1e9eaf6c5ecfce20a297b55de3a1d479bc0578286d769be0114a7b  ntpd.initd
 0c6eb4dc269386472f475cf9c549ba53b73aa33f044fbfb3b6bc6dd2574bb341  rdate.initd
 36ec4261992bc72ee8b037ee1446b74f8a488e89bd23a112bc3b5b34a2c27377  syslog.initd
+e48d8c9794e58b11581d353039dc95afb3074f8ae298772873d9a603891269bd  udhcpd.initd
 03c1a6312598aeea5d10195ff5473ecc8ee89182b8115a8b5ad529259c0ea564  watchdog.initd
 6b466c5b0e9cab7613aa56edf383e891c5c7e26ee00467e9f7913808be23a328  cron.confd
 f6cd63d6e5f384dcb01a4906c9a0b6c5923794380235dfe0d79b48a686b03c5d  klogd.confd
@@ -109,6 +107,7 @@ sha512sums="8663ffab45498f9626c6a023a28be6533a74be2ecaf746e8c1fb7b8092e77d8734da
 c30d3936e045c01fdc9d1e9d1c0d2cd79b6dabb453400f067bc4eefa239a41c98bbe3fcd3ae53792e0e6d8fcf4aebc727e4524ec3ccd5741d5659a0a351c1c7e  ntpd.initd
 a95d03564712803fc58c48534f2fbbf23dd8418ffd3a6a06f840e969627892eea518b4fe17f059850665fc056cedf972c26aee52c309805987fb5c59a710bd30  rdate.initd
 683fe4180dbbca2fbcf56680b0434f0783db000fda9298f48b9ec268ad20b0cf21813cfb19eaad2c52f7a7f7246e9f88e0f06dbd8d14360f5406c87bd8665b04  syslog.initd
+e1d6f4484c59bd2d0ae39c6824910c459148df944658e881a6fee2fe514a0e1c8febb1f9bb5a6ef0a09e378cfb16163523ae0f1844264a631f058495c35d8b0a  udhcpd.initd
 0a4f989068f00dd8599433ea1fe0713c405ed871750b918e32db2d6bccefc8b870ea2e16864d1b7c3dd57d63e04b41aa0bf9c882c1a9e8108def141d12072e90  watchdog.initd
 49c4299eca93517f09c6af71dd6bf737fec4006dfbf72b696fc3ec3e39d61fdd63107cae1bd883b2539848d52e6f6b1ed494d0c871e92e50fc55669295f3585e  cron.confd
 f9bf43b72142bbb4c0665c1268a3d91586ef8a057dfe64c53b6923815d2db1f669b8080a38311ad89cda0b783a8628700fc5414d834a21d8e48515760bb910f7  klogd.confd
diff --git a/main/busybox-initscripts/udhcpd.initd b/main/busybox-initscripts/udhcpd.initd
new file mode 100644
index 0000000..5bc2340
--- /dev/null
+++ b/main/busybox-initscripts/udhcpd.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+name="busybox $SVCNAME"
+command="/usr/sbin/$SVCNAME"
+command_args="$UDHCP_OPTS "
+pidfile="/var/run/$SVCNAME.pid"
+
+depend() {
+	need net
+	after firewall
+}
-- 
2.5.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---