From 32b2da4be44cc5c1a8e0872247225838c3badc5a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 12 May 2020 08:40:01 +0000 Subject: main/sprunge: use https when possible fixes tpaste which no longer work without https --- main/sprunge/APKBUILD | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main') diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD index 9b00edf667..d7e03d7831 100644 --- a/main/sprunge/APKBUILD +++ b/main/sprunge/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=sprunge pkgver=0.7 -pkgrel=0 +pkgrel=1 pkgdesc="Helper script to paste things to http://sprunge.us" url="http://sprunge.us" arch="noarch" @@ -21,10 +21,10 @@ package() { tpaste() { cd "$builddir" - url="http://tpaste.us" + url="https://tpaste.us" pkgdesc="Helper script to paste things to $url" mkdir -p "$subpkgdir"/usr/bin - printf "#!/bin/sh\n\nexec curl -F 'tpaste=<-' http://tpaste.us" > \ + printf "#!/bin/sh\n\nexec curl -F 'tpaste=<-' https://tpaste.us" > \ "$subpkgdir"/usr/bin/tpaste chmod 755 "$subpkgdir"/usr/bin/tpaste } @@ -36,18 +36,18 @@ dpaste() { printf > dpaste -- '%s\n' \ '#!/bin/sh' '' \ - "exec curl --silent -F 'content=<-' 'http://dpaste.com/api/v2/' | sed -e 's/\$/.txt/'" + "exec curl --silent -F 'content=<-' "$url/api/v2/" | sed -e 's/\$/.txt/'" install -Dm 0755 dpaste "$subpkgdir/usr/bin/dpaste" } dpaste_de() { cd "$builddir" - url="https://dpaste.de/" + url="https://dpaste.de" pkgdesc="Helper script to paste things to $url" printf > dpaste-de -- '%s\n' \ '#!/bin/sh' '' \ - "exec curl --silent -F 'format=url' -F 'lexer=_text' -F 'content=<-' 'https://dpaste.de/api/' | sed -e 's,\$,/raw,'" + "exec curl --silent -F 'format=url' -F 'lexer=_text' -F 'content=<-' "$url/api/" | sed -e 's,\$,/raw,'" install -Dm 0755 dpaste-de "$subpkgdir/usr/bin/dpaste-de" } @@ -56,7 +56,7 @@ ix() { url="http://ix.io" pkgdesc="Helper script to paste things to $url" mkdir -p "$subpkgdir"/usr/bin - printf "#!/bin/sh\n\nexec curl -F f:1='<-' ix.io/" > \ + printf "#!/bin/sh\n\nexec curl -F f:1='<-' $url/" > \ "$subpkgdir"/usr/bin/ix chmod 755 "$subpkgdir"/usr/bin/ix } -- cgit v1.2.3