Compare commits

...

12 Commits

Author SHA1 Message Date
Alexander Tratsevskiy 26c676be52 fix deps
6 months ago
Alexander Tratsevskiy e801fe831c update masks
6 months ago
Alexander Tratsevskiy e16395b081 sys-kernel/calculate-sources: Version bump to 6.5.11, 6.1.62, 5.15.138, 5.10.200
6 months ago
Alexander Tratsevskiy 4a9e9f5ad5 Merge pull request 'fixes2' (#59) from ktrace/calculate-overlay:fixes2 into develop
6 months ago
Alexander Tratsevskiy 14ecc2a108 Merge pull request 'net-im/viber-21.0.0.1: improve dependencies' (#57) from kuraga/calculate-overlay:net-im/viber-21.0.0.1-improve-dependencies into develop
6 months ago
Alexander Tratsevskiy 4dada52314 Merge pull request 'app-text/wgetpaste: up and patch for calculate & orgru' (#56) from ktrace/calculate-overlay:wgetpaste into develop
6 months ago
ktrace 36f3ef194e media-libs/libjpeg8: clean some extremally unneeded things
6 months ago
ktrace 7b6f0e8e35 steam-launcher/steam-launcher: fix license again
6 months ago
Alexander Kurakin e461808a66 net-im/viber-21.0.0.1: improve dependencies
6 months ago
Victor Kustov b97f58cded fix default
6 months ago
ktrace e045f99483 Изменил(а) на 'profiles/default/package.mask'
6 months ago
Victor Kustov 2ee14ae366 app-text/wgetpaste: up and patch for calculate & orgru
6 months ago

@ -1 +1 @@
DIST wgetpaste-2.25.tar.bz2 11107 BLAKE2B 1ed46ada9045326583900a78bbbd66ea7776ae7ae7191b14f258ef417ef65c344d6ff7e6c5ac0592d93c2936bc189ea0a33c18a8f2e6a0eb9e4e1d9d3b67701b SHA512 c3cd56f32311c77ce5ac970f0cd6b2e8285cac3caaf61669237ac707ed3b9aab285fbe9dee6260ea13b8df41a22acfaa3b8439298560ab68c3a568d60557d82e
DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab

@ -1,188 +0,0 @@
diff -ruN wgetpaste-2.22.orig/wgetpaste wgetpaste-2.22/wgetpaste
--- wgetpaste-2.25.orig/wgetpaste 2014-01-21 11:31:59.475610453 +0400
+++ wgetpaste-2.25/wgetpaste 2014-01-21 11:41:13.858639053 +0400
@@ -6,6 +6,8 @@
VERSION="2.25"
+DEFAULT_SERVICE="calculate"
+
# don't inherit LANGUAGE from the env
unset LANGUAGE
@@ -14,7 +16,7 @@ E=$'\e'
N=$'\n'
### services
-SERVICES="bpaste ca codepad dpaste gists poundpython"
+SERVICES="bpaste ca codepad dpaste gists poundpython calculate"
# bpaste
ENGINE_bpaste=lodgeit
URL_bpaste="http://bpaste.net/"
@@ -42,6 +44,17 @@ URL_poundpython="http://paste.pound-python.org/"
ENGINE_tinyurl=tinyurl
URL_tinyurl="http://tinyurl.com/ api-create.php"
REGEX_RAW_tinyurl='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2|'
+# calculate
+ENGINE_calculate=calculate
+if [[ "$LANG" =~ 'ru_RU' ]]; then
+ URL_calculate="http://pastebin.calculate-linux.ru"
+else
+ URL_calculate="http://pastebin.calculate-linux.org"
+fi
+DEFAULT_LANGUAGE_calculate="Text"
+DEFAULT_PARENT_calculate=""
+DEFAULT_PRIVATE_calculate=0
+SIZE_calculate="25000 25%kB"
### engines
# ca
@@ -52,12 +65,12 @@ LANGUAGE_COUNT_ca=0
EXPIRATIONS_ca="Never 5%minutes 10%minutes 15%minutes 30%minutes 45%minutes 1%hour 2%hours \
4%hours 8%hours 12%hours 1%day 2%days 3%days 1%week 2%weeks 3%weeks 1%month 2%months \
3%months 4%months 5%months 6%months 1%year"
-POST_ca="s=Submit+Post name description type expiry % content"
+POST_ca="s=Submit+Post name description type expiry % % % content"
REGEX_URL_ca='s|^.*content="[0-9]*;\(http://[^/]*/[0-9]*\)".*$|\1|p'
REGEX_RAW_ca='s|^\(http://[^/]*/\)\([0-9]*\)$|\1raw/\2|'
# codepad
LANGUAGES_codepad="C C++ D Haskell Lua OCaml PHP Perl Plain%Text Python Ruby Scheme Tcl"
-POST_codepad="submit % % lang % % code"
+POST_codepad="submit % % lang % % % % code"
REGEX_URL_codepad='s|^--.*\(http://codepad.org/[^ ]\+\)|\1|p'
REGEX_RAW_codepad='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2/raw.rb|'
# dpaste
@@ -67,7 +80,7 @@ LANGUAGE_VALUES_dpaste="% Apache Bash Css Diff DjangoTemplate Haskell JScript Py
Ruby Rhtml Sql Xml"
EXPIRATIONS_dpaste="30%days 30%days%after%last%view"
EXPIRATION_VALUES_dpaste="off on"
-POST_dpaste="submit=Paste+it poster title language hold % content"
+POST_dpaste="submit=Paste+it poster title language hold % % % content"
REGEX_RAW_dpaste='s|^\(http://[^/]*/\)[^0-9]*\([0-9]*/\)$|\1\2plain/|'
# gists
LANGUAGES_gists="ActionScript Ada Apex AppleScript Arc Arduino ASP Assembly
@@ -141,8 +154,23 @@ objective-c objective-j ocaml ooc perl php text pov prolog python python3 py3tb
ragel-c ragel-cpp ragel-d ragel-java ragel-objc ragel-ruby raw rconsole rebol redcode rst rhtml rb \
rbcon splus sass scala scheme smalltalk smarty sql sqlite3 squidconf tcl tcsh tex diff vala vb.net \
vim xml xml+cheetah xml+django xml+evoque xml+mako xml+myghty xml+php xml+erb xml+smarty xslt yaml"
-POST_lodgeit="submit=Paste! % % language % % code"
+POST_lodgeit="submit=Paste! % % language % % % % code"
REGEX_RAW_lodgeit='s|^\(http://[^/]*/\)show\(/[[:alnum:]]*/\)$|\1raw\2|'
+# calculate
+LANGUAGES_calculate="Apache Bash Batch Boo C C# C++ Clojure Creole_Wiki CSS \
+CSV D Debian_control-files Django_Jinja_Templates Dylan Erlang eRuby_rhtml GAS GCC_Messages \
+Genshi_Templates Gettext_catalogs GL_Shader_language Haskell HTML INI_File Interactive_Ruby IO \
+IRC_Logs Java javac_Messages JavaScript JSP Lighttpd Literate_Haskell LLVM Lua Mako_Templates Matlab \
+Matlab_Session MiniD Multi-File Myghty_Templates MySQL Nasm Nginx Object-Pascal OCaml Perl PHP \
+PHP_(inline) Povray Python Python_Console_Sessions Python_Tracebacks reStructuredText Ruby Scala \
+Scheme Smalltalk Smarty sources.list SQL SquidConf TeX_LaTeX Text Unified_Diff Vim XML XSLT YAML"
+LANGUAGE_VALUES_calculate="apache bash bat boo c csharp cpp clojure creole css csv d control html+django \
+dylan erlang rhtml gas gcc-messages html+genshi gettext glsl haskell html ini irb io irc java \
+javac-messages js jsp lighttpd literate-haskell llvm lua html+mako matlab matlabsession minid multi \
+html+myghty mysql nasm nginx objectpascal ocaml perl html+php php povray python pycon pytb rst ruby \
+scala scheme smalltalk smarty sourceslist sql squidconf tex text diff vim xml xslt yaml"
+POST_calculate="submit=paste! % % language % parent private % text"
+REGEX_RAW_calculate='s|^\(http://[^/]*/\)show\(/[0-9]*/\)$|\1raw\2|'
### errors
die() {
@@ -340,6 +368,9 @@ Options:
-s, --service SERVICE set service to use (defaults to "$DEFAULT_SERVICE")
-e, --expiration EXPIRATION set when it should expire (defaults to "$DEFAULT_EXPIRATION")
+ -p, --parent PARENT set parent paste (defaults to "$DEFAULT_PARENT", make use id paste) (Calculate pastebin option)
+ -P, --private PRIVATE set private status (defaults to "$DEFAULT_PRIVATE") (Calculate pastebin option)
+
-S, --list-services list supported pastebin services
-L, --list-languages list languages supported by the specified service
-E, --list-expiration list expiration setting supported by the specified service
@@ -431,6 +462,18 @@ showlanguages() {
done | sort
}
+showprivate() {
+ local p priv d
+ priv=PRIVATE_$ENGINE
+ [[ -n $COMPLETIONS ]] && printlist ${!priv} | sort && exit 0
+ echo "Private supported by $(getrecipient) (case sensitive):"
+ [[ -z ${!priv} ]] && echo "$N\"$ENGINE\" has no support for setting language." >&2 && exit 1
+ for p in ${!priv}; do
+ [[ ${p//\%/ } = $DEFAULT_PRIVATE ]] && d="*" || d=" "
+ echo " $d${p//\%/ }"
+ done | sort
+}
+
showexpirations() {
local e expiration info d
expiration=EXPIRATIONS_$ENGINE
@@ -484,7 +527,7 @@ postdata() {
post=POST_$ENGINE
if [[ -n ${!post} ]]; then
nr=${!post//[^ ]}
- [[ 6 = ${#nr} ]] || die "\"${SERVICE}\" is not supported by ${FUNCNAME}()."
+ [[ 8 = ${#nr} ]] || die "\"${SERVICE}\" is not supported by ${FUNCNAME}()."
extra=${!post%% *}
[[ '%' = $extra ]] || echo -n "$extra&"
e() {
@@ -497,7 +540,7 @@ postdata() {
post=${post#$f }
done
}
- e "${!post#$extra }" NICK DESCRIPTION LANGUAGE EXPIRATION CVT_TABS INPUT
+ e "${!post#$extra }" NICK DESCRIPTION LANGUAGE EXPIRATION PARENT PRIVATE CVT_TABS INPUT
elif [[ function == $(type -t json_$ENGINE) ]]; then
json_$ENGINE "$DESCRIPTION" "$LANGUAGE" "$INPUT"
else
@@ -600,6 +643,16 @@ while [[ -n $1 ]]; do
-L | --list-languages )
LISTLANGUAGES=0
;;
+ -p | --parent )
+ requiredarg "$@"
+ PARENTSET=0
+ PARENT="$2"
+ ;;
+ -P | --private )
+ requiredarg "$@"
+ PRIVATESET=0
+ PRIVATE="$2"
+ ;;
-n | --nick )
requiredarg "$@"
NICK=$(escape "$2")
@@ -677,12 +730,16 @@ load_configs
DEFAULT_NICK=${DEFAULT_NICK:-$(whoami)} || die "whoami failed"
DEFAULT_SERVICE=${DEFAULT_SERVICE:-bpaste}
DEFAULT_LANGUAGE=${DEFAULT_LANGUAGE:-Plain Text}
+DEFAULT_PARENT=${DEFAULT_PARENT:-''}
+DEFAULT_PRIVATE=${DEFAULT_PRIVATE:-0}
DEFAULT_EXPIRATION=${DEFAULT_EXPIRATION:-1 month}
SERVICE=${SERVICE:-${DEFAULT_SERVICE}}
ENGINE=ENGINE_$SERVICE
ENGINE="${!ENGINE}"
default="DEFAULT_NICK_$SERVICE" && [[ -n ${!default} ]] && DEFAULT_NICK=${!default}
default="DEFAULT_LANGUAGE_$SERVICE" && [[ -n ${!default} ]] && DEFAULT_LANGUAGE=${!default}
+default="DEFAULT_PARENT_$SERVICE" && [[ -n ${!default} ]] && DEFAULT_PARENT=${!default}
+default="DEFAULT_PRIVATE_$SERVICE" && [[ -n ${!default} ]] && DEFAULT_PRIVATE=${!default}
default="DEFAULT_EXPIRATION_$SERVICE" && [[ -n ${!default} ]] && DEFAULT_EXPIRATION=${!default}
NICK=${NICK:-$(escape "${DEFAULT_NICK}")}
[[ -z $SOURCE ]] && SOURCE="stdin"
@@ -704,6 +761,10 @@ INFO_ARGS=${INFO_ARGS:-"--ignore-default-opts"}
LANGUAGE=${LANGUAGE:-${DEFAULT_LANGUAGE}}
verifylanguage
LANGUAGE=$(escape "$LANGUAGE")
+PARENT=${PARENT:-${DEFAULT_PARENT}}
+PARENT=$(escape "$PARENT")
+PRIVATE=${PRIVATE:-${DEFAULT_PRIVATE}}
+PRIVATE=$(escape "$PRIVATE")
EXPIRATION=${EXPIRATION:-${DEFAULT_EXPIRATION}}
verifyexpiration
EXPIRATION=$(escape "$EXPIRATION")
@@ -853,6 +914,7 @@ else
[[ -f $TMPF ]] || TMPF=$(mktemp /tmp/wgetpaste.XXXXXX)
if [[ -f $TMPF ]]; then
postdata > "$TMPF" || die "Failed to write to temporary file: \"$TMPF\"."
+ [[ $LANG =~ ru_RU ]] && enconv $TMPF
WGETARGS="--post-file=$TMPF"
else
# fall back to using --post-data if the temporary file could not be created

@ -0,0 +1,72 @@
--- a/wgetpaste 2023-11-05 01:00:11.421397200 +0300
+++ b/wgetpaste 2023-11-05 01:08:36.145761741 +0300
@@ -41,7 +41,18 @@
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate"
+# calculate
+ENGINE_calculate=calculate
+if [[ "$LANG" =~ 'ru_RU' ]]; then
+ URL_calculate="http://pastebin.calculate-linux.ru"
+else
+ URL_calculate="http://pastebin.calculate-linux.org"
+fi
+DEFAULT_LANGUAGE_calculate="Text"
+DEFAULT_PARENT_calculate=""
+DEFAULT_PRIVATE_calculate=0
+SIZE_calculate="25000 25%kB"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
@@ -89,6 +100,22 @@
# 0x0
escape_description_0x0() { echo "$*"; }
escape_input_0x0() { echo "$*"; }
+LANGUAGES_calculate="Apache Bash Batch Boo C C# C++ Clojure Creole_Wiki CSS \
+CSV D Debian_control-files Django_Jinja_Templates Dylan Erlang eRuby_rhtml GAS GCC_Messages \
+Genshi_Templates Gettext_catalogs GL_Shader_language Haskell HTML INI_File Interactive_Ruby IO \
+IRC_Logs Java javac_Messages JavaScript JSP Lighttpd Literate_Haskell LLVM Lua Mako_Templates Matlab \
+Matlab_Session MiniD Multi-File Myghty_Templates MySQL Nasm Nginx Object-Pascal OCaml Perl PHP \
+PHP_(inline) Povray Python Python_Console_Sessions Python_Tracebacks reStructuredText Ruby Scala \
+Scheme Smalltalk Smarty sources.list SQL SquidConf TeX_LaTeX Text Unified_Diff Vim XML XSLT YAML"
+LANGUAGE_VALUES_calculate="apache bash bat boo c csharp cpp clojure creole css csv d control html+django \
+dylan erlang rhtml gas gcc-messages html+genshi gettext glsl haskell html ini irb io irc java \
+javac-messages js jsp lighttpd literate-haskell llvm lua html+mako matlab matlabsession minid multi \
+html+myghty mysql nasm nginx objectpascal ocaml perl html+php php povray python pycon pytb rst ruby \
+scala scheme smalltalk smarty sourceslist sql squidconf tex text diff vim xml xslt yaml"
+REGEX_RAW_calculate='s|^\(http://[^/]*/\)show\(/[0-9]*/\)$|\1raw\2|'
+POST_calculate() {
+ POST_generic "submit=paste! parent private language % % text" "$PARENT" "$PRIVATE" "$3" "$4" "$5" "$6"
+}
POST_0x0() {
local filename="${2}"
local content="${6}" boundary="WGETPASTE-yuLr+iHOSQ+trEgDcj9UVq5R302bid"
@@ -562,6 +589,8 @@
-v, --verbose show wget stderr output if no url is received
--completions emit output suitable for shell completions (only affects --list-*)
--debug be *very* verbose (implies -v)
+ -p, --parent PARENT [service calculate only!] set parent paste as -p <id> paste
+ -P, --private PRIVATE [service calculate only!] set private status as -P <seed>
-h, --help show this help
-g, --ignore-configs ignore ""/etc/wgetpaste.conf, ~/.wgetpaste.conf etc.
@@ -843,6 +872,17 @@
-C | --xclippaste )
XCLIPPASTE=0
;;
+ -p | --parent )
+ requiredarg "$@"
+ PARENTSET=0
+ PARENT="$2"
+ ;;
+ -P | --private )
+ requiredarg "$@"
+ PRIVATESET=0
+ PRIVATE="$2"
+ ;;
+
-* )
die "$0: unrecognized option \`$1'"
;;

@ -0,0 +1,69 @@
From cc41231b0ea2ec5cc0a8353fd4a9b6b71301f819 Mon Sep 17 00:00:00 2001
From: Christopher Fore <csfore@posteo.net>
Date: Sat, 14 Oct 2023 21:48:39 -0400
Subject: [PATCH] Add new service - paste.gentoo.zip
Specified in the code with `pgz` and in the cli for usage and brevity.
---
See also: https://github.com/zlin/wgetpaste/pull/48
- Oskari
wgetpaste | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/wgetpaste b/wgetpaste
index b3a537b..fc0b559 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -41,7 +41,7 @@ POST_generic() {
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
@@ -68,6 +68,10 @@ URL_gists="https://api.github.com/gists"
ENGINE_ix_io=ix_io
URL_ix_io="http://ix.io"
SIZE_ix_io="1000000 1%MB"
+# paste.gentoo.zip
+ENGINE_pgz=pgz
+URL_pgz="https://paste.gentoo.zip"
+SIZE_pgz="2000000 2%MB"
# snippets
ENGINE_snippets=snippets
URL_snippets="https://gitlab.com/api/v4/snippets"
@@ -139,7 +143,6 @@ POST_dpaste() {
}
REGEX_RAW_dpaste='s|^http.*|\0.txt|'
REGEX_URL_dpaste='s|^http.*|\0|p'
-
# gists
LANGUAGES_gists="ActionScript Ada Apex AppleScript Arc Arduino ASP Assembly
Augeas AutoHotkey Batchfile Befunge BlitzMax Boo Brainfuck Bro C C# C++
@@ -230,6 +233,20 @@ POST_lodgeit() {
POST_generic "submit=Paste! % % language % % code" "$1" "$2" "$3" "$4" "$5" "$6"
}
REGEX_RAW_lodgeit='s|^\(https\?://[^/]*/\)show\(/[[:alnum:]]*/\)$|\1raw\2|'
+# paste.gentoo.zip
+escape_input_pgz() { echo "$*"; }
+POST_pgz() {
+ local content="${6}"
+ local boundary="WGETPASTE-3d8dfd9bff2b12a7410328d2ec1ed145"
+ echo "--${boundary}"
+ echo "Content-Disposition: form-data; name=\"file\""
+ echo ""
+ echo "${content}"
+ echo "--${boundary}--"
+ ADDITIONAL_HEADERS_pgz=("Content-Type: multipart/form-data; boundary=${boundary}")
+}
+REGEX_RAW_pgz='s|^http.*|\0|'
+REGEX_URL_pgz='s|^http.*|\0|p'
# pinnwand
LANGUAGES_pinnwand="ABAP ActionScript%3 ActionScript Ada ANTLR ANTLR%With%ActionScript%Target \
ANTLR%With%CPP%Target ANTLR%With%C#%Target ANTLR%With%Java%Target ANTLR%With%ObjectiveC%Target \
--
2.41.0

@ -0,0 +1,38 @@
--- a/wgetpaste 2023-11-05 01:14:42.819088466 +0300
+++ b/wgetpaste 2023-11-06 14:31:32.400944620 +0300
@@ -41,7 +41,14 @@
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate orgru"
+# orgru
+ENGINE_orgru=orgru
+URL_orgru="http://paste.org.ru/"
+SIZE_orgru="100000 100%kB"
+REGEX_URL_orgru="s|<a href=\"\(/\?.*\)\">refresh</a>|http://paste.org.ru\1|p"
+REGEX_RAW_orgru="s|<a href=\"\(/\?.*\)\">refresh</a>|http://paste.org.ru\1|"
+DEFAULT_LANGUAGE_orgru="AutoDetect"
# calculate
ENGINE_calculate=calculate
if [[ "$LANG" =~ 'ru_RU' ]]; then
@@ -97,6 +104,19 @@
REGEX_RAW_tinyurl='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2|'
### engines
+# orgru
+LANGUAGES_orgru="AutoDetect C C++ ASM Perl Java IDL Pascal C# JS.NET VB.NET Forth Fortran Visual%Basic html css css%for%html \
+css%for%svg jsp php xhtml%transitional xhtml%strict xhtml%frameset SVG%1.0 ColdFusion JavaScript ActionScript VBScript xml \
+dtd xslt%1.0 XML%Schema Relax%NG Clarion Clipper FoxPro SQLJ%(Java%sql) Paradox SQL,%PL/SQL MySQL Batch/Config.sys/NTcmd \
+sh/ksh/bash%script Apache%httpd.conf Config,%INI%and%CTL Java%properties Lex YACC makefile TeX VRML 1C Ada ABAP/4 AutoIt%2.x \
+AWK Dssp ADSP-21xx%Asm Cobol Cache/Open-M Eiffel Erlang Icon Lisp MatLab Modula2%and%Oberon2 PicAsm Python Rexx Ruby Standard%ML \
+OCaml Tcl/Tk Verilog%HDL VHDL Diff/Patch xslfo%1.0 DocBook%4.2 MathML2 wml rss mason PostScript RTF%text M4 VIM"
+LANGUAGE_VALUES_orgru="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 \
+43 44 45 46 47 48 53 54 55 56 59 61 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 98 111 112 113 114 \
+120 133 135 137 156 158"
+POST_orgru(){
+ POST_generic "submit % % type % % code" "$1" "$2" "$3" "$4" "$5" "$6"
+}
# 0x0
escape_description_0x0() { echo "$*"; }
escape_input_0x0() { echo "$*"; }

@ -0,0 +1,31 @@
https://github.com/zlin/wgetpaste/pull/45
From ab4632ca9cd54c9e7478f37eee821113c0135c37 Mon Sep 17 00:00:00 2001
From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Date: Fri, 28 Jul 2023 18:55:10 -0500
Subject: [PATCH] Disable sprunge
Sprunge seems to have recently died. Disable it by removing it from the
service list, but keep the core bits in case it decides to come back.
RIP ;(
---
wgetpaste | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wgetpaste b/wgetpaste
index 864d5ef..b3a537b 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -41,7 +41,7 @@ POST_generic() {
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets sprunge"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
--
2.41.0

@ -0,0 +1,83 @@
https://github.com/zlin/wgetpaste/pull/38
From 3470bbe651c2264a7f985f3b86f67a6ff6d0c587 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:16 +0000
Subject: [PATCH 1/3] test: respect TMPDIR in mktemp (pass --tmpdir)
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -7,7 +7,7 @@
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"
TEST_FILE="$TEST_DIR/test.txt"
-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test.XXXXX)"
+DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test.XXXXX)"
# Services to hard skip
# Pre-declare as map to maintain type even if empty
# key -> value := service -> reason
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -9,7 +9,7 @@
TEST_DIR="$(dirname "$0")"
ANSI_FILE="$TEST_DIR/red.txt"
NOANSI_FILE="$TEST_DIR/red_no_ansi.txt"
-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test_ansi.XXXXX)"
+DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test_ansi.XXXXX)"
# Services to hard skip
# Pre-declare as map to maintain type even if empty
# key -> value := service -> reason
From 0c3cc1a5286c95a5bcd6408035f6c230350c1565 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:40 +0000
Subject: [PATCH 2/3] test: use portable bash shebang
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# wgetpaste test script
# Exit code: number of mismatched downloads or 1 for general failure
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# wgetpaste test script (stripping ANSI codes)
# Based on test/test.sh
From 8d1cf7a8d0ce9ff21a8e1dc66169b04e4f8fc852 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:55 +0000
Subject: [PATCH 3/3] test: normalise copyright header
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -2,7 +2,7 @@
# wgetpaste test script
# Exit code: number of mismatched downloads or 1 for general failure
-# Copyright (C) 2021 xxc3nsoredxx
+# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -3,7 +3,7 @@
# wgetpaste test script (stripping ANSI codes)
# Based on test/test.sh
# Exit code: number of mismatched downloads or 1 for general failure
-# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
+# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"

@ -1,6 +1 @@
#!/bin/bash
SERVICES="${SERVICES} lugons"
ENGINE_lugons=lodgeit
URL_lugons="https://paste.lugons.org/"
DEFAULT_SERVICE=calculate

@ -6,4 +6,7 @@
<name>Mir Calculate</name>
<description>Calculate Overlay</description>
</maintainer>
<upstream>
<remote-id type="github">zlin/wgetpaste</remote-id>
</upstream>
</pkgmetadata>

@ -1,31 +0,0 @@
# Copyright 1999-2022 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/wgetpaste/wgetpaste-2.25-r3.ebuild,v 1.9 2014/11/02 09:09:38 ago Exp $
EAPI="8"
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="http://wgetpaste.zlin.dk/"
SRC_URI="http://wgetpaste.zlin.dk/${P}.tar.bz2"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
RDEPEND="net-misc/wget
app-i18n/enca
"
PATCHES=( "${FILESDIR}"/calculate_wgetpaste-25.patch )
src_prepare() {
sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die
}
src_install() {
dobin ${PN}
insinto /etc/wgetpaste.d
newins "${FILESDIR}"/wgetpaste-config-services services.conf
insinto /usr/share/zsh/site-functions
doins _wgetpaste
}

@ -0,0 +1,51 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="https://github.com/zlin/wgetpaste"
SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="+ssl"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="net-misc/wget[ssl?]"
PATCHES=(
"${FILESDIR}"/${PN}-2.33-tests.patch
"${FILESDIR}"/${PN}-2.33-disable-sprunge.patch
"${FILESDIR}"/${PN}-2.33-add-paste-gentoo-zip.patch
"${FILESDIR}"/${PN}-2.33-add-paste-calculate.patch
"${FILESDIR}"/${PN}-2.33-add-paste-orgru.patch
)
src_prepare() {
default
sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die
}
src_test() {
test/test.sh || die
}
src_install() {
dobin ${PN}
insinto /usr/share/zsh/site-functions
doins _wgetpaste
insinto /etc/wgetpaste.d
newins "${FILESDIR}"/wgetpaste-config-services services.conf
}
pkg_postinst() {
optfeature "ANSI (color code) stripping support" app-text/ansifilter
optfeature "xclip support" x11-misc/xclip
}

@ -12,7 +12,7 @@ DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam clien
HOMEPAGE="https://steampowered.com"
SRC_URI="https://repo.steampowered.com/steam/archive/stable/steam_${PV}.tar.gz"
LICENSE="ValveSteamLicense MIT"
LICENSE="Steam MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="+joystick +steamruntime +udev"

@ -16,29 +16,19 @@ SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}.tar.gz
LICENSE="BSD IJG ZLIB"
SLOT="0/0.2"
if [[ $(ver_cut 3) -lt 90 ]] ; then
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
IUSE="cpu_flags_arm_neon"
ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )"
COMMON_DEPEND="
!media-libs/jpeg:0
!media-libs/jpeg:62
"
DEPEND="
${COMMON_DEPEND}
"
RDEPEND="
${COMMON_DEPEND}
"
DEPEND=""
RDEPEND=""
BDEPEND="
amd64? ( ${ASM_DEPEND} )
x86? ( ${ASM_DEPEND} )
amd64-linux? ( ${ASM_DEPEND} )
x86-linux? ( ${ASM_DEPEND} )
x64-macos? ( ${ASM_DEPEND} )
"
# x64-cygwin? ( ${ASM_DEPEND} )
S=${WORKDIR}/${PN}-${PV}
@ -99,7 +89,6 @@ src_configure() {
src_install() {
insinto /usr/lib64/
doins ${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8.2.2
doins ${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8
doins "${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8.2.2"
doins "${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8"
}

@ -0,0 +1,158 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MULTILIB_COMPAT=( abi_x86_64 )
inherit desktop multilib-build pax-utils unpacker xdg
DESCRIPTION="Free and secure calls and messages to anyone, anywhere"
HOMEPAGE="https://www.viber.com/"
SRC_URI="
amd64? (
https://download.cdn.viber.com/cdn/desktop/Linux/${PN}.deb -> ${P}.deb
)
"
QA_PRESTRIPPED="
opt/viber/Viber
opt/viber/libexec/QtWebEngineProcess
opt/viber/lib/libicudata.so.66
opt/viber/lib/libssl.so.1.1
opt/viber/lib/libcrypto.so.1.1
opt/viber/lib/libXcomposite.so.1
opt/viber/lib/libwebp.so.6
opt/viber/lib/libicui18n.so.66
opt/viber/lib/libqrencode.so
opt/viber/lib/libViberRTC.so
opt/viber/lib/libminizip.so.1
opt/viber/lib/libdouble-conversion.so.3
opt/viber/lib/libicuuc.so.66
opt/viber/lib/libpng16.so.16
opt/viber/lib/libXdamage.so.1
opt/viber/lib/libb2.so.1
opt/viber/lib/libjpeg.so.8
opt/viber/lib/libpcre2-16.so.0
opt/viber/lib/libre2.so.5
"
LICENSE="Viber"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+abi_x86_64 apulse +pulseaudio"
REQUIRED_USE="
^^ ( apulse pulseaudio )
"
RESTRICT="bindist mirror"
BDEPEND="
sys-apps/fix-gnustack
"
RDEPEND="
app-arch/brotli:=[${MULTILIB_USEDEP}]
app-arch/snappy:=[${MULTILIB_USEDEP}]
app-arch/zstd:=[${MULTILIB_USEDEP}]
app-crypt/mit-krb5[${MULTILIB_USEDEP}]
dev-libs/expat[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
dev-libs/libevent:=[${MULTILIB_USEDEP}]
dev-libs/libxml2[${MULTILIB_USEDEP}]
dev-libs/libxslt[${MULTILIB_USEDEP}]
dev-libs/nspr[${MULTILIB_USEDEP}]
dev-libs/nss[${MULTILIB_USEDEP}]
dev-libs/wayland[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
media-libs/freetype:2[${MULTILIB_USEDEP}]
media-libs/gst-plugins-bad:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-good:1.0[${MULTILIB_USEDEP}]
media-plugins/gst-plugins-libav:1.0[${MULTILIB_USEDEP}]
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
media-libs/harfbuzz:=[${MULTILIB_USEDEP}]
media-libs/lcms:2[${MULTILIB_USEDEP}]
media-libs/libglvnd[${MULTILIB_USEDEP}]
media-libs/libmng:=[${MULTILIB_USEDEP}]
media-libs/libwebp:=[${MULTILIB_USEDEP}]
media-libs/opus[${MULTILIB_USEDEP}]
media-libs/mesa[${MULTILIB_USEDEP}]
media-libs/tiff-compat:4[${MULTILIB_USEDEP}]
net-print/cups[${MULTILIB_USEDEP}]
sys-apps/dbus[${MULTILIB_USEDEP}]
|| (
sys-apps/systemd[${MULTILIB_USEDEP}]
sys-apps/systemd-utils[udev,${MULTILIB_USEDEP}]
)
sys-libs/mtdev
sys-libs/zlib:0/1[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
x11-libs/gtk+:3[${MULTILIB_USEDEP}]
x11-libs/libdrm[${MULTILIB_USEDEP}]
x11-libs/libICE[${MULTILIB_USEDEP}]
x11-libs/libSM[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXfixes[${MULTILIB_USEDEP}]
x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
x11-libs/libxkbfile[${MULTILIB_USEDEP}]
x11-libs/libXrandr[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
x11-libs/libXtst[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]
x11-libs/tslib[${MULTILIB_USEDEP}]
x11-libs/xcb-util-cursor[${MULTILIB_USEDEP}]
x11-libs/xcb-util-image[${MULTILIB_USEDEP}]
x11-libs/xcb-util-keysyms[${MULTILIB_USEDEP}]
x11-libs/xcb-util-renderutil[${MULTILIB_USEDEP}]
x11-libs/xcb-util-wm[${MULTILIB_USEDEP}]
apulse? ( media-sound/apulse[${MULTILIB_USEDEP}] )
pulseaudio? (
media-libs/libpulse[glib,${MULTILIB_USEDEP}]
media-plugins/gst-plugins-pulse:1.0[${MULTILIB_USEDEP}]
)
"
S="${WORKDIR}"
src_prepare() {
default
if use apulse ; then
sed -i '/Exec=/s|/opt|apulse /opt|' \
usr/share/applications/viber.desktop || die "sed failed"
fi
# remove hardcoded path
sed -i '/Icon/s|/usr/share/pixmaps/viber.png|viber|' \
usr/share/applications/viber.desktop \
|| die "sed failed for viber.desktop"
}
src_install() {
newicon -s scalable usr/share/icons/hicolor/scalable/apps/Viber.svg \
viber.svg
for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256; do
newicon -s "${size%%x*}" usr/share/viber/"${size}".png viber.png
done
dosym ../icons/hicolor/96x96/apps/viber.png \
/usr/share/pixmaps/viber.png
domenu usr/share/applications/viber.desktop
insinto /opt/viber
doins -r opt/viber/.
pax-mark -m "${ED}"/opt/viber/Viber \
"${ED}"/opt/viber/QtWebEngineProcess
fix-gnustack -f "${ED}"/opt/viber/lib/libQt6WebEngineCore.so.6 > /dev/null \
|| die "removing execstack flag failed"
fperms +x /opt/viber/Viber \
/opt/viber/lib/libQt6Core.so.6 \
/opt/viber/libexec/QtWebEngineProcess
dosym ../../opt/viber/Viber /usr/bin/Viber
}

@ -38,7 +38,7 @@ dev-util/pycharm-professional amd64
~media-gfx/blender-3.5.1 amd64
~media-gfx/blender-3.6.0 amd64
media-gfx/darktable amd64
~media-gfx/gimp-2.10.34 amd64
~media-gfx/gimp-2.10.36 amd64
~media-gfx/pencil-0.6.6 amd64
~media-gfx/qimgv-1.0.2 amd64
~media-libs/avidemux-core-2.8.1 amd64

@ -1,5 +1,5 @@
# mask portage wgetpaste
>=app-text/wgetpaste-2.33
>app-text/wgetpaste-2.33-r0
# prevent automagic depends
sys-libs/db:6.0

@ -760,3 +760,6 @@ dev-qt/qttools assistant designer qml
dev-python/PyQt6 qml webchannel
dev-qt/qt5compat icu
dev-qt/qtbase icu
# required by kde-apps/akonadi-23.04.3
dev-qt/qtsql postgres

@ -2,8 +2,8 @@ DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a936
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
DIST linux-6.5.tar.xz 138898084 BLAKE2B 2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39 SHA512 1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257
DIST patch-5.10.199.xz 5289640 BLAKE2B 5d4b048c6641c7f1346a1e4ceb7cd0500add6883a96f62bc4f259fa15ac59801e48721b8b8eecbe955ba8cdbc8bb582d5ff51e8c76ba6179920b98589b214710 SHA512 39804367f482991370118b67cefe65c452b2d584d2581aded568e204ca1ed6b66f5a94bcdca47385caf79b5cf1825d1319de0b27220e0f3028042ac1d7ce9383
DIST patch-5.15.137.xz 4894124 BLAKE2B aa28ed0cbc43b09b62a2041f4536f8a75743a216fb55cefa080361f9696dd71d3a51ad0f265c2aa5fb90fc88f774170f7d3234bfb07692b64d8d506600616a6b SHA512 f83c979bf755c5e249c169ae0703e7778ae57eec3aa9d570ec69dd66d7c709ce08043dfdf159475ef8b761a31b8b5945db02c963bebc775d8a3abb5332fb8228
DIST patch-5.10.200.xz 5305696 BLAKE2B a118506aea0c921ebf0b6df773b1644e79670e30faac9f587e800c5b5734064cab6850bf054682a35d74f8580b2d5f8c701b536d80897efe43fd0921638bc64d SHA512 06a65d9048f8d3aabedd5cbb7e4e7efd712e3851d41156114471063b013d17838673383130cf94752221aba0e54c8dbe8b895a0faf9ff8b0328b189d917d28f4
DIST patch-5.15.138.xz 4915436 BLAKE2B ef3a16f4e9a1bff449e1b07dd11f0bfe52da74e1b5faebaca4518122919208575914df93d66743c6c0a5dc2dfc50d0e0542cc9b27cae4cea1c33e450f00c975f SHA512 1168827ce6938162c674880230dd57b0224c1215db305381e111bb95fc0b0dda7c24f1d4b93d7fb37e11a4dcea6fc30d76928b973983ddd78ecf0a7d7be5b390
DIST patch-6.1.39.xz 2675696 BLAKE2B fc0997d132472f6f1701ddcc321180ffa1871e652b0da632808d95aa176bd1b74b2afb9b2739802daa4223c23bc2ebfb2a1741785e389993cbc0013fad83ca33 SHA512 7c659ecceffaab9276090124ca2d2349a10334c60970a67419b1759214c61960227d0654206279c94328e1fa9d76e24e8ef6c91212aaf2174598cd25cf82c11f
DIST patch-6.1.61.xz 3467832 BLAKE2B cf3ca6c971f4a504f1edcadb65df26fac7789611fd9dad5cb848c88347c0138c3c2b08745c55926c542f6fd279668d3fe8dc85b2f74f4ad0242742e4ce8592a0 SHA512 e95cc79800f48df4a660fc500662411e3728300a4ba7492384ba4e5f5aaba11f8575b22d53534d101e579265de0d5fe4f4335e48349f5a1d4ab9545c00086681
DIST patch-6.5.10.xz 696984 BLAKE2B f73408beda7e892b430660352a54161361a72de17708005836edec2b7dbe36290a47ebc28f70eaf61aeb47ea275e445221a0536e79dca57b4ecaa8a4fa5fc144 SHA512 32cf657172f6e68c31a674df5e199796d8b40d28ca3aa35260e18b8b6eb4f8003fb278b9de9d13ad83d0bffaa9a03d6aa26f480582d9a9cbbf37b78336b2cb3e
DIST patch-6.1.62.xz 3476016 BLAKE2B e45de20783b6a259e5beb90b827ed468dff2d61fe7a7c3fef3cfc820bd8f97f3c2df09705e4776e30d6dcdb82a4319372d3eeff8a9a4a9cb9a4494a0b2bd88d3 SHA512 f69267de43b22c634fc3a245f0b233283866a1d32f2d042add2a3055b857a88dc47b6e35dc3b8b70b9876cd07f99ab2544a239f42b60b9e76519072bb9817b5b
DIST patch-6.5.11.xz 716768 BLAKE2B 350ce7f61d321c2a4f37f4dafaadf3de29ade0f29bbf2b24e2a9b45fe60378a30f8e43f6089de2ebfab1bf0fa7a0849b29f214b158e86b7e0f3c30b59e78c624 SHA512 26f572a6bf4ad9eaa49bdaf4ecb128d2b97790d09c0d9dcb83b4719e54137aa179e9417f4a50c8892cd571728efa0b713eebd3adf976521002c3edea82dfff38

Loading…
Cancel
Save