aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-25 14:25:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-25 14:25:32 +0000
commitbd325689a38ce40e1e7fe6357c87c9cb07fdb9f6 (patch)
tree12ab0bcaded559e0e8a38ab4d9056844e8ebe3ee /main
parentfef64a1da900dbffa081e78bc11e7b8d82e089b6 (diff)
downloadaports-bd325689a38ce40e1e7fe6357c87c9cb07fdb9f6.tar.bz2
aports-bd325689a38ce40e1e7fe6357c87c9cb07fdb9f6.tar.xz
main/openrc: migrate rc.local from 1.8
fixes #172
Diffstat (limited to 'main')
-rw-r--r--main/openrc/APKBUILD7
-rw-r--r--main/openrc/local.start4
-rw-r--r--main/openrc/openrc.post-install1
3 files changed, 10 insertions, 2 deletions
diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD
index de64376228..a6fab9a3d4 100644
--- a/main/openrc/APKBUILD
+++ b/main/openrc/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc
pkgver=0.5.0
-pkgrel=10
+pkgrel=11
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://roy.marples.name/openrc"
license='BSD-2'
@@ -19,6 +19,7 @@ source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2
modules.initd
modloop.initd
networking.initd
+ local.start
"
build() {
@@ -42,6 +43,7 @@ build() {
install -Dm755 $i "$pkgdir"/etc/init.d/${j%.initd}
done
+ install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start
}
md5sums="9ec7f8425e12abbbd0f7a962aae3fa3c openrc-0.5.0.tar.bz2
@@ -54,4 +56,5 @@ b1e64885f301166df30be3e3cf5338ff hwdrivers.initd
33ca3e558c42cdd17adccbc7807298f7 keymaps.initd
098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd
4c69d1c6a84cbe0195496c14a757579b modloop.initd
-747168eee535e845179eaef5a3fcb334 networking.initd"
+747168eee535e845179eaef5a3fcb334 networking.initd
+0a615d93aab691364c03539c3b496dcc local.start"
diff --git a/main/openrc/local.start b/main/openrc/local.start
new file mode 100644
index 0000000000..e0ce86071a
--- /dev/null
+++ b/main/openrc/local.start
@@ -0,0 +1,4 @@
+
+if [ -f /etc/rc.local ]; then
+ . /etc/rc.local
+fi
diff --git a/main/openrc/openrc.post-install b/main/openrc/openrc.post-install
index 1d0201d3aa..1057eed416 100644
--- a/main/openrc/openrc.post-install
+++ b/main/openrc/openrc.post-install
@@ -20,6 +20,7 @@ for i in etc/rc[SL].d/*; do
procps) svc=sysctl;;
bootmisc.sh) svc=bootmisc;;
keymap) svc=keymaps;;
+ rc.local) svc=local;;
*) svc=$oldsvc;;
esac