wok-6.x view partimage/receipt @ rev 13926
libbfd: up same version as binutils, 2.23.1
author | ernia <monghitri@aruba.it> |
---|---|
date | Sat Jan 26 02:19:21 2013 +0000 (2013-01-26) |
parents | ba5507fa22f8 |
children | 380ffe05937a |
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 DEPENDS="newt bzip2 openssl slitaz-base-files zlib gcc-lib-base"
9 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev zlib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.partimage.org/Index.fr.html"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
19 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
32 cp -a $_pkg/usr/sbin $fs/usr
33 cp -a $_pkg/etc $fs/
34 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
35 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
36 }
38 post_install()
39 {
40 echo "Processing post install commands..."
41 echo "Adding user/group partimag..."
42 chroot $1/ adduser -S -H -D partimag
44 echo "Setting permissions for config files"
45 chmod 0600 $1/etc/partimaged/*
46 chown partimag.partimag $1/etc/partimaged/*
48 echo " Creating image files directory"
49 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
51 echo ""
52 echo -e "\nTo starts $PACKAGE server you can run :\n"
53 echo "/etc/init.d/partimaged start"
54 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
55 }
57 post_remove()
58 {
59 chroot $1/ deluser partimag
60 chroot $1/ delgroup partimag
62 if [ -f $1/etc/paritimaged ]; then
63 rm -rf $1/etc/partimaged
64 fi
65 }