wok-next view partimage-pam/receipt @ rev 16146
Move kompozer to undigest (not compiling for a long time and not realy maintained)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 21:49:28 2014 +0100 (2014-03-26) |
parents | c1549ac89096 |
children | 49a446459762 |
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 LICENSE="GPL2"
9 SOURCE="partimage"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.partimage.org/Index.fr.html"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
13 PROVIDE="partimage:pam"
15 DEPENDS="newt bzip2 openssl slitaz-base-files zlib pam gcc-lib-base"
16 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev pam pam-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
23 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
24 ./configure --prefix=/usr --enable-pam \
25 --sysconfdir=/etc \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr $fs/etc/init.d
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/etc $fs/
38 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
39 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
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 chroot $1/ deluser partimag
64 chroot $1/ delgroup partimag
66 if [ -f $1/etc/paritimaged ]; then
67 rm -rf $1/etc/partimaged
68 fi
69 }