mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
accessibility/wgetpaste: Added to 12.2 repository
This commit is contained in:
parent
5e1faf6411
commit
a63b77bad6
8 changed files with 219 additions and 0 deletions
6
accessibility/wgetpaste/README
Normal file
6
accessibility/wgetpaste/README
Normal file
|
@ -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.
|
23
accessibility/wgetpaste/no_gentooisms.diff
Normal file
23
accessibility/wgetpaste/no_gentooisms.diff
Normal file
|
@ -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...
|
||||
|
19
accessibility/wgetpaste/slack-desc
Normal file
19
accessibility/wgetpaste/slack-desc
Normal file
|
@ -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:
|
83
accessibility/wgetpaste/wgetpaste.1
Normal file
83
accessibility/wgetpaste/wgetpaste.1
Normal file
|
@ -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.
|
44
accessibility/wgetpaste/wgetpaste.SlackBuild
Normal file
44
accessibility/wgetpaste/wgetpaste.SlackBuild
Normal file
|
@ -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
|
16
accessibility/wgetpaste/wgetpaste.example
Normal file
16
accessibility/wgetpaste/wgetpaste.example
Normal file
|
@ -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"
|
8
accessibility/wgetpaste/wgetpaste.info
Normal file
8
accessibility/wgetpaste/wgetpaste.info
Normal file
|
@ -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"
|
20
accessibility/wgetpaste/wgetpaste_info
Normal file
20
accessibility/wgetpaste/wgetpaste_info
Normal file
|
@ -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
|
Loading…
Reference in a new issue