wok view partimage/receipt @ rev 6615

Up: imlib2, imlib2-dev to 1.4.4.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Oct 09 20:29:32 2010 +0000 (2010-10-09)
parents c79e4c1abb03
children 5f4753b7cf83
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 gcc-lib-base"
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 # fix build with openssl 1.0
21 sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \
22 src/client/netclient.cpp
23 sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \
24 src/server/netserver.cpp
25 ./configure --prefix=/usr \
26 --sysconfdir=/etc \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr $fs/etc/init.d
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/etc $fs/
39 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
40 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
41 strip -s $fs/usr/sbin/*
42 }
44 post_install()
45 {
46 echo "Processing post install commands..."
47 echo "Adding user/group partimag..."
48 chroot $1/ adduser -S -H -D partimag
50 echo "Setting permissions for config files"
51 chmod 0600 $1/etc/partimaged/*
52 chown partimag.partimag $1/etc/partimaged/*
54 echo " Creating image files directory"
55 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
57 echo ""
58 echo -e "\nTo starts $PACKAGE server you can run :\n"
59 echo "/etc/init.d/partimaged start"
60 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
61 }
63 post_remove()
64 {
65 deluser partimag
66 delgroup partimag
68 if [ -f /etc/paritimaged ]; then
69 rm -rf /etc/partimaged
70 fi
71 }