wok view ovz-web-panel/receipt @ rev 17599
linux: CONFIG_USB_SERIAL_VISOR=m
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Wed Feb 11 01:56:28 2015 -0500 (2015-02-11) |
parents | 051931e905b0 |
children | d6ca18366f41 |
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 cd $src
19 # Apply patches
20 while read patch_file; do
21 if [ -f done.$patch_file ]; then
22 echo "Skipping $patch_file"
23 continue
24 fi
25 echo "Apply $patch_file"
26 patch -p1 < $stuff/$patch_file || return 1
27 touch done.$patch_file
28 done <<EOT
29 owp-${VERSION}.u
30 EOT
31 mkdir $DESTDIR
32 mv * $DESTDIR 2> /dev/null || true
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share \
39 $fs/etc
41 cp -a $install $fs/usr/share/$PACKAGE
42 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
43 cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
45 # Set secret key
46 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
47 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
49 # Set program homedir
50 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
52 # Fix perms
53 chmod 755 $fs/usr/share/$PACKAGE/script/owp
55 # Cleaning.
56 rm -f $fs/usr/share/$PACKAGE/done.*.u
57 }
59 post_install()
60 {
61 echo "Processing post-install commands..."
62 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
63 }
65 clean_wok()
66 {
67 [ -d $PACKAGE ] && rm -rf $PACKAGE
68 }