wok-next diff ovz-web-panel/receipt @ rev 8111
Fixed pcsxr-svn to use the real tar and not busybox tar.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 23 15:36:07 2011 +0000 (2011-01-23) |
parents | |
children | 0b4cf0d9e1b5 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ovz-web-panel/receipt Sun Jan 23 15:36:07 2011 +0000 1.3 @@ -0,0 +1,63 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ovz-web-panel" 1.7 +VERSION="1.7" 1.8 +CATEGORY="networking" 1.9 +SHORT_DESC="GUI web-based frontend for OpenVZ" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="ruby rubygems sqlite3-ruby" 1.12 +TARBALL="${PACKAGE}-${VERSION}.tgz" 1.13 +WEB_SITE="http://code.google.com/p/ovz-web-panel/" 1.14 +WGET_URL="http://ovz-web-panel.googlecode.com/files/$TARBALL" 1.15 + 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $PACKAGE 1.21 + # Apply patches 1.22 + while read patch_file; do 1.23 + if [ -f done.$patch_file ]; then 1.24 + echo "Skipping $patch_file" 1.25 + continue 1.26 + fi 1.27 + echo "Apply $patch_file" 1.28 + patch -p1 < ../stuff/$patch_file || exit 1 1.29 + touch done.$patch_file 1.30 + done <<EOT 1.31 +owp-${VERSION}.u 1.32 +EOT 1.33 + 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + mkdir -p $fs/usr/share \ 1.40 + $fs/etc 1.41 + 1.42 + cp -a $PACKAGE $fs/usr/share 1.43 + cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf 1.44 + cp -a $fs/usr/share//$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini 1.45 + 1.46 + # Set secret key 1.47 + sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \ 1.48 + $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini 1.49 + 1.50 + # Set program homedir 1.51 + sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf 1.52 + 1.53 + # Fix perms 1.54 + chmod 755 $fs/usr/share/$PACKAGE/script/owp 1.55 +} 1.56 + 1.57 +post_install() 1.58 +{ 1.59 + echo "Processing post-install commands..." 1.60 + chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp 1.61 +} 1.62 + 1.63 +clean_wok() 1.64 +{ 1.65 + [ -d $PACKAGE ] && rm -rf $PACKAGE 1.66 +}