wok-next view ovz-web-panel/receipt @ rev 21159
updated diffutils (3.6 -> 3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 08:46:59 2019 +0100 (2019-02-20) |
parents | d5aab818505e |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://owp.softunity.com.ru/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="http://ovz-web-panel.googlecode.com/files/$TARBALL" # FIXME
14 compile_rules() {
15 mkdir $install
16 mv * $install 2>/dev/null || true
17 }
19 genpkg_rules() {
20 mkdir -p $fs/usr/share \
21 $fs/etc
23 cp -a $install $fs/usr/share/$PACKAGE
24 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
25 cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
27 # Set secret key
28 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
29 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
31 # Set program homedir
32 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
34 # Fix perms
35 chmod 755 $fs/usr/share/$PACKAGE/script/owp
37 # Cleaning.
38 rm -f $fs/usr/share/$PACKAGE/done.*.u
40 DEPENDS="ruby ruby-sqlite3"
41 }
43 post_install() {
44 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
45 }