wok-next diff partimage-pam/receipt @ rev 9402
git: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 27 16:56:58 2011 +0200 (2011-03-27) |
parents | bebd24501055 |
children | d1768332cee0 |
line diff
1.1 --- a/partimage-pam/receipt Thu May 13 13:27:52 2010 +0200 1.2 +++ b/partimage-pam/receipt Sun Mar 27 16:56:58 2011 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="partimage-pam" 1.7 -VERSION="0.6.7" 1.8 +VERSION="0.6.9" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Saves partitions in an image file." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -10,21 +10,13 @@ 1.13 SOURCE="partimage" 1.14 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 WEB_SITE="http://www.partimage.org/Index.fr.html" 1.16 -WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL" 1.17 +WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" 1.18 PROVIDE="partimage:pam" 1.19 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 { 1.23 - # fix build with gcc4 1.24 - busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u 1.25 - 1.26 cd $src 1.27 - # fix build with openssl 1.0 1.28 - sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \ 1.29 - src/client/netclient.cpp 1.30 - sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \ 1.31 - src/server/netserver.cpp 1.32 ./configure --prefix=/usr --enable-pam \ 1.33 --sysconfdir=/etc \ 1.34 --infodir=/usr/share/info \ 1.35 @@ -41,7 +33,6 @@ 1.36 cp -a $_pkg/etc $fs/ 1.37 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged 1.38 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d 1.39 - strip -s $fs/usr/sbin/* 1.40 } 1.41 1.42 post_install() 1.43 @@ -65,11 +56,11 @@ 1.44 1.45 post_remove() 1.46 { 1.47 - deluser partimag 1.48 - delgroup partimag 1.49 + chroot $1/ deluser partimag 1.50 + chroot $1/ delgroup partimag 1.51 1.52 - if [ -f /etc/paritimaged ]; then 1.53 - rm -rf /etc/partimaged 1.54 + if [ -f $1/etc/paritimaged ]; then 1.55 + rm -rf $1/etc/partimaged 1.56 fi 1.57 } 1.58