path: root/accessibility/wgetpaste
diff options
author B. Watson <>2010-05-12 23:27:43 +0200
committer Robby Workman <>2010-05-12 23:27:43 +0200
commita63b77bad6f21fda8c2e2b7613fdc959ac15d196 (patch)
tree1c5e802490401c7cbb3974f2511c639f95d02b84 /accessibility/wgetpaste
parent5e1faf6411262e3e57ba7919c2e95f873e58cb24 (diff)
accessibility/wgetpaste: Added to 12.2 repository
Diffstat (limited to 'accessibility/wgetpaste')
8 files changed, 219 insertions, 0 deletions
diff --git a/accessibility/wgetpaste/README b/accessibility/wgetpaste/README
new file mode 100644
index 0000000000..c929c278f7
--- /dev/null
+++ b/accessibility/wgetpaste/README
@@ -0,0 +1,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,
+which is also available from
diff --git a/accessibility/wgetpaste/no_gentooisms.diff b/accessibility/wgetpaste/no_gentooisms.diff
new file mode 100644
index 0000000000..a0720cc806
--- /dev/null
+++ b/accessibility/wgetpaste/no_gentooisms.diff
@@ -0,0 +1,23 @@
+diff -Naur wgetpaste-2.13.orig/wgetpaste wgetpaste-2.13/wgetpaste
+--- wgetpaste-2.13.orig/wgetpaste 2009-05-27 09:46:48.000000000 -0400
++++ wgetpaste-2.13/wgetpaste 2009-06-12 07:12:45.000000000 -0400
+@@ -99,7 +99,7 @@
+ noxclip() {
+ cat <<EOF >&2
+ Could not find xclip on your system. In order to use --x$1 you must either
+-emerge x11-misc/xclip or define x_$1() globally in /etc/wgetpaste.conf or
++install xclip or define x_$1() globally in /etc/wgetpaste.conf or
+ per user in ~/.wgetpaste.conf to use another program (such as e.g. xcut or
+ klipper) to $2 your clipboard.
+@@ -603,8 +603,8 @@
+ [[ -z $SOURCE ]] && SOURCE="stdin" && FILES[${#FILES[*]}]="/dev/stdin"
+-INFO_COMMAND=${INFO_COMMAND:-"emerge --info"}
+ ### everything below this should be independent of which service is being used...
diff --git a/accessibility/wgetpaste/slack-desc b/accessibility/wgetpaste/slack-desc
new file mode 100644
index 0000000000..0d57488442
--- /dev/null
+++ b/accessibility/wgetpaste/slack-desc
@@ -0,0 +1,19 @@
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+ |-----handy-ruler------------------------------------------------------|
+wgetpaste: wgetpaste (command-line interface to various pastebins)
+wgetpaste: wgetpaste is a command line interface for various pastebins.
diff --git a/accessibility/wgetpaste/wgetpaste.1 b/accessibility/wgetpaste/wgetpaste.1
new file mode 100644
index 0000000000..a7f29c200a
--- /dev/null
+++ b/accessibility/wgetpaste/wgetpaste.1
@@ -0,0 +1,83 @@
+.TH WGETPASTE, "1" "June 2009" "wgetpaste, version 2.13" "User Commands"
+wgetpaste \- Command\-line interface to various pastebin sites
+.B wgetpaste
+[\fIoptions\fR] [\fIfile\fR[\fIs\fR]]
+\fB\-l\fR, \fB\-\-language\fR LANG
+set language (defaults to "Plain Text")
+\fB\-d\fR, \fB\-\-description\fR DESCRIPTION set description (defaults to "stdin" or filename)
+\fB\-n\fR, \fB\-\-nick\fR NICK
+set nick (defaults to your username)
+\fB\-s\fR, \fB\-\-service\fR SERVICE
+set service to use (defaults to "dpaste")
+\fB\-e\fR, \fB\-\-expiration\fR EXPIRATION
+set when it should expire (defaults to "30 days")
+\fB\-S\fR, \fB\-\-list\-services\fR
+list supported pastebin services
+\fB\-L\fR, \fB\-\-list\-languages\fR
+list languages supported by the specified service
+\fB\-E\fR, \fB\-\-list\-expiration\fR
+list expiration setting supported by the specified service
+\fB\-u\fR, \fB\-\-tinyurl\fR URL
+convert input url to tinyurl
+\fB\-c\fR, \fB\-\-command\fR COMMAND
+paste COMMAND and the output of COMMAND
+\fB\-i\fR, \fB\-\-info\fR
+append the output of `wgetpaste_info`
+\fB\-I\fR, \fB\-\-info\-only\fR
+paste the output of `wgetpaste_info` only
+\fB\-x\fR, \fB\-\-xcut\fR
+read input from clipboard (requires xclip)
+\fB\-X\fR, \fB\-\-xpaste\fR
+write resulting url to the X primary selection buffer (requires xclip)
+\fB\-C\fR, \fB\-\-xclippaste\fR
+write resulting url to the X clipboard selection buffer (requires xclip)
+\fB\-r\fR, \fB\-\-raw\fR
+show url for the raw paste (no syntax highlighting or html)
+\fB\-t\fR, \fB\-\-tee\fR
+use tee to show what is being pasted
+\fB\-v\fR, \fB\-\-verbose\fR
+show wget stderr output if no url is received
+emit output suitable for shell completions (only affects \fB\-\-list\-\fR*)
+be *very* verbose (implies \fB\-v\fR)
+\fB\-h\fR, \fB\-\-help\fR
+show this help
+\fB\-g\fR, \fB\-\-ignore\-configs\fR
+ignore /etc/wgetpaste.conf, ~/.wgetpaste.conf etc.
+show version information
+globally in /etc/wgetpaste.conf or /etc/wgetpaste.d/*.conf or per user in any of
+~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
+Copyright (c) 2007 Bo ├śrsted Andresen <>
+Distributed as-is. With no warranties.
diff --git a/accessibility/wgetpaste/wgetpaste.SlackBuild b/accessibility/wgetpaste/wgetpaste.SlackBuild
new file mode 100644
index 0000000000..4fd7f8378d
--- /dev/null
+++ b/accessibility/wgetpaste/wgetpaste.SlackBuild
@@ -0,0 +1,44 @@
+# Slackware build script for wgetpaste
+# Written by B. Watson (
+set -e
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+mkdir -p $TMP $PKG/{usr/bin,etc,usr/man/man1,$ZSHDIR} $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+patch -p1 < $CWD/no_gentooisms.diff
+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
+# Man page made by help2man and edited slightly
+gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+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.tgz
diff --git a/accessibility/wgetpaste/wgetpaste.example b/accessibility/wgetpaste/wgetpaste.example
new file mode 100644
index 0000000000..9aface37da
--- /dev/null
+++ b/accessibility/wgetpaste/wgetpaste.example
@@ -0,0 +1,16 @@
+# add this to /etc/wgetpaste.conf or ~/.wgetpaste.conf to set some defaults
+# set default nick
+# change the default service
+# change default language for the ca and the osl services
+# change default expiration period for the ca service
diff --git a/accessibility/wgetpaste/ b/accessibility/wgetpaste/
new file mode 100644
index 0000000000..e02a6e502c
--- /dev/null
+++ b/accessibility/wgetpaste/
@@ -0,0 +1,8 @@
diff --git a/accessibility/wgetpaste/wgetpaste_info b/accessibility/wgetpaste/wgetpaste_info
new file mode 100644
index 0000000000..ff4210db9e
--- /dev/null
+++ b/accessibility/wgetpaste/wgetpaste_info
@@ -0,0 +1,20 @@
+# Slackware system information, similar to "emerge --info" on Gentoo
+# By B. Watson. Use, modify, and enjoy as you like.
+PKGS="pkgtools gcc glibc-solibs automake autoconf libtool xorg-server qt kdebase perl python"
+cat /etc/slackware-version 2>/dev/null || \
+ echo "(Unknown OS: not Slackware)"
+uname -a
+echo -n "CPU(s): " ; grep -c ^processor /proc/cpuinfo
+grep -i ^memtotal: /proc/meminfo
+grep -i ^flags /proc/cpuinfo | head -1
+cd /var/log/packages
+for pkg in $PKGS; do
+ grep -l ^$pkg: *