diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 23:27:43 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:27:43 +0200 |
commit | a63b77bad6f21fda8c2e2b7613fdc959ac15d196 (patch) | |
tree | 1c5e802490401c7cbb3974f2511c639f95d02b84 | |
parent | 5e1faf6411262e3e57ba7919c2e95f873e58cb24 (diff) | |
download | slackbuilds-a63b77bad6f21fda8c2e2b7613fdc959ac15d196.tar.gz |
accessibility/wgetpaste: Added to 12.2 repository
-rw-r--r-- | accessibility/wgetpaste/README | 6 | ||||
-rw-r--r-- | accessibility/wgetpaste/no_gentooisms.diff | 23 | ||||
-rw-r--r-- | accessibility/wgetpaste/slack-desc | 19 | ||||
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.1 | 83 | ||||
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.SlackBuild | 44 | ||||
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.example | 16 | ||||
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.info | 8 | ||||
-rw-r--r-- | accessibility/wgetpaste/wgetpaste_info | 20 |
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 SlackBuilds.org. 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" + CVT_TABS=No + +-INFO_COMMAND=${INFO_COMMAND:-"emerge --info"} +-INFO_ARGS=${INFO_ARGS:-"--ignore-default-opts"} ++INFO_COMMAND=${INFO_COMMAND:-"wgetpaste_info"} ++INFO_ARGS=${INFO_ARGS:-""} + + ### 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 @@ +# HOW TO EDIT THIS FILE: +# 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: wgetpaste is a command line interface for various pastebins. +wgetpaste: +wgetpaste: +wgetpaste: +wgetpaste: +wgetpaste: +wgetpaste: +wgetpaste: +wgetpaste: 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" +.SH NAME +wgetpaste \- Command\-line interface to various pastebin sites +.SH SYNOPSIS +.B wgetpaste +[\fIoptions\fR] [\fIfile\fR[\fIs\fR]] +.SH OPTIONS +.TP +\fB\-l\fR, \fB\-\-language\fR LANG +set language (defaults to "Plain Text") +.HP +\fB\-d\fR, \fB\-\-description\fR DESCRIPTION set description (defaults to "stdin" or filename) +.TP +\fB\-n\fR, \fB\-\-nick\fR NICK +set nick (defaults to your username) +.TP +\fB\-s\fR, \fB\-\-service\fR SERVICE +set service to use (defaults to "dpaste") +.TP +\fB\-e\fR, \fB\-\-expiration\fR EXPIRATION +set when it should expire (defaults to "30 days") +.TP +\fB\-S\fR, \fB\-\-list\-services\fR +list supported pastebin services +.TP +\fB\-L\fR, \fB\-\-list\-languages\fR +list languages supported by the specified service +.TP +\fB\-E\fR, \fB\-\-list\-expiration\fR +list expiration setting supported by the specified service +.TP +\fB\-u\fR, \fB\-\-tinyurl\fR URL +convert input url to tinyurl +.TP +\fB\-c\fR, \fB\-\-command\fR COMMAND +paste COMMAND and the output of COMMAND +.TP +\fB\-i\fR, \fB\-\-info\fR +append the output of `wgetpaste_info` +.TP +\fB\-I\fR, \fB\-\-info\-only\fR +paste the output of `wgetpaste_info` only +.TP +\fB\-x\fR, \fB\-\-xcut\fR +read input from clipboard (requires xclip) +.TP +\fB\-X\fR, \fB\-\-xpaste\fR +write resulting url to the X primary selection buffer (requires xclip) +.TP +\fB\-C\fR, \fB\-\-xclippaste\fR +write resulting url to the X clipboard selection buffer (requires xclip) +.TP +\fB\-r\fR, \fB\-\-raw\fR +show url for the raw paste (no syntax highlighting or html) +.TP +\fB\-t\fR, \fB\-\-tee\fR +use tee to show what is being pasted +.TP +\fB\-v\fR, \fB\-\-verbose\fR +show wget stderr output if no url is received +.TP +\fB\-\-completions\fR +emit output suitable for shell completions (only affects \fB\-\-list\-\fR*) +.TP +\fB\-\-debug\fR +be *very* verbose (implies \fB\-v\fR) +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help +.TP +\fB\-g\fR, \fB\-\-ignore\-configs\fR +ignore /etc/wgetpaste.conf, ~/.wgetpaste.conf etc. +.TP +\fB\-\-version\fR +show version information +.PP +Defaults (DEFAULT_{NICK,SERVICE,LANGUAGE,EXPIRATION}[_${SERVICE}]) can be overridden +globally in /etc/wgetpaste.conf or /etc/wgetpaste.d/*.conf or per user in any of +~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf. +.SH AUTHOR +Copyright (c) 2007 Bo Ørsted Andresen <bo.andresen@zlin.dk> +.br +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 @@ +#!/bin/sh + +# Slackware build script for wgetpaste + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=wgetpaste +VERSION=${VERSION:-2.13} +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +ZSHDIR=/usr/share/zsh/site-functions + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +mkdir -p $TMP $PKG/{usr/bin,etc,usr/man/man1,$ZSHDIR} $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION + +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 @@ +#!/bin/bash + +# add this to /etc/wgetpaste.conf or ~/.wgetpaste.conf to set some defaults + +# set default nick +DEFAULT_NICK=zlin + +# change the default service +DEFAULT_SERVICE="zlin" + +# change default language for the ca and the osl services +DEFAULT_LANGUAGE_ca="Bash" +DEFAULT_LANGUAGE_osl="Diff" + +# change default expiration period for the ca service +DEFAULT_EXPIRATION_ca="1 week" diff --git a/accessibility/wgetpaste/wgetpaste.info b/accessibility/wgetpaste/wgetpaste.info new file mode 100644 index 0000000000..e02a6e502c --- /dev/null +++ b/accessibility/wgetpaste/wgetpaste.info @@ -0,0 +1,8 @@ +PRGNAM="wgetpaste" +VERSION="2.13" +HOMEPAGE="http://wgetpaste.zlin.dk/" +DOWNLOAD="http://wgetpaste.zlin.dk/wgetpaste-2.13.tar.bz2" +MD5SUM="a341c778d745b0a7ad11163a4a2c1ea9" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" +APPROVED="rworkman" 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 @@ +#!/bin/sh + +# 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 +uptime +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: * +done |