mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
main/tpaste: remove non-working paste services
This commit is contained in:
parent
9472f97898
commit
3f28b79bb6
@ -1,60 +0,0 @@
|
|||||||
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
||||||
pkgname=sprunge
|
|
||||||
pkgver=0.7
|
|
||||||
pkgrel=2
|
|
||||||
pkgdesc="Helper script to paste things to http://sprunge.us"
|
|
||||||
url="http://sprunge.us"
|
|
||||||
arch="noarch"
|
|
||||||
license="GPL-2.0-only"
|
|
||||||
depends="curl"
|
|
||||||
subpackages="tpaste dpaste dpaste-de:dpaste_de ix"
|
|
||||||
options="!check"
|
|
||||||
|
|
||||||
builddir="$srcdir"
|
|
||||||
package() {
|
|
||||||
mkdir -p "$pkgdir"/usr/bin
|
|
||||||
printf "#!/bin/sh\n\nexec curl -F 'sprunge=<-' http://sprunge.us" > \
|
|
||||||
"$pkgdir"/usr/bin/sprunge
|
|
||||||
chmod 755 "$pkgdir"/usr/bin/sprunge
|
|
||||||
}
|
|
||||||
|
|
||||||
tpaste() {
|
|
||||||
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=<-' https://tpaste.us" > \
|
|
||||||
"$subpkgdir"/usr/bin/tpaste
|
|
||||||
chmod 755 "$subpkgdir"/usr/bin/tpaste
|
|
||||||
}
|
|
||||||
|
|
||||||
dpaste() {
|
|
||||||
cd "$builddir"
|
|
||||||
url="http://dpaste.com"
|
|
||||||
pkgdesc="Helper script to paste things to $url"
|
|
||||||
|
|
||||||
printf > dpaste -- '%s\n' \
|
|
||||||
'#!/bin/sh' '' \
|
|
||||||
"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"
|
|
||||||
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=<-' "$url/api/" | sed -e 's,\$,/raw,'"
|
|
||||||
install -Dm 0755 dpaste-de "$subpkgdir/usr/bin/dpaste-de"
|
|
||||||
}
|
|
||||||
|
|
||||||
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='<-' $url/" > \
|
|
||||||
"$subpkgdir"/usr/bin/ix
|
|
||||||
chmod 755 "$subpkgdir"/usr/bin/ix
|
|
||||||
}
|
|
39
main/tpaste/APKBUILD
Normal file
39
main/tpaste/APKBUILD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
|
pkgname=tpaste
|
||||||
|
pkgver=0.8
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Helper script to paste things to https://tpaste.us"
|
||||||
|
url="https://tpaste.us"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
depends="curl"
|
||||||
|
subpackages="dpaste ix"
|
||||||
|
options="!check"
|
||||||
|
builddir="$srcdir"
|
||||||
|
|
||||||
|
package() {
|
||||||
|
mkdir -p "$pkgdir"/usr/bin
|
||||||
|
printf "#!/bin/sh\n\nexec curl -sSF 'tpaste=<-' $url" > \
|
||||||
|
"$pkgdir"/usr/bin/tpaste
|
||||||
|
chmod 755 "$pkgdir"/usr/bin/tpaste
|
||||||
|
}
|
||||||
|
|
||||||
|
dpaste() {
|
||||||
|
url="https://dpaste.com"
|
||||||
|
pkgdesc="Helper script to paste things to $url"
|
||||||
|
|
||||||
|
printf > dpaste -- '%s\n' \
|
||||||
|
'#!/bin/sh' '' \
|
||||||
|
"exec curl -sSF 'content=<-' "$url/api/v2/" | sed -e 's/\$/.txt/'"
|
||||||
|
install -Dm 0755 dpaste "$subpkgdir/usr/bin/dpaste"
|
||||||
|
}
|
||||||
|
|
||||||
|
ix() {
|
||||||
|
url="https://ix.io"
|
||||||
|
pkgdesc="Helper script to paste things to $url"
|
||||||
|
mkdir -p "$subpkgdir"/usr/bin
|
||||||
|
printf "#!/bin/sh\n\nexec curl -sSF f:1='<-' $url/" > \
|
||||||
|
"$subpkgdir"/usr/bin/ix
|
||||||
|
chmod 755 "$subpkgdir"/usr/bin/ix
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user