wok view partimage-pam/receipt @ rev 18101
Up lighttpd (1.4.35)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 10:08:34 2015 +0200 (2015-06-01) |
parents | 380ffe05937a |
children | 9e01bc6321ea |
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 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
22 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
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=$DESTDIR 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 $install/usr/sbin $fs/usr
36 cp -a $install/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 }
41 post_install()
42 {
43 echo "Processing post install commands..."
44 echo "Adding user/group partimag..."
45 chroot $1/ adduser -S -H -D partimag
47 echo "Setting permissions for config files"
48 chmod 0600 $1/etc/partimaged/*
49 chroot $1/ chown partimag.partimag $1/etc/partimaged/*
51 echo " Creating image files directory"
52 chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
54 echo ""
55 echo -e "\nTo starts $SOURCE server you can run :\n"
56 echo "/etc/init.d/partimaged start"
57 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
58 }
60 post_remove()
61 {
62 chroot $1/ deluser partimag
63 chroot $1/ delgroup partimag
65 if [ -f $1/etc/paritimaged ]; then
66 rm -rf $1/etc/partimaged
67 fi
68 }