Import wgetpaste-2.20 as net/wgetpaste.
PR 46744 by Matthew Mondor. A Script that automates pasting to a number of pastebin services relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee) and wget.
This commit is contained in:
parent
3947bcfd5a
commit
e90ca06da5
5 changed files with 54 additions and 0 deletions
3
net/wgetpaste/DESCR
Normal file
3
net/wgetpaste/DESCR
Normal file
|
@ -0,0 +1,3 @@
|
|||
A Script that automates pasting to a number of pastebin services
|
||||
relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
|
||||
and wget.
|
34
net/wgetpaste/Makefile
Normal file
34
net/wgetpaste/Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/08/11 08:43:45 obache Exp $
|
||||
|
||||
DISTNAME= wgetpaste-2.20
|
||||
CATEGORIES= net www
|
||||
MASTER_SITES= http://wgetpaste.zlin.dk/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://wgetpaste.zlin.dk/
|
||||
COMMENT= Command line utility to upload to pastebin sites
|
||||
LICENSE= public-domain
|
||||
|
||||
DEPENDS+= wget>=1.13.4:../../net/wget
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
INSTALLATION_DIRS= bin share/examples/wgetpaste etc
|
||||
NO_BUILD= yes
|
||||
|
||||
CONF_FILES= ${PREFIX}/share/examples/wgetpaste/wgetpaste.conf ${PKG_SYSCONFDIR}/wgetpaste.conf
|
||||
|
||||
SUBST_CLASSES+= config
|
||||
SUBST_SED.config+= -e "s,/etc/,${PKG_SYSCONFDIR}/,g"
|
||||
SUBST_FILES.config+= wgetpaste
|
||||
SUBST_STAGE.config= pre-install
|
||||
SUBST_MESSAGE.config= Fixing path to global config files.
|
||||
|
||||
USE_TOOLS+= bash:run
|
||||
REPLACE_BASH= wgetpaste
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/wgetpaste ${DESTDIR}${PREFIX}/bin/wgetpaste
|
||||
${INSTALL_DATA} ${FILESDIR}/wgetpaste.conf ${DESTDIR}${PREFIX}/share/examples/wgetpaste/wgetpaste.conf
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
3
net/wgetpaste/PLIST
Normal file
3
net/wgetpaste/PLIST
Normal file
|
@ -0,0 +1,3 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2012/08/11 08:43:45 obache Exp $
|
||||
bin/wgetpaste
|
||||
share/examples/wgetpaste/wgetpaste.conf
|
5
net/wgetpaste/distinfo
Normal file
5
net/wgetpaste/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1 2012/08/11 08:43:45 obache Exp $
|
||||
|
||||
SHA1 (wgetpaste-2.20.tar.bz2) = a50a5ecb236b4f7bbd4188e47a3b892b1dc90595
|
||||
RMD160 (wgetpaste-2.20.tar.bz2) = a12a9c468b249b6e59eb155e872363181deada9f
|
||||
Size (wgetpaste-2.20.tar.bz2) = 10104 bytes
|
9
net/wgetpaste/files/wgetpaste.conf
Normal file
9
net/wgetpaste/files/wgetpaste.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
SERVICES="${SERVICES} lugons bpaste"
|
||||
|
||||
ENGINE_lugons=lodgeit
|
||||
URL_lugons="https://paste.lugons.org/"
|
||||
|
||||
ENGINE_bpaste=lodgeit
|
||||
URL_bpaste="http://bpaste.net"
|
||||
|
||||
DEFAULT_SERVICE=bpaste
|
Loading…
Reference in a new issue