# HG changeset patch # User Christopher Rogers # Date 1297792865 0 # Node ID 5f4753b7cf830c489c9efd289e53bb9c2943744f # Parent aa91b84f09b3b1c69c981892c9bfdd69176eea60 Up: partimage to 0.6.9. diff -r aa91b84f09b3 -r 5f4753b7cf83 partimage-pam/receipt --- a/partimage-pam/receipt Tue Feb 15 18:00:32 2011 +0000 +++ b/partimage-pam/receipt Tue Feb 15 18:01:05 2011 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="partimage-pam" -VERSION="0.6.7" +VERSION="0.6.9" CATEGORY="system-tools" SHORT_DESC="Saves partitions in an image file." MAINTAINER="pascal.bellard@slitaz.org" @@ -10,21 +10,13 @@ SOURCE="partimage" TARBALL="$SOURCE-$VERSION.tar.bz2" WEB_SITE="http://www.partimage.org/Index.fr.html" -WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL" +WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" PROVIDE="partimage:pam" # Rules to configure and make the package. compile_rules() { - # fix build with gcc4 - busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u - cd $src - # fix build with openssl 1.0 - sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \ - src/client/netclient.cpp - sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \ - src/server/netserver.cpp ./configure --prefix=/usr --enable-pam \ --sysconfdir=/etc \ --infodir=/usr/share/info \ @@ -41,7 +33,6 @@ cp -a $_pkg/etc $fs/ install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d - strip -s $fs/usr/sbin/* } post_install() @@ -65,11 +56,11 @@ post_remove() { - deluser partimag - delgroup partimag + chroot $1/ deluser partimag + chroot $1/ delgroup partimag - if [ -f /etc/paritimaged ]; then - rm -rf /etc/partimaged + if [ -f $1/etc/paritimaged ]; then + rm -rf $1/etc/partimaged fi } diff -r aa91b84f09b3 -r 5f4753b7cf83 partimage/receipt --- a/partimage/receipt Tue Feb 15 18:00:32 2011 +0000 +++ b/partimage/receipt Tue Feb 15 18:01:05 2011 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="partimage" -VERSION="0.6.7" +VERSION="0.6.9" CATEGORY="system-tools" SHORT_DESC="Saves partitions in an image file." MAINTAINER="erjo@slitaz.org" @@ -9,19 +9,12 @@ BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.partimage.org/Index.fr.html" -WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" # Rules to configure and make the package. compile_rules() -{ - busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u - +{ cd $src - # fix build with openssl 1.0 - sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \ - src/client/netclient.cpp - sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \ - src/server/netserver.cpp ./configure --prefix=/usr \ --sysconfdir=/etc \ --infodir=/usr/share/info \ @@ -38,7 +31,6 @@ cp -a $_pkg/etc $fs/ install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d - strip -s $fs/usr/sbin/* } post_install() @@ -62,11 +54,11 @@ post_remove() { - deluser partimag - delgroup partimag + chroot $1/ deluser partimag + chroot $1/ delgroup partimag - if [ -f /etc/paritimaged ]; then - rm -rf /etc/partimaged + if [ -f $1/etc/paritimaged ]; then + rm -rf $1/etc/partimaged fi }