wok view partimage-pam/receipt @ rev 19466
Up: libgsf (1.14.40), goffice (0.10.32), gnumeric (1.12.32).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 25 01:28:09 2016 +0300 (2016-10-25) |
parents | 9e01bc6321ea |
children | 8dd8bab3f0ca |
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 \
24 --prefix=/usr \
25 --enable-pam \
26 --sysconfdir=/etc \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr $fs/etc/init.d
38 cp -a $install/usr/sbin $fs/usr
39 cp -a $install/etc $fs/
40 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
41 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
42 }
44 post_install()
45 {
46 newline
47 echo "Adding user/group partimag..."
48 chroot "$1/" adduser -S -H -D partimag
50 echo "Setting permissions for config files"
51 chmod 0600 "$1"/etc/partimaged/*
52 chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*
54 echo "Creating image files directory"
55 chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
57 echo ""
58 echo -e "\nTo starts $SOURCE server you can run :\n"
59 echo "/etc/init.d/partimaged start"
60 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
61 }
63 post_remove()
64 {
65 chroot "$1/" deluser partimag
66 chroot "$1/" delgroup partimag
68 if [ -f "$1/etc/paritimaged" ]; then
69 rm -rf "$1/etc/partimaged"
70 fi
71 }