From 0319ade6f072312647197d26bb88cb0a24eda5be Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Apr 2012 02:46:47 +0000 Subject: main/xen: use adapted gentoo init.d scripts --- main/xen/APKBUILD | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'main/xen/APKBUILD') diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD index 4c266449d..5e6a93ea9 100644 --- a/main/xen/APKBUILD +++ b/main/xen/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: William Pitcock pkgname=xen pkgver=4.1.2 -pkgrel=6 +pkgrel=7 pkgdesc="Xen hypervisor" url="http://www.xen.org/" arch="x86 x86_64" @@ -25,9 +25,17 @@ source="http://bits.xensource.com/oss-xen/release/$pkgver/$pkgname-$pkgver.tar.g librt.patch busybox-sed.patch e1000.patch - xencommons.initd + + xenstored.initd + xenstored.confd + xenconsoled.initd + xenconsoled.confd xend.initd - xendomains.initd" + xend.confd + xendomains.initd + xendomains.confd + xen-consoles.logrotate + " _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -77,9 +85,16 @@ package() { make -j1 DESTDIR="$pkgdir" install-xen install-tools install-stubdom \ || return 1 - install -m755 -D "$srcdir"/xencommons.initd "$pkgdir"/etc/init.d/xencommons - install -m755 -D "$srcdir"/xend.initd "$pkgdir"/etc/init.d/xend - install -m755 -D "$srcdir"/xendomains.initd "$pkgdir"/etc/init.d/xendomains + for i in $source; do + case $i in + *.initd) install -Dm755 "$srcdir"/$i \ + "$pkgdir"/etc/init.d/${i%.*};; + *.confd) install -Dm644 "$srcdir"/$i \ + "$pkgdir"/etc/conf.d/${i%.*};; + esac + done + install -Dm644 "$srcdir"/xen-consoles.logrotate \ + "$pkgdir"/etc/xen/xen-consoles.logrotate } md5sums="73561faf3c1b5e36ec5c089b5db848ad xen-4.1.2.tar.gz @@ -93,6 +108,12 @@ a7500c42804abdf68e051dc667e65f93 pygrub_alpine.patch fa06495a175571f4aa3b6cb88937953e librt.patch 1bea3543ddc712330527b62fd9ff6520 busybox-sed.patch c31163a3cd6cf58b4e9cac0e96812d65 e1000.patch -62b3c5a7cff38c12df2de89af5d83fa1 xencommons.initd -b5bfc08b82bc0d21193714719a719798 xend.initd -6c288547faadd4262afd2f86e39e99a3 xendomains.initd" +095b20f33bd0fb3963002722870b1dda xenstored.initd +b017ccdd5e1c27bbf1513e3569d4ff07 xenstored.confd +ed262f15fb880badb53575539468646c xenconsoled.initd +ec2252c72050d7d5870a3a629b873ba6 xenconsoled.confd +89c936ddf327a3a78eaee33835880517 xend.initd +9261ad0f285836c1b0ea07f306e4586e xend.confd +6ce7f3069862ad23e3e1d908bb2b7987 xendomains.initd +f3162b7c261bcaf49a67bd41d987df84 xendomains.confd +9df68ac65dc3f372f5d61183abdc83ff xen-consoles.logrotate" -- cgit v1.2.3