NetBSD Problem Report #46744

From mm_lists@pulsar-zone.net  Wed Jul 25 10:08:51 2012
Return-Path: <mm_lists@pulsar-zone.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 2187563B882
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Jul 2012 10:08:51 +0000 (UTC)
Message-Id: <201207251008.q6PA8lE2021747@ginseng.pulsar-zone.net>
Date: Wed, 25 Jul 2012 06:08:47 -0400
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: Addition of package net/wgetpaste

>Number:         46744
>Category:       pkg
>Synopsis:       Addition of package net/wgetpaste
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 25 10:10:00 +0000 2012
>Closed-Date:    Sat Aug 11 08:45:30 +0000 2012
>Last-Modified:  Sat Aug 11 09:40:01 +0000 2012
>Originator:     Matthew Mondor
>Release:        NetBSD 6.0_BETA2
>Organization:
>Environment:
System: NetBSD ninja.xisop 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC_MM) #18: Wed Jul 4 20:43:55 EDT 2012 root@ninja.xisop:/usr/obj/sys/arch/amd64/compile/GENERIC_MM amd64
Architecture: x86_64
Machine: amd64
>Description:

The pkgsrc stub can be found at:
http://ftp.pulsar-zone.net/pkgsrc/net-wgetpaste.tgz
A shell archive of the same stub is also attached.

Information for wgetpaste-2.20:

Comment:
Command line utility to upload to pastebin sites

Requires:
bash>=4.2
wget>=1.13.4

Description:
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.

Homepage:
http://wgetpaste.zlin.dk/

>How-To-Repeat:
>Fix:

--MP_/YRHy8Mh1MnNehF20.t.q93d
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=net-wgetpaste.shar

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wgetpaste
#	wgetpaste/files
#	wgetpaste/files/wgetpaste.conf
#	wgetpaste/PLIST
#	wgetpaste/Makefile
#	wgetpaste/DESCR
#	wgetpaste/distinfo
#
echo c - wgetpaste
mkdir -p wgetpaste > /dev/null 2>&1
echo c - wgetpaste/files
mkdir -p wgetpaste/files > /dev/null 2>&1
echo x - wgetpaste/files/wgetpaste.conf
sed 's/^X//' >wgetpaste/files/wgetpaste.conf << 'END-of-wgetpaste/files/wgetpaste.conf'
XSERVICES="${SERVICES} lugons bpaste"
X
XENGINE_lugons=lodgeit
XURL_lugons="https://paste.lugons.org/"
X
XENGINE_bpaste=lodgeit
XURL_bpaste="http://bpaste.net"
X
XDEFAULT_SERVICE=bpaste
END-of-wgetpaste/files/wgetpaste.conf
echo x - wgetpaste/PLIST
sed 's/^X//' >wgetpaste/PLIST << 'END-of-wgetpaste/PLIST'
X@comment $NetBSD$
Xbin/wgetpaste
Xshare/examples/wgetpaste.d/wgetpaste.conf
END-of-wgetpaste/PLIST
echo x - wgetpaste/Makefile
sed 's/^X//' >wgetpaste/Makefile << 'END-of-wgetpaste/Makefile'
X# $NetBSD$
X
XDISTNAME=	wgetpaste-2.20
XCATEGORIES=	net www
XMASTER_SITES=	http://wgetpaste.zlin.dk/
XEXTRACT_SUFX=	.tar.bz2
X
XMAINTAINER=	pkgsrc-users@NetBSD.org
XHOMEPAGE=	http://wgetpaste.zlin.dk/
XCOMMENT=	Command line utility to upload to pastebin sites
XLICENSE=	public-domain
X
XDEPENDS+=	bash>=4.2:../../shells/bash
XDEPENDS+=	wget>=1.13.4:../../net/wget
X
XPKG_DESTDIR_SUPPORT=	user-destdir
XINSTALLATION_DIRS=	bin share/examples/wgetpaste.d etc
XNO_BUILD=		yes
X
XCONF_FILES=		${PREFIX}/share/examples/wgetpaste.d/wgetpaste.conf ${PKG_SYSCONFDIR}/wgetpaste.conf
X
XSUBST_CLASSES+=		config
XSUBST_SED.config+=	-e "s,/etc/,${PKG_SYSCONFDIR}/,g"
XSUBST_FILES.config+=	wgetpaste
XSUBST_STAGE.config=	pre-install
XSUBST_MESSAGE.config=	Fixing path to global config files.
X
XREPLACE_INTERPRETER+=	bash
XREPLACE.bash.old=	/usr/bin/env\ bash
XREPLACE.bash.new=	${PREFIX}/bin/bash
XREPLACE_FILES.bash=	${WRKSRC}/wgetpaste
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/wgetpaste ${DESTDIR}${PREFIX}/bin/wgetpaste
X	${INSTALL_DATA} ${FILESDIR}/wgetpaste.conf ${DESTDIR}${PREFIX}/share/examples/wgetpaste.d/wgetpaste.conf
X
X.include "../../mk/bsd.pkg.mk"
END-of-wgetpaste/Makefile
echo x - wgetpaste/DESCR
sed 's/^X//' >wgetpaste/DESCR << 'END-of-wgetpaste/DESCR'
XA Script that automates pasting to a number of pastebin services
Xrelying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
Xand wget.
END-of-wgetpaste/DESCR
echo x - wgetpaste/distinfo
sed 's/^X//' >wgetpaste/distinfo << 'END-of-wgetpaste/distinfo'
X$NetBSD$
X
XSHA1 (wgetpaste-2.20.tar.bz2) = a50a5ecb236b4f7bbd4188e47a3b892b1dc90595
XRMD160 (wgetpaste-2.20.tar.bz2) = a12a9c468b249b6e59eb155e872363181deada9f
XSize (wgetpaste-2.20.tar.bz2) = 10104 bytes
END-of-wgetpaste/distinfo
exit


