Commit 3c938144 authored by Natanael Copa's avatar Natanael Copa

main/openrc: upgrade to 0.6.0

parent cccd5e0e
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc pkgname=openrc
pkgver=0.5.0 pkgver=0.6.0
pkgrel=13 pkgrel=0
pkgdesc="OpenRC manages the services, startup and shutdown of a host" pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://roy.marples.name/openrc" url="http://roy.marples.name/openrc"
license='BSD-2' license='BSD-2'
...@@ -9,10 +9,7 @@ depends="" ...@@ -9,10 +9,7 @@ depends=""
subpackages="$pkgname-doc $pkgname-dev" subpackages="$pkgname-doc $pkgname-dev"
install="$pkgname.post-install $pkgname.post-upgrade" install="$pkgname.post-install $pkgname.post-upgrade"
source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2
dont-provide-ourself.patch
command-line-size-fix.patch
openrc-0.4.3-mkmntdirs.patch openrc-0.4.3-mkmntdirs.patch
openrc-hwclock.patch
localmount.patch localmount.patch
hostname.initd hostname.initd
hwdrivers.initd hwdrivers.initd
...@@ -23,19 +20,27 @@ source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 ...@@ -23,19 +20,27 @@ source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2
local.start local.start
" "
build() { prepare() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
for i in ../*.patch; do for i in ../*.patch; do
msg "Applying $i..." msg "Applying $i..."
patch -p1 < $i || return 1 patch -p1 < $i || return 1
done done
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make || return 1 make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
# we cannot have anything turned on by default # we cannot have anything turned on by default
rm -f "$pkgdir"/etc/runlevels/*/* rm -f "$pkgdir"/etc/runlevels/*/*
# we still use our ifup/ifdown based net config
rm -f "$pkgdir"/etc/conf.d/network "$pkgdir"/etc/init.d/network rm -f "$pkgdir"/etc/conf.d/network "$pkgdir"/etc/init.d/network
# we override some of the scripts # we override some of the scripts
...@@ -47,11 +52,8 @@ build() { ...@@ -47,11 +52,8 @@ build() {
install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start
} }
md5sums="9ec7f8425e12abbbd0f7a962aae3fa3c openrc-0.5.0.tar.bz2 md5sums="2b30959bc68595cdf389cb9f62105ec6 openrc-0.6.0.tar.bz2
1bb9c2aec9243a781191efcfc68df8c9 dont-provide-ourself.patch
396b1cbd399403ba0448402afc6f9220 command-line-size-fix.patch
8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch 8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch
f462c976b04cfbb35b2335be15eee7f6 openrc-hwclock.patch
fa1809cd59cc0559a163bc6adc7398f6 localmount.patch fa1809cd59cc0559a163bc6adc7398f6 localmount.patch
c32e15b0858eef708497e7ee6355a055 hostname.initd c32e15b0858eef708497e7ee6355a055 hostname.initd
b1e64885f301166df30be3e3cf5338ff hwdrivers.initd b1e64885f301166df30be3e3cf5338ff hwdrivers.initd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment