wok-current annotate vzctl/receipt @ rev 25187
mencoder: reordered recipe
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 12 10:44:40 2022 +0100 (2022-07-12) |
parents | 6135577f4d08 |
children | a2287a3e06b6 |
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" |
pascal@15363 | 8 LICENSE="GPL2" |
erjo@8056 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20679 | 10 WEB_SITE="https://openvz.livejournal.com/" |
erjo@8056 | 11 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}" |
erjo@8056 | 12 |
pascal@15363 | 13 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip" |
pascal@15363 | 14 BUILD_DEPENDS="sed" |
pascal@15363 | 15 |
pascal@24505 | 16 # What is the latest version available today? |
pascal@24505 | 17 current_version() |
pascal@24505 | 18 { |
pascal@24505 | 19 wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \ |
pascal@24505 | 20 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q |
pascal@24505 | 21 } |
pascal@24505 | 22 |
erjo@8056 | 23 # Rules to configure and make the package. |
erjo@8056 | 24 compile_rules() |
erjo@8056 | 25 { |
erjo@8056 | 26 cd $src |
erjo@8056 | 27 |
erjo@8056 | 28 # Apply patches |
erjo@8056 | 29 while read patch_file; do |
erjo@8056 | 30 if [ -f done.$patch_file ]; then |
erjo@8056 | 31 echo "Skipping $patch_file" |
erjo@8056 | 32 continue |
erjo@8056 | 33 fi |
erjo@8056 | 34 echo "Apply $patch_file" |
pascal@8974 | 35 patch -p1 < $stuff/$patch_file || return 1 |
erjo@8056 | 36 touch done.$patch_file |
erjo@8056 | 37 done <<EOT |
erjo@8056 | 38 vzctl-${VERSION}-Makefile.u |
erjo@8056 | 39 EOT |
erjo@8056 | 40 ./configure \ |
erjo@8056 | 41 --prefix=/usr \ |
erjo@8056 | 42 --localstatedir=/var \ |
erjo@8056 | 43 --enable-bashcomp \ |
gokhlayeh@11573 | 44 --enable-logrotate \ |
gokhlayeh@11573 | 45 $CONFIGURE_ARGS && |
pascal@15363 | 46 make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR install-slitaz |
erjo@8056 | 47 } |
erjo@8056 | 48 |
erjo@8056 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8056 | 50 genpkg_rules() |
erjo@8056 | 51 { |
erjo@8056 | 52 mkdir -p $fs/usr/lib \ |
erjo@8056 | 53 $fs/usr/share |
erjo@8056 | 54 |
pascal@15363 | 55 cp -a $install/usr/sbin $fs/usr |
pascal@15363 | 56 cp -a $install/usr/lib/vzctl $fs/usr/lib |
pascal@15363 | 57 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15363 | 58 cp -a $install/etc $fs/ |
pascal@15363 | 59 cp -a $install/var/ $fs/ |
pascal@15363 | 60 cp -a $install/vz/ $fs/ |
erjo@8056 | 61 |
erjo@8056 | 62 # fix permissions |
erjo@8056 | 63 chmod 0755 $fs/usr/lib/vzctl/scripts/v* |
erjo@8056 | 64 chmod 0755 $fs/usr/sbin/* |
erjo@8056 | 65 chmod 0755 $fs/etc/init.d/vz |
erjo@8056 | 66 |
erjo@8056 | 67 # Copy slitaz script and config |
erjo@8056 | 68 cp -a stuff/slitaz.conf $fs/etc/vz/dists |
erjo@8056 | 69 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts |
erjo@8056 | 70 } |
erjo@8056 | 71 |