wok diff partimage/receipt @ rev 676

busybox/tar: accept --wildcards arg (do nothing)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 24 16:36:30 2008 +0000 (2008-04-24)
parents
children a075ff895254
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/partimage/receipt	Thu Apr 24 16:36:30 2008 +0000
     1.3 @@ -0,0 +1,66 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="partimage"
     1.7 +VERSION="0.6.7"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Saves partitions in an image file."
    1.10 +MAINTAINER="Erjo <erjo@slitaz.org>"
    1.11 +DEPENDS="newt bzip2 openssl"
    1.12 +BUILD_DEPENDS="newt-dev slang-dev bzip2-dev openssl-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.partimage.org/Index.fr.html"
    1.15 +WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	./configure --prefix=/usr \
    1.22 +	 --sysconfdir=/etc \
    1.23 +	 --infodir=/usr/share/info \
    1.24 +	 --mandir=/usr/share/man $CONFIGURE_ARGS
    1.25 +	make
    1.26 +	make DESTDIR=$PWD/_pkg install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr $fs/etc/init.d
    1.33 +	cp -a $_pkg/usr/sbin $fs/usr
    1.34 +	cp -a $_pkg/etc $fs/
    1.35 +	install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
    1.36 +	install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
    1.37 +	strip -s $fs/usr/sbin/*
    1.38 +}
    1.39 +
    1.40 +post_install()
    1.41 +{
    1.42 +	echo "Processing post install commands..."
    1.43 +	echo "Adding user/group partimag..."
    1.44 +	adduser -S -H -D partimag
    1.45 +
    1.46 +	echo "Setting permissions for config files"
    1.47 +	chmod 0600 /etc/partimaged/*
    1.48 +	chown partimag.partimag /etc/partimaged/*	
    1.49 +	
    1.50 +	echo " Creating image files directory"
    1.51 +	install -g partimag -o partimag -m 0755 -d /var/lib/partimaged
    1.52 +	
    1.53 +	echo ""
    1.54 +	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.55 +   	echo "/etc/init.d/partimaged start"
    1.56 +   	echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
    1.57 +}
    1.58 +
    1.59 +post_remove()
    1.60 +{
    1.61 +	deluser partimag
    1.62 +	delgroup partimag
    1.63 +	
    1.64 +	if [ -f /etc/paritimaged ]; then
    1.65 +		rm -rf /etc/partimaged
    1.66 +	fi
    1.67 +}
    1.68 +	
    1.69 +