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