# HG changeset patch # User Pascal Bellard # Date 1647341971 0 # Node ID 82d54eca72be8ab9ec282ede618488c03361e078 # Parent 798acb92d4d53ef1b4a3b0f63fbb692d435f7034 cookutils: add repo-cooking (used by tank) diff -r 798acb92d4d5 -r 82d54eca72be blender/receipt --- a/blender/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/blender/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -6,7 +6,7 @@ TAGS="3D creator editor" SHORT_DESC="3D content creation suite." MAINTAINER="pankso@slitaz.org" -LICENSE="GPL" +LICENSE="GPL2 GPL3" WEB_SITE="https://www.blender.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" diff -r 798acb92d4d5 -r 82d54eca72be cookutils/stuff/repo-cooking --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cookutils/stuff/repo-cooking Tue Mar 15 10:59:31 2022 +0000 @@ -0,0 +1,216 @@ +#!/bin/sh + +# Make repo.json for Repology using SliTaz Cooking packages +# Aleksey Bobylev +# +# 2018-08-11: initial, working on my localhost +# 2018-09-04: fix paths for use at Tank +# 2018-09-08: fix space in src, fix md5sum when EXTRAVERSION used, skip empty src, skip broken, store log +# 2019-01-15: block parallel execution +# 2019-01-23: drop duplicate lines in DB (if any), discard empty repo.json, use absolute paths + +mirror='/home/slitaz/packages' +local_repo='/home/slitaz/wok-hg' + +my_log="/home/slitaz/log/repo-cooking.$(date '+%Y%m%d_%H%M%S')" +block='/home/slitaz/log/repo-cooking.block' + +local_bin=/root/bin + +# packages.info +# 1: name +# 2: version +# 3: category +# 4: short description +# 5: home +# 6: tags +# 7: size_packed size_unpacked +# 8: dependencies +# 9: checksum +# 10: maintainer +# 11: license +# 12: src URL +# 13: wanted +# 14: build dependencies +# 15: package md5sum +# 16: version without extraversion + +timestamp1=$(date '+%s') +date_for_json=$(date '+%F %T') + +if [ -e "$block" ]; then + echo "$0 already executed. Exit" | tee "$my_log" + exit 1 +fi +touch "$block" + +ls ${my_log%.*}* | sed '1,10d;s|.*|rm -f &|' | sh # keep only 10 log files + + +tempd=$(mktemp -d) + +sort -u $mirror/packages.info > $tempd/packages.info # drop duplicate lines +sort -u $mirror/packages.md5 > $tempd/packages.md5 # + +# get base settings +c_version=$(awk -F$'\t' -vp='cookutils' '{if ($1 == p) {print $2; exit}}' $tempd/packages.info) #' +cp $mirror/cookutils-$c_version.tazpkg $tempd/ + +cd $tempd +tazpkg extract $tempd/cookutils-$c_version.tazpkg 2>/dev/null >&2 +cp $tempd/cookutils-$c_version/fs/etc/slitaz/cook.conf $tempd/ +rm $tempd/cookutils-$c_version.tazpkg +rm -r $tempd/cookutils-$c_version/ + +# define some useful variables +. $tempd/cook.conf + + +ls $local_repo \ +| while read pkg_i; do + i=$(( i + 1 )) + [ -f "$local_repo/$pkg_i/receipt" ] || continue + + unset MAINTAINER LICENSE WGET_URL WANTED BUILD_DEPENDS VERSION EXTRAVERSION + + case $i in + *00) echo $i;; + *0) echo -n $i;; + esac + echo -n '.' + + . "$local_repo/$pkg_i/receipt" + + MAINTAINER=$(echo $MAINTAINER | sed 's|.*<||; s|>||') + + LICENSE=$(echo $LICENSE) + + WGET_URL=$(echo $WGET_URL | sed 's#^git|git#git#; s#^git|https*#git#; s#^svn|https*#svn#; s#^subversion|svn#svn#; s#^subversion|https*#svn#; s#^svn|svn#svn#; s#^hg|#hg://#; s#^mercurial|#hg://#; s#^bzr|#bzr://#; s#^cvs|#cvs://#') + + WANTED=$(echo $WANTED) + case $pkg_i in + locale-*-extra) WANTED='slitaz-i18n-extra';; + locale-*) WANTED='slitaz-i18n';; + esac + + BUILD_DEPENDS=$(echo $BUILD_DEPENDS) + + MD5SUM="$(fgrep " $pkg_i-$VERSION" $tempd/packages.md5 | cut -d' ' -f1)" + if [ $(echo "$MD5SUM" | wc -l) -ne 1 ]; then + echo "$pkg_i: error: multiple md5sum" >>$my_log + fi + + sed -i "/^$pkg_i / s|$| $MAINTAINER $LICENSE $WGET_URL $WANTED $BUILD_DEPENDS $MD5SUM $VERSION|" $tempd/packages.info +done +echo +echo + +timestamp2=$(date '+%s') +echo "Stage 1: $(( timestamp2 - timestamp1 )) s" >>$my_log +echo "Packages: $(wc -l ./packages.info)" >>$my_log +echo >>$my_log + + + +{ + echo '{"repo":"SliTaz Cooking","date":"'$date_for_json'","items":[' + + comma_up='' + + { ls $local_repo; echo '@the_end@'; } \ + | while read pkg_i; do + echo "$pkg_i" >&2 + + case $pkg_i in + @the_end@) echo ']}'; break;; + get-*) continue;; + esac + + pkg_line=$(sed -n "/^$pkg_i /p" $tempd/packages.info) + + wanted=$(echo "$pkg_line" | cut -d$'\t' -f 13) + [ -z "$wanted" ] || continue + + echo "$pkg_i" >> $tempd/packages.txt + + ver=$( echo "$pkg_line" | cut -d$'\t' -f 16) + home=$( echo "$pkg_line" | cut -d$'\t' -f 5) + maintainer=$(echo "$pkg_line" | cut -d$'\t' -f 10) + license=$( echo "$pkg_line" | cut -d$'\t' -f 11 | sed 's| |","|g') + if [ -z "$license" ]; then + echo "$pkg_i: license is empty" >>$my_log + license='unknown' + fi + src=$( echo "$pkg_line" | cut -d$'\t' -f 12 | sed 's| .*||') + bdeps=$( echo "$pkg_line" | cut -d$'\t' -f 14 | sed 's| |","|g') + + # skip + if [ -z "$ver" ]; then + echo "$pkg_i: ver empty, skip" >>$my_log + continue + fi + + echo "$comma_up{\"meta\":\"$pkg_i\", \"ver\":\"$ver\", \"maintainer\":\"$maintainer\", \"home\":\"$home\", \"license\":[\"$license\"]" + + [ -z "$src" ] || echo ", \"src\":\"$src\"" + [ -z "$bdeps" ] || echo ", \"bdeps\":[\"$bdeps\"]" + + echo ", \"pkgs\":[" + + comma_up=',' + comma='' + + want=$(awk -F$'\t' -vp="$pkg_i" '{if ($13 == p) {print $1}}' $tempd/packages.info) #' + for pkg_j in $pkg_i $want; do + echo " - $pkg_j" >> $tempd/packages.txt + + pkg_line=$(sed -n "/^$pkg_j /p" $tempd/packages.info) + + echo $comma; comma=',' + + ver_sub=$(echo "$pkg_line" | cut -d$'\t' -f 16) + if [ "$ver" != "$ver_sub" ]; then + echo "$pkg_i > $pkg_j: version mismatch '$ver' -> '$ver_sub'" >>$my_log + fi + + ver_ext=$( echo "$pkg_line" | cut -d$'\t' -f 2) + cat=$( echo "$pkg_line" | cut -d$'\t' -f 3) + desc=$( echo "$pkg_line" | cut -d$'\t' -f 4 | sed 's|"|\\"|g') + tags=$( echo "$pkg_line" | cut -d$'\t' -f 6 | sed 's| |","|g') + pkg_size=$( echo "$pkg_line" | cut -d$'\t' -f 7 | cut -d' ' -f1) + installed_size=$(echo "$pkg_line" | cut -d$'\t' -f 7 | cut -d' ' -f2) + deps=$( echo "$pkg_line" | cut -d$'\t' -f 8 | sed 's| |","|g') + pkg_md5sum=$( echo "$pkg_line" | cut -d$'\t' -f 15) + + echo "{\"name\":\"$pkg_j\", \"cat\":\"$cat\", \"desc\":\"$desc\"" + + [ -z "$tags" ] || echo ",\"tags\":[\"$tags\"]" + + [ -z "$deps" ] || echo ",\"deps\":[\"$deps\"]" + + echo ",\"pkg_size\":\"$pkg_size\", \"installed_size\":\"$installed_size\", \"pkg_md5sum\":\"$pkg_md5sum\", \"get\":\"http://mirror.slitaz.org/packages/cooking/$pkg_j-$ver_ext.tazpkg\"" + + echo '}' + done + + echo ']}' + done +} > $tempd/repo-dirt.json + +cat $tempd/repo-dirt.json | $local_bin/jq '.' > $tempd/repo.json + +if [ -s $tempd/repo.json ]; then + gzip $tempd/repo.json + $local_bin/advdef -z4 $tempd/repo.json.gz + mv $tempd/repo.json.gz $mirror +else + echo "ERROR! New repo.json was discarded" >>$my_log +fi + +rm -rf $tempd + +timestamp3=$(date '+%s') + +echo -e "\nStage 2: $(( timestamp3 - timestamp2 )) s" >>$my_log +echo "Finished: $(date '+%F %T')" >>$my_log +rm "$block" diff -r 798acb92d4d5 -r 82d54eca72be coreutils-file-special/receipt --- a/coreutils-file-special/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/coreutils-file-special/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="coreutils-file-special" -VERSION="8.31" +VERSION="9.0" CATEGORY="system-tools" SHORT_DESC="GNU utilities that work with special file types." MAINTAINER="rcx@zoominternet.net" diff -r 798acb92d4d5 -r 82d54eca72be dsh/receipt --- a/dsh/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/dsh/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -5,7 +5,7 @@ CATEGORY="network" SHORT_DESC="Wrapper for executing multiple remote shell (rsh/remsh/ssh) commands" MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="" +LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.netfort.gr.jp/~dancer/software/dsh.html.en" WGET_URL="https://www.netfort.gr.jp/~dancer/software/downloads/$TARBALL" diff -r 798acb92d4d5 -r 82d54eca72be emacs-pkg-po-mode/receipt --- a/emacs-pkg-po-mode/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/emacs-pkg-po-mode/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="emacs-pkg-po-mode" -VERSION="0.19.8.1" +VERSION="0.21" CATEGORY="development" SHORT_DESC="An Emacs major mode for editing or modifying PO files." MAINTAINER="domcox@slitaz.org" diff -r 798acb92d4d5 -r 82d54eca72be freeradius-dialupadmin/receipt --- a/freeradius-dialupadmin/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/freeradius-dialupadmin/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="freeradius-dialupadmin" -VERSION="3.0.20" +VERSION="3.0.25" CATEGORY="network" SHORT_DESC="radius server web interface" MAINTAINER="sdaigl@lacitec.on.ca" diff -r 798acb92d4d5 -r 82d54eca72be fritzing/receipt --- a/fritzing/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/fritzing/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -5,7 +5,7 @@ CATEGORY="development" SHORT_DESC="Electronic Design Automation software; from prototype to product." MAINTAINER="pankso@slitaz.org" -LICENSE="GPL" +LICENSE="GPL2 GPL3 CC-BY-SA" WEB_SITE="http://fritzing.org" TARBALL="$PACKAGE-$VERSION.tar.gz" diff -r 798acb92d4d5 -r 82d54eca72be fzy/receipt --- a/fzy/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/fzy/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -4,6 +4,7 @@ VERSION="1.0" CATEGORY="utilities" SHORT_DESC="A fast, simple fuzzy finder." +LICENSE="MIT" MAINTAINER="paul@slitaz.org" WEB_SITE="https://github.com/jhawthorn/fzy" diff -r 798acb92d4d5 -r 82d54eca72be gst-omx/receipt --- a/gst-omx/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/gst-omx/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -5,7 +5,7 @@ CATEGORY="system-tools" SHORT_DESC="GSt OpenMAX IL plugin with hw-accelerated video decoding on the R-Pi." MAINTAINER="pankso@slitaz.org" -LICENSE="GPL" +LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="https://gstreamer.freedesktop.org/releases/gst-omx/1.0.0.html" WGET_URL="https://gstreamer.freedesktop.org/src/gst-omx/$TARBALL" diff -r 798acb92d4d5 -r 82d54eca72be kivy/receipt --- a/kivy/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/kivy/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -6,7 +6,7 @@ CATEGORY="development" SHORT_DESC="Cross platform library for rapid development of applications." MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="LGPL3" +LICENSE="MIT" WEB_SITE="https://kivy.org/" TARBALL="$SOURCE-$VERSION.tar.gz" diff -r 798acb92d4d5 -r 82d54eca72be kompozer/receipt --- a/kompozer/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/kompozer/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -5,7 +5,7 @@ CATEGORY="network" SHORT_DESC="KompoZer is a complete web authoring system." MAINTAINER="maintainer@slitaz.org" -LICENSE="MPL" +LICENSE="MPL1.1" WEB_SITE="http://kompozer.net" TARBALL="$PACKAGE-$VERSION-src.tar.bz2" diff -r 798acb92d4d5 -r 82d54eca72be lyx-locales/receipt --- a/lyx-locales/receipt Tue Mar 15 11:15:30 2022 +0100 +++ b/lyx-locales/receipt Tue Mar 15 10:59:31 2022 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="lyx-locales" -VERSION="2.3.4.4" +VERSION="2.3.6.1" CATEGORY="localization" SHORT_DESC="Locale files for LyX." MAINTAINER="al.bobylev@gmail.com"