wok annotate vzctl/receipt @ rev 8852
Updated mirror-tools to use slitaz-dev-tools.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 25 00:34:53 2011 +0000 (2011-02-25) |
parents | daa2159acc30 |
children | 940b5937e496 |
rev | line source |
---|---|
erjo@8056 | 1 # SliTaz package receipt. |
erjo@8056 | 2 |
erjo@8056 | 3 PACKAGE="vzctl" |
erjo@8056 | 4 VERSION="3.0.25.1" |
erjo@8056 | 5 CATEGORY="system-tools" |
erjo@8056 | 6 SHORT_DESC="OpenVZ containers control utility" |
erjo@8056 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@8056 | 8 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip" |
erjo@8056 | 9 BUILD_DEPENDS="sed" |
erjo@8056 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@8056 | 11 WEB_SITE="http://wiki.openvz.org/Main_Page" |
erjo@8056 | 12 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}" |
erjo@8056 | 13 |
erjo@8056 | 14 # Rules to configure and make the package. |
erjo@8056 | 15 compile_rules() |
erjo@8056 | 16 { |
erjo@8056 | 17 cd $src |
erjo@8056 | 18 |
erjo@8056 | 19 # Apply patches |
erjo@8056 | 20 while read patch_file; do |
erjo@8056 | 21 if [ -f done.$patch_file ]; then |
erjo@8056 | 22 echo "Skipping $patch_file" |
erjo@8056 | 23 continue |
erjo@8056 | 24 fi |
erjo@8056 | 25 echo "Apply $patch_file" |
gokhlayeh@8615 | 26 patch -p1 < ../stuff/$patch_file || return 1 |
erjo@8056 | 27 touch done.$patch_file |
erjo@8056 | 28 done <<EOT |
erjo@8056 | 29 vzctl-${VERSION}-Makefile.u |
erjo@8056 | 30 EOT |
erjo@8056 | 31 ./configure \ |
erjo@8056 | 32 --prefix=/usr \ |
erjo@8056 | 33 --localstatedir=/var \ |
erjo@8056 | 34 --enable-bashcomp \ |
erjo@8056 | 35 --enable-logrotate && |
erjo@8056 | 36 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz |
erjo@8056 | 37 } |
erjo@8056 | 38 |
erjo@8056 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8056 | 40 genpkg_rules() |
erjo@8056 | 41 { |
erjo@8056 | 42 mkdir -p $fs/usr/lib \ |
erjo@8056 | 43 $fs/usr/share |
erjo@8056 | 44 |
erjo@8056 | 45 cp -a $_pkg/usr/sbin $fs/usr |
erjo@8056 | 46 cp -a $_pkg/usr/lib/vzctl $fs/usr/lib |
erjo@8056 | 47 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@8056 | 48 cp -a $_pkg/etc $fs/ |
erjo@8056 | 49 cp -a $_pkg/var/ $fs/ |
erjo@8056 | 50 cp -a $_pkg/vz/ $fs/ |
erjo@8056 | 51 |
erjo@8056 | 52 # fix permissions |
erjo@8056 | 53 chmod 0755 $fs/usr/lib/vzctl/scripts/v* |
erjo@8056 | 54 chmod 0755 $fs/usr/sbin/* |
erjo@8056 | 55 chmod 0755 $fs/etc/init.d/vz |
erjo@8056 | 56 |
erjo@8056 | 57 # Copy slitaz script and config |
erjo@8056 | 58 cp -a stuff/slitaz.conf $fs/etc/vz/dists |
erjo@8056 | 59 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts |
erjo@8056 | 60 } |
erjo@8056 | 61 |