--MP_/YRHy8Mh1MnNehF20.t.q93d--

>Release-Note:

>Audit-Trail:
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Wed, 25 Jul 2012 06:23:27 -0400

 On Wed, 25 Jul 2012 10:10:01 +0000 (UTC)
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 > #	wgetpaste/files/wgetpaste.conf

 I'll explain the above file:

 The new wgetpaste default is to use gist via https.  Unfortunately,
 this requires user intervention to setup SSL certificates after
 installing security/mozilla-rootcerts.  At this point, wget stops
 complaining about invalid certificates.

 However, for some reason wgetpaste will still report an error for gist
 over https, but using the --verbose option shows that a paste was
 actually done.  Going at that URL however shows a JSON blob, with part
 of what was intended to be sent in one of the fields.

 I have not investigated this further, but I suspect it could be due to a
 difference in our regex library or in sed, with the gist engine not
 being written portably, or due to a recent change in the gist site API.

 But this does not matter if using another default (in this case bpaste,
 which is also the default configuration provided on gentoo, according
 to the users who requested this package in pkgsrc).

 Thanks,
 -- 
 Matt

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Wed, 25 Jul 2012 20:22:05 +0900

 You can use followings for bash.
 USE_TOOLS+=	bash:run
 REPLACE_BASH=	wgetpaste

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Wed, 25 Jul 2012 08:05:08 -0400

 --MP_/PsUr=Wb8ERNhBhQIboKSEpL
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 On Wed, 25 Jul 2012 11:25:03 +0000 (UTC)
 "OBATA Akio" <obache@netbsd.org> wrote:

 >  You can use followings for bash.
 >  USE_TOOLS+=	bash:run
 >  REPLACE_BASH=	wgetpaste

 Thanks, I see that this also makes the DEPENDS line for bash
 unnecessary.

 Stub updated at http://ftp.pulsar-zone.net/pkgsrc/net-wgetpaste.tgz and
 in attachment.
 -- 
 Matt

 --MP_/PsUr=Wb8ERNhBhQIboKSEpL
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=net-wgetpaste.shar

 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	wgetpaste/
 #	wgetpaste/files
 #	wgetpaste/files/wgetpaste.conf
 #	wgetpaste/PLIST
 #	wgetpaste/Makefile
 #	wgetpaste/DESCR
 #	wgetpaste/distinfo
 #
 echo c - wgetpaste/
 mkdir -p wgetpaste/ > /dev/null 2>&1
 echo c - wgetpaste/files
 mkdir -p wgetpaste/files > /dev/null 2>&1
 echo x - wgetpaste/files/wgetpaste.conf
 sed 's/^X//' >wgetpaste/files/wgetpaste.conf << 'END-of-wgetpaste/files/wgetpaste.conf'
 XSERVICES="${SERVICES} lugons bpaste"
 X
 XENGINE_lugons=lodgeit
 XURL_lugons="https://paste.lugons.org/"
 X
 XENGINE_bpaste=lodgeit
 XURL_bpaste="http://bpaste.net"
 X
 XDEFAULT_SERVICE=bpaste
 END-of-wgetpaste/files/wgetpaste.conf
 echo x - wgetpaste/PLIST
 sed 's/^X//' >wgetpaste/PLIST << 'END-of-wgetpaste/PLIST'
 X@comment $NetBSD$
 Xbin/wgetpaste
 Xshare/examples/wgetpaste.d/wgetpaste.conf
 END-of-wgetpaste/PLIST
 echo x - wgetpaste/Makefile
 sed 's/^X//' >wgetpaste/Makefile << 'END-of-wgetpaste/Makefile'
 X# $NetBSD$
 X
 XDISTNAME=	wgetpaste-2.20
 XCATEGORIES=	net www
 XMASTER_SITES=	http://wgetpaste.zlin.dk/
 XEXTRACT_SUFX=	.tar.bz2
 X
 XMAINTAINER=	pkgsrc-users@NetBSD.org
 XHOMEPAGE=	http://wgetpaste.zlin.dk/
 XCOMMENT=	Command line utility to upload to pastebin sites
 XLICENSE=	public-domain
 X
 XDEPENDS+=	wget>=1.13.4:../../net/wget
 X
 XPKG_DESTDIR_SUPPORT=	user-destdir
 XINSTALLATION_DIRS=	bin share/examples/wgetpaste.d etc
 XNO_BUILD=		yes
 X
 XCONF_FILES=		${PREFIX}/share/examples/wgetpaste.d/wgetpaste.conf ${PKG_SYSCONFDIR}/wgetpaste.conf
 X
 XSUBST_CLASSES+=		config
 XSUBST_SED.config+=	-e "s,/etc/,${PKG_SYSCONFDIR}/,g"
 XSUBST_FILES.config+=	wgetpaste
 XSUBST_STAGE.config=	pre-install
 XSUBST_MESSAGE.config=	Fixing path to global config files.
 X
 XUSE_TOOLS+=		bash:run
 XREPLACE_BASH=		wgetpaste
 X
 Xdo-install:
 X	${INSTALL_SCRIPT} ${WRKSRC}/wgetpaste ${DESTDIR}${PREFIX}/bin/wgetpaste
 X	${INSTALL_DATA} ${FILESDIR}/wgetpaste.conf ${DESTDIR}${PREFIX}/share/examples/wgetpaste.d/wgetpaste.conf
 X
 X.include "../../mk/bsd.pkg.mk"
 END-of-wgetpaste/Makefile
 echo x - wgetpaste/DESCR
 sed 's/^X//' >wgetpaste/DESCR << 'END-of-wgetpaste/DESCR'
 XA Script that automates pasting to a number of pastebin services
 Xrelying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
 Xand wget.
 END-of-wgetpaste/DESCR
 echo x - wgetpaste/distinfo
 sed 's/^X//' >wgetpaste/distinfo << 'END-of-wgetpaste/distinfo'
 X$NetBSD$
 X
 XSHA1 (wgetpaste-2.20.tar.bz2) = a50a5ecb236b4f7bbd4188e47a3b892b1dc90595
 XRMD160 (wgetpaste-2.20.tar.bz2) = a12a9c468b249b6e59eb155e872363181deada9f
 XSize (wgetpaste-2.20.tar.bz2) = 10104 bytes
 END-of-wgetpaste/distinfo
 exit


 --MP_/PsUr=Wb8ERNhBhQIboKSEpL--

