aboutsummaryrefslogtreecommitdiffstats
path: root/testing/util-vserver/APKBUILD
blob: bdf49caf41badaa3b830a01c6d9ed546520f7e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-vserver
pkgver=0.30.216_pre2849
_realver=0.30.216-pre2849
pkgrel=0
pkgdesc="Linux-VServer admin utilities"
url="http://www.nongnu.org/util-vserver/"
license="GPL"
# needs coreutils for touch -t
makedepends="iptables-dev e2fsprogs-dev beecrypt-dev autoconf automake
	pkgconfig libtool"
depends="bash"

source="http://people.linux-vserver.org/~dhozac/t/uv-testing/util-vserver-$_realver.tar.bz2
	chmod.patch
	ensc_pathprog.patch
	validate.patch
	alpine.patch
	setup-vs-template
	"
subpackages="$pkgname-doc $pkgname-dev"

build() {
	local i
	cd "$srcdir"/$pkgname-$_realver
	patch -p1 -i ../chmod.patch || return 1
	patch -p1 -i ../ensc_pathprog.patch || return 1
	patch -p1 -i ../validate.patch || return 1
	aclocal -I m4 && autoconf && automake && libtoolize || return 1

	# this is an ugly workaround
	sed -i -e "s:as_echo=.*:as_echo=echo:g" configure

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--with-initscripts=gentoo \
		--localstatedir=/var \
		|| return 1

	make || return 1
	make DESTDIR="$pkgdir/" install install-distribution
	install -Dm755 ../setup-vs-template "$pkgdir"/usr/sbin/setup-vs-template
}

md5sums="af4c22b420320bdd94a1756f3c90de20  util-vserver-0.30.216-pre2849.tar.bz2
73c7437dea6937a57cf38d166ef83c09  chmod.patch
ff8f561f672524eb46fe633f584ef60e  ensc_pathprog.patch
da8b70c4fd40e68894b3903ffd121397  validate.patch
04000261fd990a3963b0e98260b481bd  alpine.patch
4504f4a97eba4a4ab21feff1b121c7bd  setup-vs-template"