wok-current rev 24139

Add redupe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 09 17:05:26 2021 +0000 (2021-11-09)
parents 66587b715a2a
children c7f8c2901186
files get-virtualbox/receipt novnc/receipt python-rpi-pyglow/receipt redupe/description.txt redupe/receipt sc-im/receipt screenfetch/receipt sysbench/receipt syslinux/stuff/iso2exe/init syslinux/stuff/iso2exe/taziso tup/receipt
line diff
     1.1 --- a/get-virtualbox/receipt	Mon Nov 08 17:21:48 2021 +0100
     1.2 +++ b/get-virtualbox/receipt	Tue Nov 09 17:05:26 2021 +0000
     1.3 @@ -8,7 +8,7 @@
     1.4  LICENSE="BSD"
     1.5  WEB_SITE="http://www.virtualbox.org/"
     1.6  
     1.7 -DEPENDS="wget"
     1.8 +DEPENDS="wget cacerts"
     1.9  
    1.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.11  genpkg_rules()
     2.1 --- a/novnc/receipt	Mon Nov 08 17:21:48 2021 +0100
     2.2 +++ b/novnc/receipt	Tue Nov 09 17:05:26 2021 +0000
     2.3 @@ -16,10 +16,15 @@
     2.4  BUILD_DEPENDS="python python-pil openssl git"
     2.5  SUGGESTED="pyopenssl openssl"
     2.6  
     2.7 +current_version()
     2.8 +{
     2.9 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    2.10 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    2.11 +}
    2.12 +
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
    2.16 -	cd $src
    2.17  	mkdir -p $DESTDIR
    2.18  	sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
    2.19  	IMAGE=/usr/share/images/slitaz-background.jpg
     3.1 --- a/python-rpi-pyglow/receipt	Mon Nov 08 17:21:48 2021 +0100
     3.2 +++ b/python-rpi-pyglow/receipt	Tue Nov 09 17:05:26 2021 +0000
     3.3 @@ -1,19 +1,25 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="python-rpi-pyglow"
     3.7 -VERSION="git-1"
     3.8 +VERSION="0.2"
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="Controlling the PiGlow from Python."
    3.11  MAINTAINER="pankso@slitaz.org"
    3.12  LICENSE="BSD"
    3.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.15  WEB_SITE="https://github.com/benleb/PyGlow"
    3.16 -WGET_URL="git|git://github.com/benleb/PyGlow.git"
    3.17 +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
    3.18  TAGS="raspberrypi rpi"
    3.19  HOST_ARCH="arm"
    3.20  
    3.21  DEPENDS="python python-smbus python-psutil python-rpi-gpio"
    3.22  
    3.23 +current_version()
    3.24 +{
    3.25 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    3.26 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    3.27 +}
    3.28 +
    3.29  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.30  genpkg_rules()
    3.31  {
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/redupe/description.txt	Tue Nov 09 17:05:26 2021 +0000
     4.3 @@ -0,0 +1,7 @@
     4.4 +Redupe is a command-line tool for forward error correction of bytestreams.
     4.5 +Forward error correct makes small errors or bitflips easy to detect and correct.
     4.6 +
     4.7 +This package provides several command-line tools for dealing with backup and
     4.8 +longterm storage.  It uses forward error correction to make small errors or
     4.9 +bitflips easy to detect and correct.  Replication is still necessary to protect
    4.10 +against disaster or loss of data.
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/redupe/receipt	Tue Nov 09 17:05:26 2021 +0000
     5.3 @@ -0,0 +1,41 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="redupe"
     5.7 +VERSION="0.1.0"
     5.8 +CATEGORY="system-tools"
     5.9 +SHORT_DESC="Forward error correction."
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +LICENSE="BSD"
    5.12 +WEB_SITE="https://hack.systems/2018/05/16/redupe/"
    5.13 +
    5.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.15 +WGET_URL="https://github.com/rescrv/redupe/archive/refs/tags/v$VERSION.tar.gz"
    5.16 +
    5.17 +DEPENDS="popt"
    5.18 +BUILD_DEPENDS="automake gcc83 popt-dev"
    5.19 +
    5.20 +current_version()
    5.21 +{
    5.22 +	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    5.23 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    5.24 +}
    5.25 +
    5.26 +# Rules to configure and make the package.
    5.27 +compile_rules()
    5.28 +{
    5.29 +	autoreconf -ivf
    5.30 +	./configure			\
    5.31 +		CC=gcc-83		\
    5.32 +		CXX=g++-83		\
    5.33 +		--prefix=/usr		\
    5.34 +		--mandir=/usr/share/man	\
    5.35 +		$CONFIGURE_ARGS &&
    5.36 +	make &&
    5.37 +	make DESTDIR=$DESTDIR install
    5.38 +}
    5.39 +
    5.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.41 +genpkg_rules()
    5.42 +{
    5.43 +	cp -a $install/usr	$fs/
    5.44 +}
     6.1 --- a/sc-im/receipt	Mon Nov 08 17:21:48 2021 +0100
     6.2 +++ b/sc-im/receipt	Tue Nov 09 17:05:26 2021 +0000
     6.3 @@ -16,6 +16,12 @@
     6.4  DEPENDS="ncursesw"
     6.5  BUILD_DEPENDS="bison ncursesw-dev"
     6.6  
     6.7 +current_version()
     6.8 +{
     6.9 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    6.10 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    6.11 +}
    6.12 +
    6.13  # Rules to configure and make the package.
    6.14  compile_rules()
    6.15  {
     7.1 --- a/screenfetch/receipt	Mon Nov 08 17:21:48 2021 +0100
     7.2 +++ b/screenfetch/receipt	Tue Nov 09 17:05:26 2021 +0000
     7.3 @@ -6,17 +6,22 @@
     7.4  SHORT_DESC="Bash screenshot information tool."
     7.5  MAINTAINER="paul@slitaz.org"
     7.6  LICENSE="GPL3"
     7.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     7.8 +TARBALL="$PACKAGE-$VERSION.tar.gz"
     7.9  WEB_SITE="https://github.com/KittyKatt/screenFetch"
    7.10 -WGET_URL="git|git://github.com/KittyKatt/screenFetch"
    7.11 +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
    7.12  
    7.13  DEPENDS="bash procps xorg-xdpyinfo"
    7.14  BUILD_DEPENDS="git bzip2"
    7.15  
    7.16 +current_version()
    7.17 +{
    7.18 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    7.19 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    7.20 +}
    7.21 +
    7.22  # Rules to configure and make the package.
    7.23  compile_rules()
    7.24  {
    7.25 -	cd $src
    7.26  	# patch for SliTaz (use basic artwork - job for artwork team?)
    7.27  	patch -i ../../stuff/slitaz.patch
    7.28  }
     8.1 --- a/sysbench/receipt	Mon Nov 08 17:21:48 2021 +0100
     8.2 +++ b/sysbench/receipt	Tue Nov 09 17:05:26 2021 +0000
     8.3 @@ -6,19 +6,25 @@
     8.4  SHORT_DESC="A modular, cross-platform and multi-threaded benchmark tool."
     8.5  MAINTAINER="pascal.bellard@slitaz.org"
     8.6  LICENSE="GPL2"
     8.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     8.8 +TARBALL="$PACKAGE-$VERSION.tar.gz"
     8.9  WEB_SITE="https://github.com/akopytov/sysbench"
    8.10  WGET_URL="git|git://github.com/akopytov/sysbench.git"
    8.11  
    8.12  DEPENDS="libmysqlclient libssl zlib"
    8.13  BUILD_DEPENDS="git automake autoconf libtool mysql-dev openssl-dev zlib-dev"
    8.14  
    8.15 +current_version()
    8.16 +{
    8.17 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    8.18 +	sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
    8.19 +}
    8.20 +
    8.21  # Rules to configure and make the package.
    8.22  compile_rules()
    8.23  {
    8.24  	./autogen.sh
    8.25  	./configure --prefix=/usr $CONFIGURE_ARGS &&
    8.26 -	make &&
    8.27 +	make -j 1 &&
    8.28  	make DESTDIR=$DESTDIR install
    8.29  }
    8.30  
     9.1 --- a/syslinux/stuff/iso2exe/init	Mon Nov 08 17:21:48 2021 +0100
     9.2 +++ b/syslinux/stuff/iso2exe/init	Tue Nov 09 17:05:26 2021 +0000
     9.3 @@ -10,8 +10,8 @@
     9.4  getiso()
     9.5  {
     9.6  	mkdir -p $media
     9.7 -	for dev in /sys/block/*; do
     9.8 -		for dev in $(ls -d $dev/$(basename $dev)*); do
     9.9 +	for bdev in /sys/block/*; do
    9.10 +		for dev in $(ls -d $bdev/$(basename $bdev)*); do
    9.11  			[ "$dev" ] || continue 2
    9.12  			mount /dev/$(basename $dev) $mnt
    9.13  			if [ -s $mnt/$ISO ] && [ $(getarg magic) = $(hexdump -v -s  18 -n 2 -e "\"\" 1/2 \" %u\n\"" $mnt/$ISO) ]; then
    10.1 --- a/syslinux/stuff/iso2exe/taziso	Mon Nov 08 17:21:48 2021 +0100
    10.2 +++ b/syslinux/stuff/iso2exe/taziso	Tue Nov 09 17:05:26 2021 +0000
    10.3 @@ -363,7 +363,7 @@
    10.4  	[ -s $mnt/boot.ini ] && ! grep -qs tazboot $mnt/boot.ini &&               
    10.5  	echo "Update boot.ini ..." && unix2dos >> $mnt/boot.ini <<EOT             
    10.6  C:\\slitaz\\boot\\tazboot.exe="SliTaz"                                                
    10.7 -EOT                                                                               
    10.8 +EOT
    10.9  false &&                                                                          
   10.10  	grep -qis menuitem $mnt/config.sys && ! grep -qi tazboot $mnt/config.sys &&
   10.11  	echo "Update config.sys ..." &&                                            
    11.1 --- a/tup/receipt	Mon Nov 08 17:21:48 2021 +0100
    11.2 +++ b/tup/receipt	Tue Nov 09 17:05:26 2021 +0000
    11.3 @@ -13,10 +13,15 @@
    11.4  DEPENDS="fuse"
    11.5  BUILD_DEPENDS="fuse-dev git"
    11.6  
    11.7 +current_version()
    11.8 +{
    11.9 +	wget -O - https://github.com/gittup/tup/tags 2>/dev/null | \
   11.10 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
   11.11 +}
   11.12 +
   11.13  # Rules to configure and make the package.
   11.14  compile_rules()
   11.15  {
   11.16 -	cd $src
   11.17  	./bootstrap.sh &&
   11.18  	mkdir -p $DESTDIR/usr/bin
   11.19  	cp tup $DESTDIR/usr/bin