wok-next rev 8643

Up: partimage to 0.6.9.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 15 18:01:05 2011 +0000 (2011-02-15)
parents aa91b84f09b3
children 084d54778a9d
files partimage-pam/receipt partimage/receipt
line diff
     1.1 --- a/partimage-pam/receipt	Tue Feb 15 18:00:32 2011 +0000
     1.2 +++ b/partimage-pam/receipt	Tue Feb 15 18:01:05 2011 +0000
     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  	
     2.1 --- a/partimage/receipt	Tue Feb 15 18:00:32 2011 +0000
     2.2 +++ b/partimage/receipt	Tue Feb 15 18:01:05 2011 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="partimage"
     2.7 -VERSION="0.6.7"
     2.8 +VERSION="0.6.9"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Saves partitions in an image file."
    2.11  MAINTAINER="erjo@slitaz.org"
    2.12 @@ -9,19 +9,12 @@
    2.13  BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev"
    2.14  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.15  WEB_SITE="http://www.partimage.org/Index.fr.html"
    2.16 -WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/partimage/$TARBALL"
    2.17 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.18  
    2.19  # Rules to configure and make the package.
    2.20  compile_rules()
    2.21 -{
    2.22 -	busybox patch -p0 -i stuff/partimage-0.6.7_gcc4.u
    2.23 -	
    2.24 +{	
    2.25  	cd $src
    2.26 -	# fix build with openssl 1.0
    2.27 -	sed -i 's/= SSLv2_client_method/= (SSL_METHOD*) SSLv2_client_method/' \
    2.28 -		src/client/netclient.cpp
    2.29 -	sed -i 's/= SSLv23_server_method/= (SSL_METHOD*) SSLv23_server_method/' \
    2.30 -		src/server/netserver.cpp
    2.31  	./configure --prefix=/usr \
    2.32  	 --sysconfdir=/etc \
    2.33  	 --infodir=/usr/share/info \
    2.34 @@ -38,7 +31,6 @@
    2.35  	cp -a $_pkg/etc $fs/
    2.36  	install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
    2.37  	install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
    2.38 -	strip -s $fs/usr/sbin/*
    2.39  }
    2.40  
    2.41  post_install()
    2.42 @@ -62,11 +54,11 @@
    2.43  
    2.44  post_remove()
    2.45  {
    2.46 -	deluser partimag
    2.47 -	delgroup partimag
    2.48 +	chroot $1/ deluser partimag
    2.49 +	chroot $1/ delgroup partimag
    2.50  	
    2.51 -	if [ -f /etc/paritimaged ]; then
    2.52 -		rm -rf /etc/partimaged
    2.53 +	if [ -f $1/etc/paritimaged ]; then
    2.54 +		rm -rf $1/etc/partimaged
    2.55  	fi
    2.56  }
    2.57