wok-6.x diff vzctl/receipt @ rev 8517

Moved firefox depend to script receipt depend in get-realplayer.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 12 06:26:12 2011 +0000 (2011-02-12)
parents
children 0b4cf0d9e1b5
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/vzctl/receipt	Sat Feb 12 06:26:12 2011 +0000
     1.3 @@ -0,0 +1,61 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="vzctl"
     1.7 +VERSION="3.0.25.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="OpenVZ containers control utility"
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
    1.12 +BUILD_DEPENDS="sed"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://wiki.openvz.org/Main_Page"
    1.15 +WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	
    1.22 +	# Apply patches
    1.23 +	while read patch_file; do
    1.24 +		if [ -f done.$patch_file ]; then
    1.25 +			echo "Skipping $patch_file"
    1.26 +			continue
    1.27 +		fi
    1.28 +		echo "Apply $patch_file"
    1.29 +		patch -p1 < ../stuff/$patch_file || exit 1
    1.30 +		touch done.$patch_file
    1.31 +	done <<EOT
    1.32 +vzctl-${VERSION}-Makefile.u
    1.33 +EOT
    1.34 +	./configure \
    1.35 +		--prefix=/usr \
    1.36 +		--localstatedir=/var \
    1.37 +		--enable-bashcomp \
    1.38 +		--enable-logrotate &&
    1.39 +	make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
    1.40 +}
    1.41 +
    1.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 +genpkg_rules()
    1.44 +{
    1.45 +	mkdir -p $fs/usr/lib \
    1.46 +		$fs/usr/share
    1.47 +		
    1.48 +	cp -a $_pkg/usr/sbin $fs/usr
    1.49 +	cp -a $_pkg/usr/lib/vzctl $fs/usr/lib
    1.50 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.51 +	cp -a $_pkg/etc $fs/
    1.52 +	cp -a $_pkg/var/ $fs/
    1.53 +	cp -a $_pkg/vz/ $fs/
    1.54 +	
    1.55 +	# fix permissions
    1.56 +	chmod 0755 $fs/usr/lib/vzctl/scripts/v*
    1.57 +	chmod 0755 $fs/usr/sbin/*
    1.58 +	chmod 0755 $fs/etc/init.d/vz
    1.59 +	
    1.60 +	# Copy slitaz script and config
    1.61 +	cp -a stuff/slitaz.conf $fs/etc/vz/dists
    1.62 +	cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
    1.63 +}
    1.64 +