wok-current view partimage-pam/receipt @ rev 7237

Moved duplicate kernel modules to main linux package. Fixed linux-cryptoloop to only have one depends line.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Nov 13 00:06:29 2010 +0000 (2010-11-13)
parents c79e4c1abb03
children 5f4753b7cf83
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage-pam"
4 VERSION="0.6.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Saves partitions in an image file."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="newt bzip2 openssl slitaz-base-files zlib pam gcc-lib-base"
9 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev pam pam-dev"
10 SOURCE="partimage"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.partimage.org/Index.fr.html"
13 WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL"
14 PROVIDE="partimage:pam"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # fix build with gcc4
20 busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u
22 cd $src
23 # fix build with openssl 1.0
24 sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \
25 src/client/netclient.cpp
26 sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \
27 src/server/netserver.cpp
28 ./configure --prefix=/usr --enable-pam \
29 --sysconfdir=/etc \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/etc/init.d
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/etc $fs/
42 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
43 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
44 strip -s $fs/usr/sbin/*
45 }
47 post_install()
48 {
49 echo "Processing post install commands..."
50 echo "Adding user/group partimag..."
51 chroot $1/ adduser -S -H -D partimag
53 echo "Setting permissions for config files"
54 chmod 0600 $1/etc/partimaged/*
55 chown partimag.partimag $1/etc/partimaged/*
57 echo " Creating image files directory"
58 install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
60 echo ""
61 echo -e "\nTo starts $SOURCE server you can run :\n"
62 echo "/etc/init.d/partimaged start"
63 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
64 }
66 post_remove()
67 {
68 deluser partimag
69 delgroup partimag
71 if [ -f /etc/paritimaged ]; then
72 rm -rf /etc/partimaged
73 fi
74 }