mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
accessibility/wgetpaste: Change default pastebin.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
268f24fc96
commit
57c0e90975
5 changed files with 49 additions and 12 deletions
|
@ -3,3 +3,6 @@ wgetpaste (command-line interface to various pastebins)
|
|||
See /etc/wgetpaste.conf.sample for config options.
|
||||
|
||||
If you want to use the -x, -X, -C options to wgetpaste, install xclip.
|
||||
|
||||
Please note: the "ca" and "bpaste" services are currently broken. The
|
||||
default "dpaste" service works as of 20150125.
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
.\" ========================================================================
|
||||
.\"
|
||||
.IX Title "WGETPASTE 1"
|
||||
.TH WGETPASTE 1 "2014-08-18" "2.25" "SlackBuilds.org"
|
||||
.TH WGETPASTE 1 "2015-01-25" "2.25" "SlackBuilds.org"
|
||||
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
||||
.\" way too many mistakes in technical documents.
|
||||
.if n .ad l
|
||||
|
@ -94,7 +94,7 @@ set description (defaults to \*(L"stdin\*(R" or filename)
|
|||
set nick (defaults to your username)
|
||||
.IP "\-s, \-\-service \s-1SERVICE\s0" 4
|
||||
.IX Item "-s, --service SERVICE"
|
||||
set service to use (defaults to \*(L"bpaste\*(R")
|
||||
set service to use (defaults to \*(L"dpaste\*(R")
|
||||
.IP "\-e, \-\-expiration \s-1EXPIRATION\s0" 4
|
||||
.IX Item "-e, --expiration EXPIRATION"
|
||||
set when it should expire (defaults to \*(L"1 month\*(R")
|
||||
|
@ -160,6 +160,13 @@ per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
|
|||
An additional http header can be passed by setting HEADER_${\s-1SERVICE\s0} in any of the
|
||||
configuration files mentioned above. For example, authenticating with github gist:
|
||||
HEADER_gists=\*(L"Authorization: token 1234abc56789...\*(R"
|
||||
.SH "BUGS"
|
||||
.IX Header "BUGS"
|
||||
\&\fBwgetpaste\fR works by hard-coding URLs and \s-1CGI\s0 parameters into
|
||||
the script. This means that if a paste service's web site changes,
|
||||
\&\fBwgetpaste\fR might stop working with that site. Currently (January 2015),
|
||||
the \fBca\fR (http://pastebin.ca) and \fBbpaste\fR (http://bpaste.net) services
|
||||
are broken, and the others have been tested and work \s-1OK.\s0
|
||||
.SH "AUTHOR"
|
||||
.IX Header "AUTHOR"
|
||||
Copyright (c) 2007 Bo Ørsted Andresen <bo.andresen@zlin.dk>
|
||||
|
|
|
@ -10,9 +10,24 @@
|
|||
# - Updated to 2.25.
|
||||
# - Rewrote man page in pod.
|
||||
|
||||
# 20150124 bkw:
|
||||
# - Changed the default service from bpaste to dpaste, since bpaste
|
||||
# seems to have stopped working.
|
||||
# - Get rid of zlin.dk service, as it's gone away.
|
||||
# - Tested all services. As of this writing, these services work:
|
||||
# dpaste codepad gists poundpython
|
||||
# These do NOT work:
|
||||
# bpaste ca
|
||||
# I haven't tried very hard to get the non-working ones to work, let me know
|
||||
# if you manage it. I notice ca has captchas now, so it'll likely never
|
||||
# work with a script.
|
||||
# - Documented non-working services in man page.
|
||||
# - Replaced no_gentooisms.diff with some sed stuff.
|
||||
# - Bumped BUILD to 2.
|
||||
|
||||
PRGNAM=wgetpaste
|
||||
VERSION=${VERSION:-2.25}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
ARCH=noarch
|
||||
|
@ -39,19 +54,23 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# x11-misc/xclip => xclip
|
||||
# 'emerge --info' => wgetpaste_info
|
||||
patch -p1 < $CWD/no_gentooisms.diff
|
||||
# Un-gentoo-ize the help and error messages, use wgetpaste_info for the
|
||||
# -i and -I options. Set default paste service to something that works,
|
||||
# since bpaste has stopped working.
|
||||
sed -i \
|
||||
-e '/^DEFAULT_SERVICE/s,bpaste,dpaste,' \
|
||||
-e 's,emerge --info,wgetpaste_info,g' \
|
||||
-e 's,emerge x11-misc/,install ,g' \
|
||||
-e 's,x11-misc/,,g' \
|
||||
-e '/^INFO_ARGS/s,"[^"]*","",' \
|
||||
$PRGNAM
|
||||
|
||||
install -groot -oroot -m0755 $PRGNAM $PKG/usr/bin
|
||||
install -groot -oroot -m0644 _$PRGNAM $PKG/$ZSHDIR
|
||||
install -groot -oroot -m0644 $CWD/$PRGNAM.example $PKG/etc/$PRGNAM.conf.sample
|
||||
install -groot -oroot -m0755 $CWD/${PRGNAM}_info $PKG/usr/bin
|
||||
|
||||
# Add zlin.dk service, operated by the wgetpaste author
|
||||
install -groot -oroot -m0644 $CWD/zlin.conf $PKG/etc/$PRGNAM.d/
|
||||
|
||||
# Man page made by help2man and edited slightly
|
||||
# Man page made from --help output, by way of POD.
|
||||
gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
DEFAULT_NICK=zlin
|
||||
|
||||
# change the default service
|
||||
DEFAULT_SERVICE="zlin"
|
||||
DEFAULT_SERVICE="dpaste"
|
||||
|
||||
# change default language for the ca and the osl services
|
||||
DEFAULT_LANGUAGE_ca="Bash"
|
||||
|
|
|
@ -31,7 +31,7 @@ set nick (defaults to your username)
|
|||
|
||||
=item -s, --service SERVICE
|
||||
|
||||
set service to use (defaults to "bpaste")
|
||||
set service to use (defaults to "dpaste")
|
||||
|
||||
=item -e, --expiration EXPIRATION
|
||||
|
||||
|
@ -119,6 +119,14 @@ An additional http header can be passed by setting HEADER_${SERVICE} in any of t
|
|||
configuration files mentioned above. For example, authenticating with github gist:
|
||||
HEADER_gists="Authorization: token 1234abc56789..."
|
||||
|
||||
=head1 BUGS
|
||||
|
||||
B<wgetpaste> works by hard-coding URLs and CGI parameters into
|
||||
the script. This means that if a paste service's web site changes,
|
||||
B<wgetpaste> might stop working with that site. Currently (January 2015),
|
||||
the B<ca> (http://pastebin.ca) and B<bpaste> (http://bpaste.net) services
|
||||
are broken, and the others have been tested and work OK.
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Copyright (c) 2007 Bo Ørsted Andresen <bo.andresen@zlin.dk>
|
||||
|
|
Loading…
Reference in a new issue