Receipt for package "ovz-web-panel"
# SliTaz package receipt. PACKAGE="ovz-web-panel" VERSION="1.7" CATEGORY="network" SHORT_DESC="GUI web-based frontend for OpenVZ" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" TARBALL="${PACKAGE}-${VERSION}.tgz" WEB_SITE="https://github.com/sibprogrammer/owp" WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" DEPENDS="ruby-enterprise sqlite3-ruby" # What is the latest version available today? current_version() { wget -O - https://github.com/Bickets/ovz-web-panel/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # Apply patches while read patch_file; do if [ -f done.$patch_file ]; then echo "Skipping $patch_file" continue fi echo "Apply $patch_file" patch -p1 < $stuff/$patch_file || return 1 touch done.$patch_file done <<EOT owp-${VERSION}.u EOT mkdir $DESTDIR mv * $DESTDIR 2> /dev/null || true } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share \ $fs/etc cp -a $install $fs/usr/share/$PACKAGE cp -a $fs/usr/share/$PACKAGE/config/owp.conf.sample $fs/etc/owp.conf cp -a $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini.sample $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini # Set secret key sed -i 's/secret/2918b7aafc1f5f753ee232a7e7f78175/' \ $fs/usr/share/$PACKAGE/utils/hw-daemon/hw-daemon.ini # Set program homedir sed -i 's!/opt!/usr/share!' $fs/etc/owp.conf # Fix perms chmod 755 $fs/usr/share/$PACKAGE/script/owp # Cleaning. rm -f $fs/usr/share/$PACKAGE/done.*.u } post_install() { chroot "$1/" ln -s /usr/share/$PACKAGE/script/owp /etc/init.d/owp } clean_wok() { [ -d $PACKAGE ] && rm -rf $PACKAGE }
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)