wok-6.x view ovz-web-panel/receipt @ rev 8352

php-pear: Fix depends.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 03 16:35:01 2011 +0100 (2011-02-03)
parents
children 0b4cf0d9e1b5
line source
1 # SliTaz package receipt.
3 PACKAGE="ovz-web-panel"
4 VERSION="1.7"
5 CATEGORY="networking"
6 SHORT_DESC="GUI web-based frontend for OpenVZ"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby rubygems sqlite3-ruby"
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $PACKAGE
18 # Apply patches
19 while read patch_file; do
20 if [ -f done.$patch_file ]; then
21 echo "Skipping $patch_file"
22 continue
23 fi
24 echo "Apply $patch_file"
25 patch -p1 < ../stuff/$patch_file || exit 1
26 touch done.$patch_file
27 done <<EOT
28 owp-${VERSION}.u
29 EOT
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share \
37 $fs/etc
39 cp -a $PACKAGE $fs/usr/share
40 cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf
41 cp -a $fs/usr/share//$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
43 # Set secret key
44 sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \
45 $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini
47 # Set program homedir
48 sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf
50 # Fix perms
51 chmod 755 $fs/usr/share/$PACKAGE/script/owp
52 }
54 post_install()
55 {
56 echo "Processing post-install commands..."
57 chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp
58 }
60 clean_wok()
61 {
62 [ -d $PACKAGE ] && rm -rf $PACKAGE
63 }