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

partimage*, fix build with gcc 4.x
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Sep 24 12:41:52 2009 +0000 (2009-09-24)
parents 89e187b7d309
children f3327707164a
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 # fix build with gcc4
20 busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u
22 cd $src
23 ./configure --prefix=/usr --enable-pam \
24 --sysconfdir=/etc \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/etc/init.d
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/etc $fs/
37 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
38 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
39 strip -s $fs/usr/sbin/*
40 }
42 post_install()
43 {
44 echo "Processing post install commands..."
45 echo "Adding user/group partimag..."
46 chroot $1/ adduser -S -H -D partimag
48 echo "Setting permissions for config files"
49 chmod 0600 $1/etc/partimaged/*
50 chown partimag.partimag $1/etc/partimaged/*
52 echo " Creating image files directory"
53 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
55 echo ""
56 echo -e "\nTo starts $SOURCE server you can run :\n"
57 echo "/etc/init.d/partimaged start"
58 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
59 }
61 post_remove()
62 {
63 deluser partimag
64 delgroup partimag
66 if [ -f /etc/paritimaged ]; then
67 rm -rf /etc/partimaged
68 fi
69 }