From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20198158089 for ; Thu, 19 Oct 2023 09:26:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E0C12BC07D; Thu, 19 Oct 2023 09:26:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B7BA2BC07D for ; Thu, 19 Oct 2023 09:26:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3CD4F335D12 for ; Thu, 19 Oct 2023 09:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9F8CB4E for ; Thu, 19 Oct 2023 09:26:32 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1697707543.de1d2bf9997e280b14c0dd7028a1bb17115f8d20.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/wgetpaste/files/, app-text/wgetpaste/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/wgetpaste/files/wgetpaste-2.33-add-paste-gentoo-zip.patch app-text/wgetpaste/wgetpaste-2.33-r2.ebuild app-text/wgetpaste/wgetpaste-2.33-r3.ebuild X-VCS-Directories: app-text/wgetpaste/ app-text/wgetpaste/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: de1d2bf9997e280b14c0dd7028a1bb17115f8d20 X-VCS-Branch: master Date: Thu, 19 Oct 2023 09:26:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1cdaaace-5e65-4b4e-84a6-e9c51462d436 X-Archives-Hash: d2f2dce54b6df8e573edb2f8d44f7665 commit: de1d2bf9997e280b14c0dd7028a1bb17115f8d20 Author: Oskari Pirhonen gmail com> AuthorDate: Sun Oct 15 02:38:37 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Oct 19 09:25:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de1d2bf9 app-text/wgetpaste: add paste.gentoo.zip >From https://github.com/zlin/wgetpaste/pull/48 Signed-off-by: Oskari Pirhonen gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33340 Signed-off-by: Florian Schmaus gentoo.org> .../wgetpaste-2.33-add-paste-gentoo-zip.patch | 69 ++++++++++++++++++++++ ...ste-2.33-r2.ebuild => wgetpaste-2.33-r3.ebuild} | 1 + 2 files changed, 70 insertions(+) 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 +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 similarity index 96% rename from app-text/wgetpaste/wgetpaste-2.33-r2.ebuild rename to 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() {