wok-next rev 20332

Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Nov 15 14:21:32 2017 +0200 (2017-11-15)
parents de370e2d8541
children c5439f74a6c6
files exosip-dev/receipt exosip/receipt httpfs-fuse-static/receipt httpfs-fuse/receipt httpfs-fuse/stuff/httpfs.u httpfs-fuse/stuff/patches/httpfs.u httpfs-fuse/stuff/patches/series libvncserver-dev/receipt libvncserver/receipt upx/receipt upx391/receipt
line diff
     1.1 --- a/exosip-dev/receipt	Wed Nov 15 06:36:18 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,19 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="exosip-dev"
     1.7 -VERSION="3.6.0"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="extended SIP development library."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -WEB_SITE="http://savannah.nongnu.org/projects/exosip/"
    1.13 -WANTED="exosip"
    1.14 -
    1.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 -genpkg_rules()
    1.17 -{
    1.18 -	mkdir -p $fs/usr
    1.19 -	cp -a $install/usr/include $fs/usr
    1.20 -	cp -a $install/usr/lib $fs/usr
    1.21 -	rm -rf $fs/usr/lib/*.so*
    1.22 -}
     2.1 --- a/exosip/receipt	Wed Nov 15 06:36:18 2017 +0200
     2.2 +++ b/exosip/receipt	Wed Nov 15 14:21:32 2017 +0200
     2.3 @@ -1,32 +1,32 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="exosip"
     2.8  VERSION="3.6.0"
     2.9  CATEGORY="network"
    2.10 -SHORT_DESC="extended SIP library."
    2.11 +SHORT_DESC="Extended Open SIP library"
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="GPL2"
    2.14 -SOURCE="libeXosip2"
    2.15 -TARBALL="$SOURCE-$VERSION.tar.gz"
    2.16  WEB_SITE="http://savannah.nongnu.org/projects/exosip/"
    2.17 +
    2.18 +TARBALL="libeXosip2-$VERSION.tar.gz"
    2.19  WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
    2.20 -DEPENDS="osip openssl"
    2.21 -BUILD_DEPENDS="osip-dev openssl-dev"
    2.22  
    2.23 -# Rules to configure and make the package.
    2.24 -compile_rules()
    2.25 -{
    2.26 -	cd $src
    2.27 -	./configure --prefix=/usr --infodir=/usr/share/info \
    2.28 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    2.29 -	make &&
    2.30 -	make DESTDIR=$DESTDIR install
    2.31 +BUILD_DEPENDS="c-ares-dev osip-dev openssl-dev"
    2.32 +SPLIT="exosip-dev"
    2.33 +
    2.34 +compile_rules() {
    2.35 +	./configure $CONFIGURE_ARGS && make && make install
    2.36  }
    2.37  
    2.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.39 -genpkg_rules()
    2.40 -{
    2.41 -	mkdir -p $fs/usr/lib
    2.42 -	cp -a $install/usr/bin $fs/usr
    2.43 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.44 +genpkg_rules() {
    2.45 +	case $PACKAGE in
    2.46 +		exosip)
    2.47 +			copy @std
    2.48 +			DEPENDS="c-ares libcrypto libssl osip"
    2.49 +			;;
    2.50 +		*-dev)
    2.51 +			copy @dev
    2.52 +			DEPENDS="exosip c-ares-dev openssl-dev osip-dev"
    2.53 +			;;
    2.54 +	esac
    2.55  }
     3.1 --- a/httpfs-fuse-static/receipt	Wed Nov 15 06:36:18 2017 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,18 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="httpfs-fuse-static"
     3.7 -VERSION="2.06.08.26"
     3.8 -CATEGORY="system-tools"
     3.9 -SHORT_DESC="HTTP Filesystem implemented with FUSE."
    3.10 -MAINTAINER="pascal.bellard@slitaz.org"
    3.11 -LICENSE="GPL"
    3.12 -WEB_SITE="http://httpfs.sourceforge.net/"
    3.13 -WANTED="httpfs-fuse"
    3.14 -TAGS="filesystem"
    3.15 -
    3.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.17 -genpkg_rules()
    3.18 -{
    3.19 -	mkdir -p $fs/usr
    3.20 -	cp -a $WOK/$WANTED/install/usr/share $fs/usr
    3.21 -}
     4.1 --- a/httpfs-fuse/receipt	Wed Nov 15 06:36:18 2017 +0200
     4.2 +++ b/httpfs-fuse/receipt	Wed Nov 15 14:21:32 2017 +0200
     4.3 @@ -1,43 +1,46 @@
     4.4 -# SliTaz package receipt.
     4.5 +# SliTaz package receipt v2.
     4.6  
     4.7  PACKAGE="httpfs-fuse"
     4.8  VERSION="2.06.08.26"
     4.9  CATEGORY="system-tools"
    4.10 -SHORT_DESC="HTTP Filesystem implemented with FUSE."
    4.11 +SHORT_DESC="HTTP Filesystem implemented with FUSE"
    4.12  MAINTAINER="pascal.bellard@slitaz.org"
    4.13  LICENSE="GPL2"
    4.14 -SOURCE="httpfs_with_static_binaries"
    4.15 -TARBALL="${SOURCE}_$VERSION.tar.gz"
    4.16  WEB_SITE="http://httpfs.sourceforge.net/"
    4.17 +
    4.18 +TARBALL="httpfs_with_static_binaries_$VERSION.tar.gz"
    4.19  WGET_URL="$SF_MIRROR/httpfs/$TARBALL"
    4.20 -TAGS="filesystem"
    4.21  
    4.22 -DEPENDS="fuse"
    4.23 -BUILD_DEPENDS="fuse-dev upx"
    4.24 +BUILD_DEPENDS="fuse-dev upx391"
    4.25 +SPLIT="httpfs-fuse-static"
    4.26  
    4.27 -# Rules to configure and make the package.
    4.28 -compile_rules()
    4.29 -{
    4.30 -	patch -p0 < $stuff/httpfs.u
    4.31 -	mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/boot
    4.32 -	# keep uclibc prebuilt. Glibc version is 10x bigger !
    4.33 +compile_rules() {
    4.34 +	mkdir -p $install/usr/bin $install/usr/share/boot
    4.35 +	# keep uclibc prebuilt. Glibc version is 10x bigger!
    4.36  	if true; then
    4.37 -		install -m 755 static_uclibc/httpfs $DESTDIR/usr/share/boot/httpfs-static
    4.38 -		upx -d $DESTDIR/usr/share/boot/httpfs-static
    4.39 +		install -m 755 static_uclibc/httpfs $install/usr/share/boot/httpfs-static
    4.40 +		upx -d $install/usr/share/boot/httpfs-static
    4.41  	else
    4.42  		sed 's/lpthread/& -ldl -lrt/' static_uclibc/make_httpfs | sh
    4.43 -		cp -a httpfs $DESTDIR/usr/share/boot/httpfs-static
    4.44 +		cp -a httpfs $install/usr/share/boot/httpfs-static
    4.45  	fi
    4.46 -	. ./make_httpfs && cp -a httpfs $DESTDIR/usr/bin
    4.47 -	install -m 755 static_uclibc/fusermount $DESTDIR/usr/share/boot/fusermount-static
    4.48 -	upx -d $DESTDIR/usr/share/boot/fusermount-static
    4.49 -	chmod 4755 $DESTDIR/usr/share/boot/fusermount-static
    4.50 -	chmod 555 $DESTDIR/usr/share/boot/httpfs-static
    4.51 +	. ./make_httpfs && cp -a httpfs $install/usr/bin
    4.52 +	install -m 755 static_uclibc/fusermount $install/usr/share/boot/fusermount-static
    4.53 +	upx -d $install/usr/share/boot/fusermount-static
    4.54 +	chmod 4755 $install/usr/share/boot/fusermount-static
    4.55 +	chmod  555 $install/usr/share/boot/httpfs-static
    4.56  }
    4.57  
    4.58 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.59 -genpkg_rules()
    4.60 -{
    4.61 -	mkdir -p $fs/usr
    4.62 -	cp -a $install/usr/bin $fs/usr
    4.63 +genpkg_rules() {
    4.64 +	case $PACKAGE in
    4.65 +		httpfs-fuse)
    4.66 +			copy /usr/bin/
    4.67 +			DEPENDS="fuse"
    4.68 +			;;
    4.69 +		httpfs-fuse-static)
    4.70 +			copy /usr/share/
    4.71 +			CAT="system-tools|static files"
    4.72 +			;;
    4.73 +	esac
    4.74 +	TAGS="filesystem"
    4.75  }
     5.1 --- a/httpfs-fuse/stuff/httpfs.u	Wed Nov 15 06:36:18 2017 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,75 +0,0 @@
     5.4 ---- httpfs.c
     5.5 -+++ httpfs.c
     5.6 -@@ -313,6 +313,7 @@
     5.7 -     struct timeval timeout;
     5.8 -     int bytes, status;
     5.9 - 
    5.10 -+moved:
    5.11 - #ifdef USE_SSL
    5.12 -     if (protocol == PROTO_HTTPS) {
    5.13 - 	/* Make SSL connection. */
    5.14 -@@ -371,6 +372,27 @@
    5.15 - #endif
    5.16 - 
    5.17 -     (void) sscanf(buf, "HTTP/1.1 %d ", &status);
    5.18 -+    if (status == 301 || status == 302) {
    5.19 -+	static int movedcnt = 0;
    5.20 -+	b = strstr(buf,"Location:");
    5.21 -+	if (b != NULL && ++movedcnt < 5) {
    5.22 -+	    char *eol = strchr(b, '\r');
    5.23 -+	    b = strstr(b,"http");
    5.24 -+	    if (eol == NULL || b == NULL)
    5.25 -+		goto notmoved;
    5.26 -+	    *eol = 0;
    5.27 -+	    fprintf(stderr, "%s: HEAD (read) Status %d moved to %s\n",
    5.28 -+			argv0, status, b);
    5.29 -+	    protocol = parseURL(b, host, &file_name, &port);
    5.30 -+	    if (protocol == -1) 
    5.31 -+		goto notmoved;
    5.32 -+	    close(sockfd);
    5.33 -+	    sockfd = open_client_socket(host, port);
    5.34 -+	    if (sockfd >= 0)
    5.35 -+		goto moved;
    5.36 -+	}
    5.37 -+    }
    5.38 -+notmoved:
    5.39 -     if (status != 200) {
    5.40 - 	fprintf(stderr, "%s: HEAD (read) failed with Status %d\n", argv0, status);
    5.41 - 	return -1;
    5.42 -@@ -892,6 +914,7 @@
    5.43 -     struct stat mpstat;
    5.44 -     int sr;
    5.45 -     char* ri;
    5.46 -+    char* s;
    5.47 -     char* fusev[4];
    5.48 - 	
    5.49 -     argv0 = argv[0];
    5.50 -@@ -911,6 +934,14 @@
    5.51 -     if (sockfd < 0)
    5.52 - 	return 1;
    5.53 - 
    5.54 -+    s = httpfs_path;
    5.55 -+    ri = rindex(file_name, '/');
    5.56 -+    if (ri == (char *) 0) {
    5.57 -+	ri = file_name;
    5.58 -+	*s++ = '/';
    5.59 -+    }
    5.60 -+    strcpy(s, ri);
    5.61 -+
    5.62 -     if (getSize() != 0) 
    5.63 - 	return 1;
    5.64 - 
    5.65 -@@ -930,13 +961,6 @@
    5.66 - 	return 1;
    5.67 -     }
    5.68 -     
    5.69 --    ri = rindex(file_name, '/');
    5.70 --    if (ri == (char *) 0) {
    5.71 --	httpfs_path[0] = '/';
    5.72 --	strcpy(&httpfs_path[1], file_name);
    5.73 --    } else
    5.74 --	strcpy(httpfs_path, ri);
    5.75 --
    5.76 -     fusev[0] = argv0;
    5.77 -     fusev[1] = "-o";
    5.78 -     fusev[2] = "nonempty";
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/httpfs-fuse/stuff/patches/httpfs.u	Wed Nov 15 14:21:32 2017 +0200
     6.3 @@ -0,0 +1,75 @@
     6.4 +--- httpfs.c
     6.5 ++++ httpfs.c
     6.6 +@@ -313,6 +313,7 @@
     6.7 +     struct timeval timeout;
     6.8 +     int bytes, status;
     6.9 + 
    6.10 ++moved:
    6.11 + #ifdef USE_SSL
    6.12 +     if (protocol == PROTO_HTTPS) {
    6.13 + 	/* Make SSL connection. */
    6.14 +@@ -371,6 +372,27 @@
    6.15 + #endif
    6.16 + 
    6.17 +     (void) sscanf(buf, "HTTP/1.1 %d ", &status);
    6.18 ++    if (status == 301 || status == 302) {
    6.19 ++	static int movedcnt = 0;
    6.20 ++	b = strstr(buf,"Location:");
    6.21 ++	if (b != NULL && ++movedcnt < 5) {
    6.22 ++	    char *eol = strchr(b, '\r');
    6.23 ++	    b = strstr(b,"http");
    6.24 ++	    if (eol == NULL || b == NULL)
    6.25 ++		goto notmoved;
    6.26 ++	    *eol = 0;
    6.27 ++	    fprintf(stderr, "%s: HEAD (read) Status %d moved to %s\n",
    6.28 ++			argv0, status, b);
    6.29 ++	    protocol = parseURL(b, host, &file_name, &port);
    6.30 ++	    if (protocol == -1) 
    6.31 ++		goto notmoved;
    6.32 ++	    close(sockfd);
    6.33 ++	    sockfd = open_client_socket(host, port);
    6.34 ++	    if (sockfd >= 0)
    6.35 ++		goto moved;
    6.36 ++	}
    6.37 ++    }
    6.38 ++notmoved:
    6.39 +     if (status != 200) {
    6.40 + 	fprintf(stderr, "%s: HEAD (read) failed with Status %d\n", argv0, status);
    6.41 + 	return -1;
    6.42 +@@ -892,6 +914,7 @@
    6.43 +     struct stat mpstat;
    6.44 +     int sr;
    6.45 +     char* ri;
    6.46 ++    char* s;
    6.47 +     char* fusev[4];
    6.48 + 	
    6.49 +     argv0 = argv[0];
    6.50 +@@ -911,6 +934,14 @@
    6.51 +     if (sockfd < 0)
    6.52 + 	return 1;
    6.53 + 
    6.54 ++    s = httpfs_path;
    6.55 ++    ri = rindex(file_name, '/');
    6.56 ++    if (ri == (char *) 0) {
    6.57 ++	ri = file_name;
    6.58 ++	*s++ = '/';
    6.59 ++    }
    6.60 ++    strcpy(s, ri);
    6.61 ++
    6.62 +     if (getSize() != 0) 
    6.63 + 	return 1;
    6.64 + 
    6.65 +@@ -930,13 +961,6 @@
    6.66 + 	return 1;
    6.67 +     }
    6.68 +     
    6.69 +-    ri = rindex(file_name, '/');
    6.70 +-    if (ri == (char *) 0) {
    6.71 +-	httpfs_path[0] = '/';
    6.72 +-	strcpy(&httpfs_path[1], file_name);
    6.73 +-    } else
    6.74 +-	strcpy(httpfs_path, ri);
    6.75 +-
    6.76 +     fusev[0] = argv0;
    6.77 +     fusev[1] = "-o";
    6.78 +     fusev[2] = "nonempty";
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/httpfs-fuse/stuff/patches/series	Wed Nov 15 14:21:32 2017 +0200
     7.3 @@ -0,0 +1,1 @@
     7.4 +-p0|httpfs.u
     8.1 --- a/libvncserver-dev/receipt	Wed Nov 15 06:36:18 2017 +0200
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,23 +0,0 @@
     8.4 -# SliTaz package receipt.
     8.5 -
     8.6 -PACKAGE="libvncserver-dev"
     8.7 -VERSION="0.9.9"
     8.8 -CATEGORY="development"
     8.9 -SHORT_DESC="devel files for libvncserver"
    8.10 -MAINTAINER="slaxemulator@gmail.com"
    8.11 -LICENSE="GPL2"
    8.12 -WEB_SITE="http://libvncserver.sourceforge.net/"
    8.13 -WANTED="libvncserver"
    8.14 -SOURCE="LibVNCServer"
    8.15 -
    8.16 -DEPENDS="libvncserver pkg-config"
    8.17 -
    8.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    8.19 -genpkg_rules()
    8.20 -{
    8.21 -	mkdir -p $fs/usr/lib
    8.22 -	cp -a $install/usr/include $fs/usr
    8.23 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    8.24 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    8.25 -}
    8.26 -
     9.1 --- a/libvncserver/receipt	Wed Nov 15 06:36:18 2017 +0200
     9.2 +++ b/libvncserver/receipt	Wed Nov 15 14:21:32 2017 +0200
     9.3 @@ -1,33 +1,43 @@
     9.4 -# SliTaz package receipt.
     9.5 +# SliTaz package receipt v2.
     9.6  
     9.7  PACKAGE="libvncserver"
     9.8 -VERSION="0.9.9"
     9.9 +VERSION="0.9.11"
    9.10  CATEGORY="network"
    9.11 -SHORT_DESC="The vnc library"
    9.12 +SHORT_DESC="VNC library"
    9.13  MAINTAINER="slaxemulator@gmail.com"
    9.14  LICENSE="GPL2"
    9.15 -SOURCE="LibVNCServer"
    9.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
    9.17 -WEB_SITE="http://libvncserver.sourceforge.net/"
    9.18 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    9.19 +WEB_SITE="http://libvnc.github.io/"
    9.20  
    9.21 -DEPENDS="jpeg zlib libssl"
    9.22 -BUILD_DEPENDS="jpeg-dev zlib openssl-dev"
    9.23 +TARBALL="LibVNCServer-$VERSION.tar.gz"
    9.24 +WGET_URL="https://github.com/LibVNC/libvncserver/archive/$TARBALL"
    9.25  
    9.26 -# Rules to configure and make the package.
    9.27 -compile_rules()
    9.28 -{
    9.29 -	cd $src
    9.30 -	./configure \
    9.31 -		$CONFIGURE_ARGS &&
    9.32 -	make && make install
    9.33 +BUILD_DEPENDS="automake libtool openssl-dev libjpeg-turbo-dev libpng16-dev"
    9.34 +SPLIT="libvncserver-novnc libvncserver-dev"
    9.35 +
    9.36 +compile_rules() {
    9.37 +	./autogen.sh $CONFIGURE_ARGS &&
    9.38 +	make && make install || return 1
    9.39 +
    9.40 +	mkdir -p $install/var/www
    9.41 +	cp -r webclients/novnc $install/var/www
    9.42  }
    9.43  
    9.44 -# Rules to gen a SliTaz package suitable for Tazpkg.
    9.45 -genpkg_rules()
    9.46 -{
    9.47 -	mkdir -p $fs/usr/lib
    9.48 -	cp -a $install/usr/bin $fs/usr
    9.49 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    9.50 +genpkg_rules() {
    9.51 +	case $PACKAGE in
    9.52 +		libvncserver)
    9.53 +			copy *.so*
    9.54 +			DEPENDS="libcrypto libjpeg-turbo libpng16 libssl zlib"
    9.55 +			;;
    9.56 +		libvncserver-novnc)
    9.57 +			copy novnc/
    9.58 +			CAT="network|noVNC web client"
    9.59 +			DEPENDS=" "
    9.60 +			;;
    9.61 +		*-dev)
    9.62 +			copy @dev
    9.63 +			rm -r $fs/var	# it includes 'include/' too and false recognized as dev files
    9.64 +			DEPENDS="libvncserver libjpeg-turbo-dev libpng16-dev openssl-dev \
    9.65 +			zlib-dev"
    9.66 +			;;
    9.67 +	esac
    9.68  }
    9.69 -
    10.1 --- a/upx/receipt	Wed Nov 15 06:36:18 2017 +0200
    10.2 +++ b/upx/receipt	Wed Nov 15 14:21:32 2017 +0200
    10.3 @@ -1,7 +1,7 @@
    10.4 -# SliTaz package receipt.
    10.5 +# SliTaz package receipt v2.
    10.6  
    10.7  PACKAGE="upx"
    10.8 -VERSION="3.93"
    10.9 +VERSION="3.94"
   10.10  CATEGORY="system-tools"
   10.11  SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
   10.12  MAINTAINER="devl547@gmail.com"
   10.13 @@ -13,19 +13,16 @@
   10.14  TARBALL2="upx-lzma-sdk-$VERSION.tar.gz"
   10.15  WGET_URL2="https://github.com/upx/upx-lzma-sdk/archive/v$VERSION.tar.gz"
   10.16  
   10.17 -DEPENDS="ucl zlib"
   10.18  BUILD_DEPENDS="ucl-dev zlib-dev perl"
   10.19  
   10.20 -# Rules to configure and make the package.
   10.21 -compile_rules()
   10.22 -{
   10.23 +compile_rules() {
   10.24  	[ -s $SOURCES_REPOSITORY/$TARBALL2 ] ||
   10.25  		wget -O $SOURCES_REPOSITORY/$TARBALL2 $WGET_URL2
   10.26  	tar -xf $SOURCES_REPOSITORY/$TARBALL2
   10.27  	rm -r $src/src/lzma-sdk
   10.28  	mv    $src/$(basename $TARBALL2 .tar.gz) $src/src/lzma-sdk
   10.29  
   10.30 -	make CHECK_WHITESPACE=/bin/true all
   10.31 +	make CHECK_WHITESPACE=/bin/true all || return 1
   10.32  
   10.33  	mkdir -p $install/usr/bin $install/usr/share/man/man1
   10.34  	cp -a $src/src/upx.out $install/usr/bin/upx
   10.35 @@ -34,8 +31,7 @@
   10.36  	mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1
   10.37  }
   10.38  
   10.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
   10.40 -genpkg_rules()
   10.41 -{
   10.42 +genpkg_rules() {
   10.43  	copy upx
   10.44 +	DEPENDS="ucl zlib"
   10.45  }
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/upx391/receipt	Wed Nov 15 14:21:32 2017 +0200
    11.3 @@ -0,0 +1,41 @@
    11.4 +# SliTaz package receipt v2.
    11.5 +
    11.6 +# Note. While the latest UPX works as expected, it can't decompress some
    11.7 +# executables packed with UPX-1.25 and shipped with the package httpfs-fuse.
    11.8 +# Error message produced with the UPX 3.92-3.94:
    11.9 +# upx: <filename>: Exception: compressed data violation
   11.10 +
   11.11 +PACKAGE="upx391"
   11.12 +VERSION="3.91"
   11.13 +CATEGORY="system-tools"
   11.14 +SHORT_DESC="Ultimate Packer for eXecutables (free version using UCL compression)"
   11.15 +MAINTAINER="devl547@gmail.com"
   11.16 +LICENSE="GPL2"
   11.17 +WEB_SITE="https://upx.github.io/"
   11.18 +
   11.19 +TARBALL="upx-$VERSION.tar.gz"
   11.20 +WGET_URL="https://github.com/upx/upx/archive/v$VERSION.tar.gz"
   11.21 +WGET_URL2="http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
   11.22 +
   11.23 +BUILD_DEPENDS="ucl-dev zlib-dev perl"
   11.24 +
   11.25 +compile_rules() {
   11.26 +	TARBALL2="$(basename $WGET_URL2)"
   11.27 +	SRC2="$SOURCES_REPOSITORY/$TARBALL2"
   11.28 +	[ -s "$SRC2" ] || wget -O "$SRC2" "$WGET_URL2"
   11.29 +	tar -xf "$SRC2"
   11.30 +
   11.31 +	CXXFLAGS="$CXXFLAGS -DWITH_ZLIB=1 -Wno-error=misleading-indentation"
   11.32 +	UPX_LZMADIR=$src make all || return 1
   11.33 +
   11.34 +	mkdir -p $install/usr/bin $install/usr/share/man/man1
   11.35 +	cp -a $src/src/upx.out $install/usr/bin/upx
   11.36 +	cp -a $src/doc $install/usr/share
   11.37 +	rm $install/usr/share/doc/Makefile
   11.38 +	mv $install/usr/share/doc/upx.1 $install/usr/share/man/man1
   11.39 +}
   11.40 +
   11.41 +genpkg_rules() {
   11.42 +	copy upx
   11.43 +	DEPENDS="ucl zlib"
   11.44 +}