wok-6.x view ovz-web-panel/receipt @ rev 25372
updated trash-cli (0.17.1.14 -> 0.22.4.16)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 29 14:58:56 2022 +0100 (2022-07-29) |
parents | d765616e1f3d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ovz-web-panel"
4 VERSION="1.7"
5 CATEGORY="network"
6 SHORT_DESC="GUI web-based frontend for OpenVZ"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="${PACKAGE}-${VERSION}.tgz"
10 WEB_SITE="https://github.com/sibprogrammer/owp"
11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
13 DEPENDS="ruby-enterprise sqlite3-ruby"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/Bickets/ovz-web-panel/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Apply patches
26 while read patch_file; do
27 if [ -f done.$patch_file ]; then
28 echo "Skipping $patch_file"
29 continue
30 fi
31 echo "Apply $patch_file"
32 patch -p1 < $stuff/$patch_file || return 1
33 touch done.$patch_file
34 done <<EOT
35 owp-${VERSION}.u
36 EOT
37 mkdir $DESTDIR
38 mv * $DESTDIR 2> /dev/null || true
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share \
45 $fs/etc
47 cp -a $install $fs/usr/share/$PACKAGE
48 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
49 cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
51 # Set secret key
52 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
53 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
55 # Set program homedir
56 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
58 # Fix perms
59 chmod 755 $fs/usr/share/$PACKAGE/script/owp
61 # Cleaning.
62 rm -f $fs/usr/share/$PACKAGE/done.*.u
63 }
65 post_install()
66 {
67 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
68 }
70 clean_wok()
71 {
72 [ -d $PACKAGE ] && rm -rf $PACKAGE
73 }