wok-next view partimage/receipt @ rev 18076
djview: update depends
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu May 21 21:27:27 2015 +0200 (2015-05-21) |
parents | 380ffe05937a |
children | 9e01bc6321ea |
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 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
20 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
21 ./configure --prefix=/usr \
22 --sysconfdir=/etc \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/etc $fs/
35 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
36 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
37 }
39 post_install()
40 {
41 echo "Processing post install commands..."
42 echo "Adding user/group partimag..."
43 chroot $1/ adduser -S -H -D partimag
45 echo "Setting permissions for config files"
46 chmod 0600 $1/etc/partimaged/*
47 chroot $1/ chown partimag.partimag $1/etc/partimaged/*
49 echo " Creating image files directory"
50 chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
52 echo ""
53 echo -e "\nTo starts $PACKAGE server you can run :\n"
54 echo "/etc/init.d/partimaged start"
55 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
56 }
58 post_remove()
59 {
60 chroot $1/ deluser partimag
61 chroot $1/ delgroup partimag
63 if [ -f $1/etc/paritimaged ]; then
64 rm -rf $1/etc/partimaged
65 fi
66 }