wok diff f2c/receipt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (7 months ago) |
parents | 0a3aadaa7736 |
children |
line diff
1.1 --- a/f2c/receipt Fri Apr 15 16:39:27 2022 +0000 1.2 +++ b/f2c/receipt Fri Mar 08 14:12:03 2024 +0100 1.3 @@ -6,9 +6,9 @@ 1.4 SHORT_DESC="A Fortran 77 to C translator." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 LICENSE="MIT" 1.7 -TARBALL="$PACKAGE-$VERSION.tgz" 1.8 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.9 WEB_SITE="https://github.com/barak/f2c" 1.10 -WGET_URL="http://www.netlib.org/f2c/src.tgz" 1.11 +WGET_URL="https://github.com/barak/f2c/archive/refs/tags/upstream/$VERSION.tar.gz" 1.12 LIBF2C="http://www.netlib.org/f2c/libf2c.zip" 1.13 EXTRA_SOURCE_FILES="${LIBF2C##*/}" 1.14 TAGS="fortran" 1.15 @@ -16,8 +16,8 @@ 1.16 # What is the latest version available today? 1.17 current_version() 1.18 { 1.19 - wget -O - $WGET_URL 2>/dev/null | \ 1.20 - tar xOzf - src/changes | sed '/^20[0-9]/!d' | sort -Vr | sed q 1.21 + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ 1.22 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 1.23 } 1.24 1.25 # Rules to configure and make the package. 1.26 @@ -25,6 +25,7 @@ 1.27 { 1.28 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || 1.29 wget -P $SOURCES_REPOSITORY $LIBF2C 1.30 + cd src 1.31 cp makefile.u makefile 1.32 make 1.33 mkdir libf2c && cd libf2c 1.34 @@ -37,10 +38,10 @@ 1.35 genpkg_rules() 1.36 { 1.37 mkdir -p $install/usr/man $fs/usr/bin $fs/usr/lib $fs/usr/include 1.38 - cp -a $src/f2c $fs/usr/bin 1.39 - cp -a $src/libf2c/f2c.h $fs/usr/include 1.40 - cp -a $src/libf2c/libf2c.a $fs/usr/lib 1.41 - cp -a $src/libf2c/libf2c.so $fs/usr/lib/libf2c.so.1.0.0 1.42 + cp -a $src/src/f2c $fs/usr/bin 1.43 + cp -a $src/src/libf2c/f2c.h $fs/usr/include 1.44 + cp -a $src/src/libf2c/libf2c.a $fs/usr/lib 1.45 + cp -a $src/src/libf2c/libf2c.so $fs/usr/lib/libf2c.so.1.0.0 1.46 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so.1 1.47 ln -s libf2c.so.1.0.0 $fs/usr/lib/libf2c.so 1.48 cp -a $src/f2c.1t $install/usr/man/f2c.1