summaryrefslogtreecommitdiffstats
path: root/accessibility/pastebinit
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/pastebinit')
-rw-r--r--accessibility/pastebinit/README17
-rw-r--r--accessibility/pastebinit/manpagefix.diff18
-rw-r--r--accessibility/pastebinit/pastebinit.SlackBuild41
-rw-r--r--accessibility/pastebinit/pastebinit.info10
-rw-r--r--accessibility/pastebinit/slack-desc10
5 files changed, 60 insertions, 36 deletions
diff --git a/accessibility/pastebinit/README b/accessibility/pastebinit/README
index 4a299f15e8..31086d7998 100644
--- a/accessibility/pastebinit/README
+++ b/accessibility/pastebinit/README
@@ -1,6 +1,15 @@
pastebinit (command-line pastebin client)
-pastebinit is a small python script that simply sends whatever you give
-it to an online pastebin and gives you the URL in return. It's useful
-when doing IRC support (when you don't want one to paste a 200 lines
-log) or when working on a command line box with no way to SSH in it.
+pastebinit is a small python script that simply sends whatever you
+give it to an online pastebin and gives you the URL in return. It's
+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
+the SlackBuild author's testing:
+- 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.
diff --git a/accessibility/pastebinit/manpagefix.diff b/accessibility/pastebinit/manpagefix.diff
index ed6445c488..81342412f3 100644
--- a/accessibility/pastebinit/manpagefix.diff
+++ b/accessibility/pastebinit/manpagefix.diff
@@ -1,12 +1,12 @@
-diff -Naur pastebinit-1.3.1/pastebinit.xml pastebinit-1.3.1.patched//pastebinit.xml
---- pastebinit-1.3.1/pastebinit.xml 2012-05-30 09:46:51.000000000 -0400
-+++ pastebinit-1.3.1.patched//pastebinit.xml 2012-06-14 06:01:08.000000000 -0400
-@@ -31,6 +31,8 @@
+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
+@@ -29,7 +29,7 @@
+ </refentryinfo>
+ <refmeta>
+ <refmiscinfo class="source">&dhpackage;</refmiscinfo>
+- <refmiscinfo class="manual">User Commands</refmiscinfo>
++ <refmiscinfo class="manual">SlackBuilds.org</refmiscinfo>
&dhucpackage;
-
&dhsection;
-+ <refmiscinfo class="manual">SlackBuilds.org</refmiscinfo>
-+ <refmiscinfo class="source">SlackBuilds.org</refmiscinfo>
</refmeta>
- <refnamediv>
- <refname>&dhpackage;</refname>
diff --git a/accessibility/pastebinit/pastebinit.SlackBuild b/accessibility/pastebinit/pastebinit.SlackBuild
index 52fd9aa5f7..0c035482ea 100644
--- a/accessibility/pastebinit/pastebinit.SlackBuild
+++ b/accessibility/pastebinit/pastebinit.SlackBuild
@@ -1,25 +1,44 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for pastebinit
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 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
+# services (8 of 10).
+# - update service status in README, fix grammar.
+# - fix grammar in slack-desc.
+
+# 20191219 bkw:
+# - BUILD=2
+# - Make sprunge.us actually be the default (broken sed command!)
+# - Add note to README about which services still work.
+
# 20150116 bkw:
# - Fix shebang line so python3 isn't required.
# - Change default server to sprunge.us, since we now get
# 'invalid_api_key' trying to use the default pastebin.com.
# I guess nobody's using this, or I would have gotten bug reports.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=pastebinit
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -30,22 +49,18 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Get rid of the fixmes in the man page.
patch -p1 < $CWD/manpagefix.diff
# 20150116 bkw:
sed -i \
- -e '1s,python3$,python,' \
- -e '/^defaultPB/s,"http:.*,"http://sprunge.us",' \
+ -e '/^defaultPB/s,=.*,= "sprunge.us",' \
$PRGNAM
mkdir -p \
@@ -87,4 +102,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/accessibility/pastebinit/pastebinit.info b/accessibility/pastebinit/pastebinit.info
index 4b0ddc2082..74e9d4b487 100644
--- a/accessibility/pastebinit/pastebinit.info
+++ b/accessibility/pastebinit/pastebinit.info
@@ -1,10 +1,10 @@
PRGNAM="pastebinit"
-VERSION="1.5"
-HOMEPAGE="http://www.stgraber.org/category/pastebinit/"
-DOWNLOAD="https://launchpad.net/pastebinit/trunk/1.5/+download/pastebinit-1.5.tar.bz2"
-MD5SUM="47a89cf0527e50bb05342a6c6f03e47d"
+VERSION="1.6.2"
+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_x86_64=""
MD5SUM_x86_64=""
REQUIRES="configobj"
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"
diff --git a/accessibility/pastebinit/slack-desc b/accessibility/pastebinit/slack-desc
index d182df9fb9..afed1b2213 100644
--- a/accessibility/pastebinit/slack-desc
+++ b/accessibility/pastebinit/slack-desc
@@ -8,11 +8,11 @@
|-----handy-ruler------------------------------------------------------|
pastebinit: pastebinit (command-line pastebin client)
pastebinit:
-pastebinit: pastebinit is a small python script that just sends whatever you give
-pastebinit: it to an online pastebin and gives you the URL in return. It's useful
-pastebinit: when doing IRC support (when you don't want one to paste a 200 lines
-pastebinit: log) or when working on a command line box with no way to SSH in it.
-pastebinit:
+pastebinit: pastebinit is a small python script that simply sends whatever you
+pastebinit: give it to an online pastebin and gives you the URL in return. It's
+pastebinit: useful when doing IRC support (when you don't want one to paste a 200
+pastebinit: line log) or when working on a command line box with no way to SSH
+pastebinit: to it.
pastebinit:
pastebinit:
pastebinit: