wok-current annotate vzctl/receipt @ rev 25525
created recipe for lua5.1-lpeg 1.0.2
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:54:40 2023 +0100 (18 months ago) |
parents | 669f61f44760 |
children |
rev | line source |
---|---|
erjo@8056 | 1 # SliTaz package receipt. |
erjo@8056 | 2 |
erjo@8056 | 3 PACKAGE="vzctl" |
Hans-G?nter@25403 | 4 VERSION="4.11.1" |
erjo@8056 | 5 CATEGORY="system-tools" |
Hans-G?nter@25403 | 6 SHORT_DESC="OpenVZ containers control utility." |
erjo@8056 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL2" |
Hans-G?nter@25403 | 9 WEB_SITE="https://wiki.openvz.org/Main_Page" |
Hans-G?nter@25403 | 10 |
erjo@8056 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@25403 | 12 WGET_URL="https://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}" |
erjo@8056 | 13 |
Hans-G?nter@25403 | 14 DEPENDS="bash bridge-utils gzip logrotate procmail tar udev" |
pascal@15363 | 15 BUILD_DEPENDS="sed" |
pascal@15363 | 16 |
pascal@24505 | 17 # What is the latest version available today? |
pascal@24505 | 18 current_version() |
pascal@24505 | 19 { |
pascal@24505 | 20 wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \ |
pascal@24505 | 21 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q |
pascal@24505 | 22 } |
pascal@24505 | 23 |
erjo@8056 | 24 # Rules to configure and make the package. |
erjo@8056 | 25 compile_rules() |
erjo@8056 | 26 { |
erjo@8056 | 27 # Apply patches |
Hans-G?nter@25403 | 28 while read patch_file |
Hans-G?nter@25403 | 29 do |
Hans-G?nter@25403 | 30 if [ -f done.$patch_file ] |
Hans-G?nter@25403 | 31 then |
erjo@8056 | 32 echo "Skipping $patch_file" |
erjo@8056 | 33 continue |
erjo@8056 | 34 fi |
erjo@8056 | 35 echo "Apply $patch_file" |
pascal@8974 | 36 patch -p1 < $stuff/$patch_file || return 1 |
erjo@8056 | 37 touch done.$patch_file |
Hans-G?nter@25403 | 38 done <<EOT |
erjo@8056 | 39 vzctl-${VERSION}-Makefile.u |
erjo@8056 | 40 EOT |
Hans-G?nter@25403 | 41 ./configure \ |
Hans-G?nter@25403 | 42 --prefix=/usr \ |
Hans-G?nter@25403 | 43 --localstatedir=/var \ |
Hans-G?nter@25403 | 44 --enable-bashcomp \ |
Hans-G?nter@25403 | 45 --enable-logrotate \ |
Hans-G?nter@25403 | 46 --without-cgroup \ |
Hans-G?nter@25403 | 47 --without-ploop \ |
gokhlayeh@11573 | 48 $CONFIGURE_ARGS && |
Hans-G?nter@25403 | 49 make && |
Hans-G?nter@25403 | 50 make install \ |
Hans-G?nter@25403 | 51 DESTDIR=$DESTDIR && |
Hans-G?nter@25403 | 52 make install-slitaz \ |
Hans-G?nter@25403 | 53 DESTDIR=$DESTDIR |
erjo@8056 | 54 } |
erjo@8056 | 55 |
erjo@8056 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8056 | 57 genpkg_rules() |
erjo@8056 | 58 { |
Hans-G?nter@25403 | 59 mkdir -p $fs/usr/lib |
Hans-G?nter@25403 | 60 mkdir -p $fs/usr/share |
Hans-G?nter@25403 | 61 |
Hans-G?nter@25403 | 62 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@25403 | 63 cp -a $install/usr/libexec/vzctl $fs/usr/lib |
Hans-G?nter@25403 | 64 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@25403 | 65 cp -a $install/etc $fs |
Hans-G?nter@25403 | 66 cp -a $install/var $fs |
Hans-G?nter@25403 | 67 cp -a $install/vz $fs |
Hans-G?nter@25403 | 68 |
erjo@8056 | 69 # fix permissions |
Hans-G?nter@25403 | 70 chmod 0755 $fs/usr/lib/vzctl/scripts/v* |
Hans-G?nter@25403 | 71 chmod 0755 $fs/usr/sbin/* |
Hans-G?nter@25403 | 72 chmod 0755 $fs/etc/init.d/vz |
Hans-G?nter@25403 | 73 |
Hans-G?nter@25403 | 74 # Copy slitaz script and configuration |
Hans-G?nter@25403 | 75 cp -a stuff/slitaz.conf $fs/etc/vz/dists |
Hans-G?nter@25403 | 76 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts |
erjo@8056 | 77 } |