aboutsummaryrefslogtreecommitdiff
path: root/accessibility/pastebinit
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-08-14 16:25:27 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-17 18:14:28 +0700
commit8c81428b77b23157acb6c1373febfc958094426a (patch)
treec9c0964992924f0029188202e18627c4341f1871 /accessibility/pastebinit
parent09877ba7006d81e35bdba21652b1ae7c13a3f36c (diff)
accessibility/pastebinit: Updated for version 1.7.0.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility/pastebinit')
-rw-r--r--accessibility/pastebinit/README8
-rw-r--r--accessibility/pastebinit/manpagefix.diff15
-rw-r--r--accessibility/pastebinit/pastebinit.SlackBuild11
-rw-r--r--accessibility/pastebinit/pastebinit.info6
4 files changed, 28 insertions, 12 deletions
diff --git a/accessibility/pastebinit/README b/accessibility/pastebinit/README
index 31086d79986b2..6c7603d8f4d18 100644
--- a/accessibility/pastebinit/README
+++ b/accessibility/pastebinit/README
@@ -6,10 +6,12 @@ useful when doing IRC support (when you don't want one to paste a 200
line log) or when working on a command line box with no way to SSH
to it.
-Maintainer's note: as of 2019-12-19, of the 10 pastebin sites
-currently supported by pastebinit, two of them didn't work in
+Maintainer's note: as of 2024-08-14, of the 12 pastebin sites
+currently supported by pastebinit, four of them didn't work in
the SlackBuild author's testing:
+- bpa.st (404 error)
+- sprunge.us (404 error)
- paste.debian.net (redirects to the main page)
- paste.ubuntu.com (may work if you create an account and log in?)
-The default pastebin (with no -b option) is sprunge.us.
+The default pastebin (with no -b option) is dpaste.org.
diff --git a/accessibility/pastebinit/manpagefix.diff b/accessibility/pastebinit/manpagefix.diff
index 81342412f3828..bdc7deee4c741 100644
--- a/accessibility/pastebinit/manpagefix.diff
+++ b/accessibility/pastebinit/manpagefix.diff
@@ -1,6 +1,6 @@
-diff -Naur pastebinit-1.6.2/pastebinit.xml pastebinit-1.6.2.patched/pastebinit.xml
---- pastebinit-1.6.2/pastebinit.xml 2022-11-14 16:33:28.000000000 -0500
-+++ pastebinit-1.6.2.patched/pastebinit.xml 2024-02-09 17:49:40.311102351 -0500
+diff -Naur pastebinit-1.7.0/pastebinit.xml pastebinit-1.7.0.patched/pastebinit.xml
+--- pastebinit-1.7.0/pastebinit.xml 2024-05-13 15:39:15.000000000 -0400
++++ pastebinit-1.7.0.patched/pastebinit.xml 2024-08-14 16:22:04.570987572 -0400
@@ -29,7 +29,7 @@
</refentryinfo>
<refmeta>
@@ -10,3 +10,12 @@ diff -Naur pastebinit-1.6.2/pastebinit.xml pastebinit-1.6.2.patched/pastebinit.x
&dhucpackage;
&dhsection;
</refmeta>
+@@ -63,7 +63,7 @@
+ <variablelist>
+ <varlistentry>
+ <term><option>-b <arg>pastebin</arg></option>
+- (default is distro-specific with a fallback to bpa.st)</term>
++ (default dpaste.org)</term>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-i <arg>input file</arg></option></term>
diff --git a/accessibility/pastebinit/pastebinit.SlackBuild b/accessibility/pastebinit/pastebinit.SlackBuild
index 0c035482eacfa..196411199c97b 100644
--- a/accessibility/pastebinit/pastebinit.SlackBuild
+++ b/accessibility/pastebinit/pastebinit.SlackBuild
@@ -6,6 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240814 bkw: update for v1.7.0 (from launchpad).
+# - Change the default service to dpaste.org. Apparently sprunge.us
+# is broken for everyone right now, even the main page http://sprunge.us
+# in a browser gives us 404 not found.
+
# 20240209 bkw: update for v1.6.2. Not sure if this is from the
# original author or not; it's from launchpad.net, and is the
# version that's in Ubuntu these days. It also has more working
@@ -27,7 +32,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pastebinit
-VERSION=${VERSION:-1.6.2}
+VERSION=${VERSION:-1.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -60,7 +65,7 @@ patch -p1 < $CWD/manpagefix.diff
# 20150116 bkw:
sed -i \
- -e '/^defaultPB/s,=.*,= "sprunge.us",' \
+ -e '/^defaultPB/s,=.*,= "dpaste.org",' \
$PRGNAM
mkdir -p \
@@ -95,7 +100,7 @@ ln -s pbput.1.gz $PKG/usr/man/man1/pbget.1.gz
ln -s pbput.1.gz $PKG/usr/man/man1/pbputs.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING* README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/accessibility/pastebinit/pastebinit.info b/accessibility/pastebinit/pastebinit.info
index 74e9d4b4879bd..740476ee83bb7 100644
--- a/accessibility/pastebinit/pastebinit.info
+++ b/accessibility/pastebinit/pastebinit.info
@@ -1,8 +1,8 @@
PRGNAM="pastebinit"
-VERSION="1.6.2"
+VERSION="1.7.0"
HOMEPAGE="https://launchpad.net/pastebinit/"
-DOWNLOAD="https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/pastebinit/1.6.2-1/pastebinit_1.6.2.orig.tar.gz"
-MD5SUM="de92c23c80a1e9ce01e37abdef19546d"
+DOWNLOAD="https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/pastebinit/1.7.0-1/pastebinit_1.7.0.orig.tar.gz"
+MD5SUM="f7c4304b4775374bd6ff0c528922258c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="configobj"