wok-next view partimage/receipt @ rev 17533
Add libssh2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 21 17:12:27 2015 +0100 (2015-01-21) |
parents | c1549ac89096 |
children | 49a446459762 |
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage"
4 VERSION="0.6.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Saves partitions in an image file."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.partimage.org/Index.fr.html"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="newt bzip2 openssl slitaz-base-files zlib gcc-lib-base"
14 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev zlib-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
21 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
22 ./configure --prefix=/usr \
23 --sysconfdir=/etc \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/etc $fs/
36 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
37 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
38 }
40 post_install()
41 {
42 echo "Processing post install commands..."
43 echo "Adding user/group partimag..."
44 chroot $1/ adduser -S -H -D partimag
46 echo "Setting permissions for config files"
47 chmod 0600 $1/etc/partimaged/*
48 chown partimag.partimag $1/etc/partimaged/*
50 echo " Creating image files directory"
51 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
53 echo ""
54 echo -e "\nTo starts $PACKAGE server you can run :\n"
55 echo "/etc/init.d/partimaged start"
56 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
57 }
59 post_remove()
60 {
61 chroot $1/ deluser partimag
62 chroot $1/ delgroup partimag
64 if [ -f $1/etc/paritimaged ]; then
65 rm -rf $1/etc/partimaged
66 fi
67 }