wok-next view ovz-web-panel/receipt @ rev 20849
syslinux: prevent shell expansion, specify CONFIG_FILES
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 17:39:19 2018 +0300 (2018-06-23) |
parents | d6ca18366f41 |
children | a3c581bf52b8 |
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="http://code.google.com/p/ovz-web-panel/"
11 WGET_URL="http://ovz-web-panel.googlecode.com/files/$TARBALL"
13 DEPENDS="ruby-enterprise sqlite3-ruby"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir $DESTDIR
19 mv * $DESTDIR 2> /dev/null || true
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share \
26 $fs/etc
28 cp -a $install $fs/usr/share/$PACKAGE
29 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
30 cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
32 # Set secret key
33 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
34 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
36 # Set program homedir
37 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
39 # Fix perms
40 chmod 755 $fs/usr/share/$PACKAGE/script/owp
42 # Cleaning.
43 rm -f $fs/usr/share/$PACKAGE/done.*.u
44 }
46 post_install()
47 {
48 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
49 }
51 clean_wok()
52 {
53 [ -d $PACKAGE ] && rm -rf $PACKAGE
54 }