wok-next view partimage-pam/receipt @ rev 9660

make: use cleaner var order
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 01 08:12:04 2011 +0200 (2011-05-01)
parents bebd24501055
children d1768332cee0
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage-pam"
4 VERSION="0.6.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Saves partitions in an image file."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="newt bzip2 openssl slitaz-base-files zlib pam gcc-lib-base"
9 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev pam pam-dev"
10 SOURCE="partimage"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.partimage.org/Index.fr.html"
13 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 PROVIDE="partimage:pam"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr --enable-pam \
21 --sysconfdir=/etc \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/etc/init.d
32 cp -a $_pkg/usr/sbin $fs/usr
33 cp -a $_pkg/etc $fs/
34 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
35 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
36 }
38 post_install()
39 {
40 echo "Processing post install commands..."
41 echo "Adding user/group partimag..."
42 chroot $1/ adduser -S -H -D partimag
44 echo "Setting permissions for config files"
45 chmod 0600 $1/etc/partimaged/*
46 chown partimag.partimag $1/etc/partimaged/*
48 echo " Creating image files directory"
49 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
51 echo ""
52 echo -e "\nTo starts $SOURCE server you can run :\n"
53 echo "/etc/init.d/partimaged start"
54 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
55 }
57 post_remove()
58 {
59 chroot $1/ deluser partimag
60 chroot $1/ delgroup partimag
62 if [ -f $1/etc/paritimaged ]; then
63 rm -rf $1/etc/partimaged
64 fi
65 }