summaryrefslogtreecommitdiff
path: root/accessibility/wgetpaste/wgetpaste.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/wgetpaste/wgetpaste.SlackBuild')
-rw-r--r--accessibility/wgetpaste/wgetpaste.SlackBuild35
1 files changed, 27 insertions, 8 deletions
diff --git a/accessibility/wgetpaste/wgetpaste.SlackBuild b/accessibility/wgetpaste/wgetpaste.SlackBuild
index 6dc2c2472e..0577cd1c46 100644
--- a/accessibility/wgetpaste/wgetpaste.SlackBuild
+++ b/accessibility/wgetpaste/wgetpaste.SlackBuild
@@ -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