pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/46744: Addition of package net/wgetpaste
The following reply was made to PR pkg/46744; it has been noted by GNATS.
From: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
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@localhost> wrote:
> The following reply was made to PR pkg/46744; it has been noted by GNATS.
>
> From: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> 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@localhost> 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@localhost
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--
Home |
Main Index |
Thread Index |
Old Index