blob: f1703ccc7a1e089e7b19e3884857a5d1a72436cd (
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
|
# 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=2
pkgdesc="Control Panel for VServer instances"
url="http://www.openvcp.org"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="gnutls-dev util-vserver-dev libxml2-dev libpcap-dev libtool
sqlite-dev rsync iptables-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"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
md5sums="9c65d706133ea48553c90236997f1b8b openvcpd-0.5rc3.tar.gz
bf034b4507f79f635596f1c78f5f7e3f system-libiptc.patch
db8efb9c086673fd2e3e2532294c7a2f openvcp.initd"
|