wok view partimage-pam/receipt @ rev 2694
Fix: gst-plugins-base BUILD_DEPENDS
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Apr 22 11:11:27 2009 +0000 (2009-04-22) |
parents | 893010cb28ea |
children | ab3be1ac9c50 |
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage-pam"
4 VERSION="0.6.7"
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"
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="http://heanet.dl.sourceforge.net/sourceforge/partimage/$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 strip -s $fs/usr/sbin/*
37 }
39 post_install()
40 {
41 echo "Processing post install commands..."
42 echo "Adding user/group partimag..."
43 chroot $1/ adduser -S -H -D partimag
45 echo "Setting permissions for config files"
46 chmod 0600 $1/etc/partimaged/*
47 chown partimag.partimag $1/etc/partimaged/*
49 echo " Creating image files directory"
50 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
52 echo ""
53 echo -e "\nTo starts $SOURCE server you can run :\n"
54 echo "/etc/init.d/partimaged start"
55 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
56 }
58 post_remove()
59 {
60 deluser partimag
61 delgroup partimag
63 if [ -f /etc/paritimaged ]; then
64 rm -rf /etc/partimaged
65 fi
66 }