wok view partimage/receipt @ rev 4972
add/improve TAGS r* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 11:44:49 2010 +0000 (2010-02-24) |
parents | 89e187b7d309 |
children | f3327707164a |
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage"
4 VERSION="0.6.7"
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"
9 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.partimage.org/Index.fr.html"
12 WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u
19 cd $src
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
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 strip -s $fs/usr/sbin/*
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 chown partimag.partimag $1/etc/partimaged/*
49 echo " Creating image files directory"
50 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 deluser partimag
61 delgroup partimag
63 if [ -f /etc/paritimaged ]; then
64 rm -rf /etc/partimaged
65 fi
66 }