wok-next annotate vzctl/receipt @ rev 21048

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 27 02:24:27 2018 +0200 (2018-11-27)
parents 8e1b2a143eb3
children
rev   line source
al@20604 1 # SliTaz package receipt v2.
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15363 8 LICENSE="GPL2"
al@20949 9 WEB_SITE="https://openvz.livejournal.com/"
al@20604 10
erjo@8056 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@21020 12 WGET_URL="http://download.openvz.org/utils/$PACKAGE/$VERSION/src/$TARBALL"
erjo@8056 13
pascal@15363 14 BUILD_DEPENDS="sed"
pascal@15363 15
al@20604 16 compile_rules() {
erjo@8056 17 ./configure \
erjo@8056 18 --enable-bashcomp \
gokhlayeh@11573 19 --enable-logrotate \
gokhlayeh@11573 20 $CONFIGURE_ARGS &&
al@20604 21 fix libtool &&
al@20604 22 make &&
al@21020 23 make DESTDIR=$install install &&
al@21020 24 make DESTDIR=$install install-slitaz
erjo@8056 25 }
erjo@8056 26
al@20604 27 genpkg_rules() {
al@20604 28 mkdir -p \
al@20604 29 $fs/usr/lib \
erjo@8056 30 $fs/usr/share
al@20604 31
pascal@15363 32 cp -a $install/usr/sbin $fs/usr
pascal@15363 33 cp -a $install/usr/lib/vzctl $fs/usr/lib
pascal@15363 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15363 35 cp -a $install/etc $fs/
pascal@15363 36 cp -a $install/var/ $fs/
pascal@15363 37 cp -a $install/vz/ $fs/
al@20604 38
erjo@8056 39 # fix permissions
erjo@8056 40 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
erjo@8056 41 chmod 0755 $fs/usr/sbin/*
erjo@8056 42 chmod 0755 $fs/etc/init.d/vz
al@20604 43
erjo@8056 44 # Copy slitaz script and config
al@20604 45 cp -a $stuff/slitaz.conf $fs/etc/vz/dists
al@20604 46 cp -a $stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
al@20604 47 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
erjo@8056 48 }