From: doug <doug@mechalogic.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46744 Addition of package net/wgetpaste
Date: Fri, 27 Jul 2012 03:02:25 -0400

 I was the one who suggested that wgetpaste be included into NetBSD. It
 is a very helpful tool for collaboration on irc. Instead of flooding a
 channel you can locally run "$wgetpaste errorlog.txt" and wgetpaste
 will respond with something like "Your paste can be seen at
 http://bpaste.net/show/37082" which you can then just post the link
 into irc for others to examine.

 phadthai on #netbsd has provided a test package to try, which I did. I
 installed it into /usr/pkgsrc/net/wgetpaste as suggested. It built and
 installed without errors and works as expected.

 Overall a very helpful tool for development work. Thanks phadthai!

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Tue, 31 Jul 2012 17:30:48 -0400

 On Wed, 25 Jul 2012 10:10:01 +0000 (UTC)
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 > >Number:         46744
 > >Category:       pkg
 > >Synopsis:       Addition of package net/wgetpaste

 Any volunteer to commit this?

 Thanks,
 -- 
 Matt

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Tue, 07 Aug 2012 23:37:13 +0900

 One more question.
 Why example directory name is "wgetpaste.d" (what is `.d' suffix)?

 -- 
 OBATA Akio / obache@NetBSD.org

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Tue, 7 Aug 2012 11:00:54 -0400

 On Tue,  7 Aug 2012 14:40:04 +0000 (UTC)
 "OBATA Akio" <obache@netbsd.org> wrote:

 >  One more question.
 >  Why example directory name is "wgetpaste.d" (what is `.d' suffix)?

 The script looks for either a single configuration file named
 wgetpaste.conf (or ~/.wgetpaste.conf) or for a directory named
 wgetpaste.d (or ~/.wgetpaste.d), in the latter case sourcing every file
 of the directory (i.e. one service could be added per config file for
 instance).  But the script's help is enough to know this feature, so
 the .d suffix for the example directory can probably be suppressed
 (quote from help below).

 "
 Defaults (DEFAULT_{NICK,LANGUAGE,EXPIRATION}[_${SERVICE}] and DEFAULT_SERVICE)
 can be overridden globally in /usr/pkg/etc/wgetpaste.conf or /usr/pkg/etc/wgetpaste.d/*.conf or per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
 "

 Thanks,
 -- 
 Matt

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Tue, 7 Aug 2012 19:46:33 -0400

 --MP_/M+xpknZvYeNtHItZNtEIqGl
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 On Tue,  7 Aug 2012 15:05:04 +0000 (UTC)
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 > The following reply was made to PR pkg/46744; it has been noted by GNATS.
 > 
 > From: Matthew Mondor <mm_lists@pulsar-zone.net>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/46744: Addition of package net/wgetpaste
 > Date: Tue, 7 Aug 2012 11:00:54 -0400
 > 
 >  On Tue,  7 Aug 2012 14:40:04 +0000 (UTC)
 >  "OBATA Akio" <obache@netbsd.org> wrote:
 >  
 >  >  One more question.
 >  >  Why example directory name is "wgetpaste.d" (what is `.d' suffix)?
 >  
 >  The script looks for either a single configuration file named
 >  wgetpaste.conf (or ~/.wgetpaste.conf) or for a directory named
 >  wgetpaste.d (or ~/.wgetpaste.d), in the latter case sourcing every file
 >  of the directory (i.e. one service could be added per config file for
 >  instance).  But the script's help is enough to know this feature, so
 >  the .d suffix for the example directory can probably be suppressed
 >  (quote from help below).
 >  
 >  "
 >  Defaults (DEFAULT_{NICK,LANGUAGE,EXPIRATION}[_${SERVICE}] and DEFAULT_SERVICE)
 >  can be overridden globally in /usr/pkg/etc/wgetpaste.conf or /usr/pkg/etc/wgetpaste.d/*.conf or per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
 >  "

 Shar archive and http://ftp.pulsar-zone.net/pkgsrc/net-wgetpaste.tgz
 updated to remove the .d suffix (I tested build and binary package
 install again successfully after the change).

 Thanks,
 -- 
 Matt

 --MP_/M+xpknZvYeNtHItZNtEIqGl
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=net-wgetpaste.shar

 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	wgetpaste/
 #	wgetpaste/files
 #	wgetpaste/files/wgetpaste.conf
 #	wgetpaste/PLIST
 #	wgetpaste/Makefile
 #	wgetpaste/DESCR
 #	wgetpaste/distinfo
 #
 echo c - wgetpaste/
 mkdir -p wgetpaste/ > /dev/null 2>&1
 echo c - wgetpaste/files
 mkdir -p wgetpaste/files > /dev/null 2>&1
 echo x - wgetpaste/files/wgetpaste.conf
 sed 's/^X//' >wgetpaste/files/wgetpaste.conf << 'END-of-wgetpaste/files/wgetpaste.conf'
 XSERVICES="${SERVICES} lugons bpaste"
 X
 XENGINE_lugons=lodgeit
 XURL_lugons="https://paste.lugons.org/"
 X
 XENGINE_bpaste=lodgeit
 XURL_bpaste="http://bpaste.net"
 X
 XDEFAULT_SERVICE=bpaste
 END-of-wgetpaste/files/wgetpaste.conf
 echo x - wgetpaste/PLIST
 sed 's/^X//' >wgetpaste/PLIST << 'END-of-wgetpaste/PLIST'
 X@comment $NetBSD$
 Xbin/wgetpaste
 Xshare/examples/wgetpaste/wgetpaste.conf
 END-of-wgetpaste/PLIST
 echo x - wgetpaste/Makefile
 sed 's/^X//' >wgetpaste/Makefile << 'END-of-wgetpaste/Makefile'
 X# $NetBSD$
 X
 XDISTNAME=	wgetpaste-2.20
 XCATEGORIES=	net www
 XMASTER_SITES=	http://wgetpaste.zlin.dk/
 XEXTRACT_SUFX=	.tar.bz2
 X
 XMAINTAINER=	pkgsrc-users@NetBSD.org
 XHOMEPAGE=	http://wgetpaste.zlin.dk/
 XCOMMENT=	Command line utility to upload to pastebin sites
 XLICENSE=	public-domain
 X
 XDEPENDS+=	wget>=1.13.4:../../net/wget
 X
 XPKG_DESTDIR_SUPPORT=	user-destdir
 XINSTALLATION_DIRS=	bin share/examples/wgetpaste etc
 XNO_BUILD=		yes
 X
 XCONF_FILES=		${PREFIX}/share/examples/wgetpaste/wgetpaste.conf ${PKG_SYSCONFDIR}/wgetpaste.conf
 X
 XSUBST_CLASSES+=		config
 XSUBST_SED.config+=	-e "s,/etc/,${PKG_SYSCONFDIR}/,g"
 XSUBST_FILES.config+=	wgetpaste
 XSUBST_STAGE.config=	pre-install
 XSUBST_MESSAGE.config=	Fixing path to global config files.
 X
 XUSE_TOOLS+=		bash:run
 XREPLACE_BASH=		wgetpaste
 X
 Xdo-install:
 X	${INSTALL_SCRIPT} ${WRKSRC}/wgetpaste ${DESTDIR}${PREFIX}/bin/wgetpaste
 X	${INSTALL_DATA} ${FILESDIR}/wgetpaste.conf ${DESTDIR}${PREFIX}/share/examples/wgetpaste/wgetpaste.conf
 X
 X.include "../../mk/bsd.pkg.mk"
 END-of-wgetpaste/Makefile
 echo x - wgetpaste/DESCR
 sed 's/^X//' >wgetpaste/DESCR << 'END-of-wgetpaste/DESCR'
 XA Script that automates pasting to a number of pastebin services
 Xrelying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
 Xand wget.
 END-of-wgetpaste/DESCR
 echo x - wgetpaste/distinfo
 sed 's/^X//' >wgetpaste/distinfo << 'END-of-wgetpaste/distinfo'
 X$NetBSD$
 X
 XSHA1 (wgetpaste-2.20.tar.bz2) = a50a5ecb236b4f7bbd4188e47a3b892b1dc90595
 XRMD160 (wgetpaste-2.20.tar.bz2) = a12a9c468b249b6e59eb155e872363181deada9f
 XSize (wgetpaste-2.20.tar.bz2) = 10104 bytes
 END-of-wgetpaste/distinfo
 exit


 --MP_/M+xpknZvYeNtHItZNtEIqGl--

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Fri, 10 Aug 2012 21:58:38 +0900

 I have one more question point, please let me know.

 I can find INFO_COMMAND and INFO_ARGS in the script (default is `emaerge').
 Should it be replaced with ours (pkg_info?).
 I don't know how it will be used though.

 -- 
 OBATA Akio / obache@NetBSD.org

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46744 CVS commit: pkgsrc/net/wgetpaste
Date: Sat, 11 Aug 2012 08:43:45 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sat Aug 11 08:43:45 UTC 2012

 Added Files:
 	pkgsrc/net/wgetpaste: DESCR Makefile PLIST distinfo
 	pkgsrc/net/wgetpaste/files: wgetpaste.conf

 Log Message:
 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.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/wgetpaste/DESCR \
     pkgsrc/net/wgetpaste/Makefile pkgsrc/net/wgetpaste/PLIST \
     pkgsrc/net/wgetpaste/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/wgetpaste/files/wgetpaste.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 11 Aug 2012 08:45:30 +0000
State-Changed-Why:
Imported.  Thank you!


From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Sat, 11 Aug 2012 05:00:29 -0400

 On Fri, 10 Aug 2012 13:00:07 +0000 (UTC)
 "OBATA Akio" <obache@netbsd.org> wrote:

 >  I have one more question point, please let me know.
 >  
 >  I can find INFO_COMMAND and INFO_ARGS in the script (default is `emaerge').
 >  Should it be replaced with ours (pkg_info?).
 >  I don't know how it will be used though.

 I just received the commit message, thanks!

 Hmm for this, I agree that "emerge --info" is not really useful with
 pkgsrc.  However I'm not sure what this command outputs exactly (lists
 packages? Statistics, Gentoo distribution version?), and a search
 didn't easily provide me with an output example from it.  We could
 probably assume that it lists the installed packages, in which case
 pkg_info would indeed be a better choice...  On the other hand, it's
 also very easy to use "pkg_info | wgetpaste" as well.

 Perhaps that we could provide an alternative command via the default
 configuration file, i.e.:

 INFO_COMMAND="uname -smr && pkg_info"

 But there is a problem, even with a single command such as uname -smr,
 an error is generated when I try it:
 uname: unknown option -- -
 usage: uname [-amnprsv]

 So possibly a fix to the script would be necessary...
 -- 
 Matt

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46744: Addition of package net/wgetpaste
Date: Sat, 11 Aug 2012 05:36:51 -0400

 On Sat, 11 Aug 2012 09:05:04 +0000 (UTC)
 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:

 >  But there is a problem, even with a single command such as uname -smr,
 >  an error is generated when I try it:
 >  uname: unknown option -- -
 >  usage: uname [-amnprsv]
 >  
 >  So possibly a fix to the script would be necessary...

 It seems that only a single command can work, and that arguments are
 really necessary, if not altering the script (INFO_ARGS='' or ' ' won't
 work).

 The following works in wgetpaste.conf:

 INFO_COMMAND='pkg_info'
 INFO_ARGS='-a'

 Yet in the header it adds as part of the paste, it omits to include
 INFO_ARGS:

 1  $ pkg_info
 2  ...

 Thanks,
 -- 
 Matt

>Unformatted:
 --MP_/YRHy8Mh1MnNehF20.t.q93d
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.