diff options
Diffstat (limited to 'app-text/wgetpaste')
-rw-r--r-- | app-text/wgetpaste/Manifest | 3 | ||||
-rw-r--r-- | app-text/wgetpaste/files/wgetpaste-2.33-add-paste-gentoo-zip.patch | 69 | ||||
-rw-r--r-- | app-text/wgetpaste/wgetpaste-2.33-r3.ebuild (renamed from app-text/wgetpaste/wgetpaste-2.33-r2.ebuild) | 1 |
3 files changed, 72 insertions, 1 deletions
diff --git a/app-text/wgetpaste/Manifest b/app-text/wgetpaste/Manifest index f2964afbb754..8ac0bcf58953 100644 --- a/app-text/wgetpaste/Manifest +++ b/app-text/wgetpaste/Manifest @@ -1,5 +1,6 @@ +AUX wgetpaste-2.33-add-paste-gentoo-zip.patch 2202 BLAKE2B d0b487cc92a834250b422a9524378a7f35f2e32349a6394056e77bcb5bb01ae8d6d5097107c7a7fa6f705351c3529fadad20cb99284f5a03455d2cd2bac8ee4f SHA512 eab6567657189ad5c5abae65c410de47da613099c652f5311511f13e9dc515825f17d5ff5e9a3eef58ac24a36841e61a10b8a2a8c5a68c9456cca81707db7ca7 AUX wgetpaste-2.33-disable-sprunge.patch 790 BLAKE2B 9cd8c336072d7e2bff27a54d904ffa88331905dd8fe5a6a5d11c84c8fefc663bf24a481149bee8ff25f3d4140a81e6de5686ae97ffe545e77c52a2ea1c69d128 SHA512 179d3e38033d3f845c348c9a46fb40368c729fe721cc78580ed7b16ad507ead19595609998722c13423fdec6a1c9f2221fae34994840120f2ab2cdda65145d13 AUX wgetpaste-2.33-tests.patch 2742 BLAKE2B 3bb6c60de41ff4e428048816b093f40691de2a625e2a27a75b8db9f4e7333ab43778be704ddba01e2d5eb43a20f6ca6a83059f8bb2d04d08dc9d196901e53a17 SHA512 6d8a65215d4c1939c2f0acdd486171d37c4f1ef71b8ef6341fcf50db9cd057de1d616b3f3ac57820082d6fce1d8c75d72c8613865a0cf46df5fd3f5104716024 DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab -EBUILD wgetpaste-2.33-r2.ebuild 1389 BLAKE2B d5a2404497194b01f451443922b38c28d65428cc98bb4b958b87facd6da6da71f743e0a0385202b1e0927b6012ecb19b876619390e79ac2f27a6d5f9ef93d2ba SHA512 4570060e6163857cc08416ef335bcac6da5e8cbf480ae22a7179a5f53cea0505376f49eb174e35ed60947c99a296d89a2ade01e3f254b2d24a6b9014b659a0e7 +EBUILD wgetpaste-2.33-r3.ebuild 1442 BLAKE2B 4ba780c9c4dbbcd9c958c73b473a9eac89cd29e8b4a580a5888194c6aa58cb9fd1b5e4bd68c6c97f761b80a6f7325ffb1077f08e19ce4fd1b915af162d214917 SHA512 d9326673ce2332da4577d35432ce1b1b1ffbff30607818fbdcf554c0f9af8577317211ea840ca16b7726c1302f4ebdd0bc15f92231193419d28845dba398ec66 MISC metadata.xml 566 BLAKE2B 1f63219976e414e688b0e8b5d0ce84dc4480af3e59ebbbe550d26ca5973ac22148b87d1b43304bbbfbcaba1731d14a6f7639b7352e2b77d1141f8dee6875d2ce SHA512 779b873177a5b294e6a140d8d658980469b50cdb1c65f6c4a387e8af82f996f109ed14ae208f8603cdfc80ac0f9f0a50ad00202e92c0f5c6aaea13d01ecf8862 diff --git a/app-text/wgetpaste/files/wgetpaste-2.33-add-paste-gentoo-zip.patch b/app-text/wgetpaste/files/wgetpaste-2.33-add-paste-gentoo-zip.patch new file mode 100644 index 000000000000..5b9fcc5f4618 --- /dev/null +++ b/app-text/wgetpaste/files/wgetpaste-2.33-add-paste-gentoo-zip.patch @@ -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 + diff --git a/app-text/wgetpaste/wgetpaste-2.33-r2.ebuild b/app-text/wgetpaste/wgetpaste-2.33-r3.ebuild index d7840c31c259..89f63061351c 100644 --- a/app-text/wgetpaste/wgetpaste-2.33-r2.ebuild +++ b/app-text/wgetpaste/wgetpaste-2.33-r3.ebuild @@ -22,6 +22,7 @@ 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 ) src_prepare() { |