blob: 919ef685022d5ba5d109bd0052c00221e8a2a1ff (
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=openvcp
_pkgname=openvcpd
pkgver=0.5
_pkgver=0.5rc3
pkgrel=5
pkgdesc="Control Panel for VServer instances"
url="http://www.openvcp.org"
arch="all"
license="GPL"
depends=
depends_dev="gnutls-dev util-vserver-dev libxml2-dev libpcap-dev libtool sqlite-dev rsync iptables-dev"
makedepends="$depends_dev"
install=
subpackages=
source="http://files.openvcp.org/$_pkgname-$_pkgver.tar.gz
system-libiptc.patch
$pkgname.initd"
_builddir="$srcdir"/$_pkgname-$_pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-gnutls
make || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/vservers/backups
mkdir -p "$pkgdir"/vservers/userbackups
mkdir -p "$pkgdir"/vservers/images
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
md5sums="9c65d706133ea48553c90236997f1b8b openvcpd-0.5rc3.tar.gz
107345e8fc8ddaa2cf06dbb94fe13a47 system-libiptc.patch
1c3e0df6937b2a73b49850a81de15365 openvcp.initd"
|