wok-next annotate ovz-web-panel/receipt @ rev 20661

Unification of the patch system
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 21:12:00 2018 +0300 (2018-05-10)
parents d6ca18366f41
children a3c581bf52b8
rev   line source
erjo@8059 1 # SliTaz package receipt.
erjo@8059 2
erjo@8059 3 PACKAGE="ovz-web-panel"
erjo@8059 4 VERSION="1.7"
slaxemulator@8856 5 CATEGORY="network"
erjo@8059 6 SHORT_DESC="GUI web-based frontend for OpenVZ"
erjo@8059 7 MAINTAINER="erjo@slitaz.org"
pascal@15610 8 LICENSE="GPL2"
erjo@8059 9 TARBALL="${PACKAGE}-${VERSION}.tgz"
erjo@8059 10 WEB_SITE="http://code.google.com/p/ovz-web-panel/"
erjo@8059 11 WGET_URL="http://ovz-web-panel.googlecode.com/files/$TARBALL"
erjo@8059 12
pascal@15610 13 DEPENDS="ruby-enterprise sqlite3-ruby"
erjo@8059 14
erjo@8059 15 # Rules to configure and make the package.
erjo@8059 16 compile_rules()
erjo@8059 17 {
pascal@15603 18 mkdir $DESTDIR
pascal@15603 19 mv * $DESTDIR 2> /dev/null || true
erjo@8059 20 }
erjo@8059 21
erjo@8059 22 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8059 23 genpkg_rules()
erjo@8059 24 {
erjo@8059 25 mkdir -p $fs/usr/share \
al@18734 26 $fs/etc
al@18734 27
pascal@15603 28 cp -a $install $fs/usr/share/$PACKAGE
erjo@8059 29 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
pascal@15610 30 cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
al@18734 31
erjo@8059 32 # Set secret key
erjo@8059 33 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
erjo@8059 34 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
al@18734 35
erjo@8059 36 # Set program homedir
erjo@8059 37 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
al@18734 38
erjo@8059 39 # Fix perms
erjo@8059 40 chmod 755 $fs/usr/share/$PACKAGE/script/owp
al@18734 41
erjo@9424 42 # Cleaning.
erjo@9424 43 rm -f $fs/usr/share/$PACKAGE/done.*.u
erjo@8059 44 }
erjo@8059 45
erjo@8059 46 post_install()
erjo@8059 47 {
erjo@8059 48 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
erjo@8059 49 }
erjo@8059 50
erjo@8059 51 clean_wok()
erjo@8059 52 {
erjo@8059 53 [ -d $PACKAGE ] && rm -rf $PACKAGE
erjo@8059 54 }