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