# HG changeset patch # User Pascal Bellard # Date 1636477526 0 # Node ID 8eaf1d9eb640617b2be40421103fb15253b29559 # Parent 66587b715a2a8730709de1789fa94f3304d2ffae Add redupe diff -r 66587b715a2a -r 8eaf1d9eb640 get-virtualbox/receipt --- a/get-virtualbox/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/get-virtualbox/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -8,7 +8,7 @@ LICENSE="BSD" WEB_SITE="http://www.virtualbox.org/" -DEPENDS="wget" +DEPENDS="wget cacerts" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 66587b715a2a -r 8eaf1d9eb640 novnc/receipt --- a/novnc/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/novnc/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -16,10 +16,15 @@ BUILD_DEPENDS="python python-pil openssl git" SUGGESTED="pyopenssl openssl" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { - cd $src mkdir -p $DESTDIR sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh IMAGE=/usr/share/images/slitaz-background.jpg diff -r 66587b715a2a -r 8eaf1d9eb640 python-rpi-pyglow/receipt --- a/python-rpi-pyglow/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/python-rpi-pyglow/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -1,19 +1,25 @@ # SliTaz package receipt. PACKAGE="python-rpi-pyglow" -VERSION="git-1" +VERSION="0.2" CATEGORY="system-tools" SHORT_DESC="Controlling the PiGlow from Python." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" -TARBALL="$PACKAGE-$VERSION.tar.bz2" +TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/benleb/PyGlow" -WGET_URL="git|git://github.com/benleb/PyGlow.git" +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" TAGS="raspberrypi rpi" HOST_ARCH="arm" DEPENDS="python python-smbus python-psutil python-rpi-gpio" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r 66587b715a2a -r 8eaf1d9eb640 redupe/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/redupe/description.txt Tue Nov 09 17:05:26 2021 +0000 @@ -0,0 +1,7 @@ +Redupe is a command-line tool for forward error correction of bytestreams. +Forward error correct makes small errors or bitflips easy to detect and correct. + +This package provides several command-line tools for dealing with backup and +longterm storage. It uses forward error correction to make small errors or +bitflips easy to detect and correct. Replication is still necessary to protect +against disaster or loss of data. diff -r 66587b715a2a -r 8eaf1d9eb640 redupe/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/redupe/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="redupe" +VERSION="0.1.0" +CATEGORY="system-tools" +SHORT_DESC="Forward error correction." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="BSD" +WEB_SITE="https://hack.systems/2018/05/16/redupe/" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/rescrv/redupe/archive/refs/tags/v$VERSION.tar.gz" + +DEPENDS="popt" +BUILD_DEPENDS="automake gcc83 popt-dev" + +current_version() +{ + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + autoreconf -ivf + ./configure \ + CC=gcc-83 \ + CXX=g++-83 \ + --prefix=/usr \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/usr $fs/ +} diff -r 66587b715a2a -r 8eaf1d9eb640 sc-im/receipt --- a/sc-im/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/sc-im/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -16,6 +16,12 @@ DEPENDS="ncursesw" BUILD_DEPENDS="bison ncursesw-dev" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 66587b715a2a -r 8eaf1d9eb640 screenfetch/receipt --- a/screenfetch/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/screenfetch/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -6,17 +6,22 @@ SHORT_DESC="Bash screenshot information tool." MAINTAINER="paul@slitaz.org" LICENSE="GPL3" -TARBALL="$PACKAGE-$VERSION.tar.bz2" +TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/KittyKatt/screenFetch" -WGET_URL="git|git://github.com/KittyKatt/screenFetch" +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="bash procps xorg-xdpyinfo" BUILD_DEPENDS="git bzip2" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { - cd $src # patch for SliTaz (use basic artwork - job for artwork team?) patch -i ../../stuff/slitaz.patch } diff -r 66587b715a2a -r 8eaf1d9eb640 sysbench/receipt --- a/sysbench/receipt Mon Nov 08 17:21:48 2021 +0100 +++ b/sysbench/receipt Tue Nov 09 17:05:26 2021 +0000 @@ -6,19 +6,25 @@ SHORT_DESC="A modular, cross-platform and multi-threaded benchmark tool." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.bz2" +TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/akopytov/sysbench" WGET_URL="git|git://github.com/akopytov/sysbench.git" DEPENDS="libmysqlclient libssl zlib" BUILD_DEPENDS="git automake autoconf libtool mysql-dev openssl-dev zlib-dev" +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { ./autogen.sh ./configure --prefix=/usr $CONFIGURE_ARGS && - make && + make -j 1 && make DESTDIR=$DESTDIR install } diff -r 66587b715a2a -r 8eaf1d9eb640 syslinux/stuff/iso2exe/init --- a/syslinux/stuff/iso2exe/init Mon Nov 08 17:21:48 2021 +0100 +++ b/syslinux/stuff/iso2exe/init Tue Nov 09 17:05:26 2021 +0000 @@ -10,8 +10,8 @@ getiso() { mkdir -p $media - for dev in /sys/block/*; do - for dev in $(ls -d $dev/$(basename $dev)*); do + for bdev in /sys/block/*; do + for dev in $(ls -d $bdev/$(basename $bdev)*); do [ "$dev" ] || continue 2 mount /dev/$(basename $dev) $mnt if [ -s $mnt/$ISO ] && [ $(getarg magic) = $(hexdump -v -s 18 -n 2 -e "\"\" 1/2 \" %u\n\"" $mnt/$ISO) ]; then diff -r 66587b715a2a -r 8eaf1d9eb640 syslinux/stuff/iso2exe/taziso --- a/syslinux/stuff/iso2exe/taziso Mon Nov 08 17:21:48 2021 +0100 +++ b/syslinux/stuff/iso2exe/taziso Tue Nov 09 17:05:26 2021 +0000 @@ -363,7 +363,7 @@ [ -s $mnt/boot.ini ] && ! grep -qs tazboot $mnt/boot.ini && echo "Update boot.ini ..." && unix2dos >> $mnt/boot.ini </dev/null | \ + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { - cd $src ./bootstrap.sh && mkdir -p $DESTDIR/usr/bin cp tup $DESTDIR/usr/bin