wok-undigest view vzctl/receipt @ rev 158

Up: libfm 0.1.12 & pcmanfm2 0.9.7
author Antoine Bodin <gokhlayeh@mailoo.org>
date Fri Aug 06 19:21:44 2010 +0200 (2010-08-06)
parents
children 7a5e5ac499e8
line source
1 # SliTaz package receipt.
3 PACKAGE="vzctl"
4 VERSION="3.0.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenVZ containers control utility"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="udev bash procmail bridge-utils logrotate"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.openvz.org"
11 WGET_URL="http://download.openvz.org/utils/$PACKAGE/$VERSION/src/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 busybox patch -p1 -i ../stuff/vzctl-3.0.23.u || exit false
18 ./configure \
19 --prefix=/usr \
20 --localstatedir=/var \
21 --enable-bashcomp \
22 --enable-logrotate \
23 --disable-static && \
24 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share \
31 -p $fs/etc/conf.d
33 cp -a $_pkg/etc $fs/
34 cp -a $_pkg/var $fs/
35 cp -a $_pkg/vz $fs/
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib $fs/usr
38 cp -a $_pkg/usr/share/vzctl $fs/usr/share
40 rm -f $fs/usr/lib/*.la
42 # Fix permission
43 chmod 755 $fs/usr/sbin/*
44 chmod 755 $fs/etc/init.d/*
45 chmod 755 $fs/usr/share/vzctl/scripts/*
46 chmod 755 $fs/usr/lib/vzctl/scripts/*
49 }