wok-stable view partimage/receipt @ rev 12460

fix symlinks
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 28 09:09:24 2017 +0200 (2017-04-28)
parents 9acba05b00ce
children
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 ./configure --prefix=/usr \
19 --sysconfdir=/etc \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
30 cp -a $_pkg/usr/sbin $fs/usr
31 cp -a $_pkg/etc $fs/
32 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
33 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
34 }
36 post_install()
37 {
38 echo "Processing post install commands..."
39 echo "Adding user/group partimag..."
40 chroot $1/ adduser -S -H -D partimag
42 echo "Setting permissions for config files"
43 chmod 0600 $1/etc/partimaged/*
44 chown partimag.partimag $1/etc/partimaged/*
46 echo " Creating image files directory"
47 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
49 echo ""
50 echo -e "\nTo starts $PACKAGE server you can run :\n"
51 echo "/etc/init.d/partimaged start"
52 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
53 }
55 post_remove()
56 {
57 chroot $1/ deluser partimag
58 chroot $1/ delgroup partimag
60 if [ -f $1/etc/paritimaged ]; then
61 rm -rf $1/etc/partimaged
62 fi
63 }