aboutsummaryrefslogtreecommitdiffstats
path: root/testing/upstart
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-03-07 01:50:52 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-03-07 01:50:52 -0600
commitbb2e3cbaabb04d12f3bb80d745fca3b2d101548b (patch)
treea9acbe51ef5b4e4b95094f07ab7cd2f8949cc7ac /testing/upstart
parent5a137303fabe3f11f35c8e4c496ec14ffc4d2e19 (diff)
downloadaports-bb2e3cbaabb04d12f3bb80d745fca3b2d101548b.tar.bz2
aports-bb2e3cbaabb04d12f3bb80d745fca3b2d101548b.tar.xz
testing/upstart: add upgrade scripts
Diffstat (limited to 'testing/upstart')
-rw-r--r--testing/upstart/APKBUILD8
-rw-r--r--testing/upstart/upstart.post-deinstall3
-rw-r--r--testing/upstart/upstart.post-upgrade3
3 files changed, 11 insertions, 3 deletions
diff --git a/testing/upstart/APKBUILD b/testing/upstart/APKBUILD
index 015ada3b74..4aea050120 100644
--- a/testing/upstart/APKBUILD
+++ b/testing/upstart/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: William Pitcock <nenolod@dereferenced.org>
-# Maintainer:
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=upstart
pkgver=0.6.7
-pkgrel=0
+pkgrel=1
pkgdesc="event-based init system"
url="http://upstart.ubuntu.com"
arch="all"
@@ -10,7 +10,7 @@ license="GPL"
depends=
depends_dev="libnih-dev"
makedepends="$depends_dev"
-install=""
+install="$pkgname.post-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-doc"
source="http://upstart.ubuntu.com/download/${pkgver%.*}/upstart-${pkgver}.tar.gz"
@@ -28,6 +28,8 @@ prepare() {
build() {
cd "$_builddir"
./configure --prefix=/usr \
+ --bindir=/bin \
+ --sbindir=/sbin \
--sysconfdir=/etc \
--localstatedir=/var || return 1
make || return 1
diff --git a/testing/upstart/upstart.post-deinstall b/testing/upstart/upstart.post-deinstall
new file mode 100644
index 0000000000..99b57c4635
--- /dev/null
+++ b/testing/upstart/upstart.post-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+busybox --install -s
diff --git a/testing/upstart/upstart.post-upgrade b/testing/upstart/upstart.post-upgrade
new file mode 100644
index 0000000000..99b57c4635
--- /dev/null
+++ b/testing/upstart/upstart.post-upgrade
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+busybox --install -s