pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/wgetpaste net/wgetpaste: Update to 2.29



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eef3d0f7e47c
branches:  trunk
changeset: 406711:eef3d0f7e47c
user:      ng0 <ng0%pkgsrc.org@localhost>
date:      Sun Dec 29 22:09:38 2019 +0000

description:
net/wgetpaste: Update to 2.29

No Changelog.

diffstat:

 net/wgetpaste/Makefile                |   6 +++---
 net/wgetpaste/distinfo                |  11 ++++++-----
 net/wgetpaste/patches/patch-wgetpaste |  34 ++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+), 8 deletions(-)

diffs (75 lines):

diff -r 1a35a0a5856d -r eef3d0f7e47c net/wgetpaste/Makefile
--- a/net/wgetpaste/Makefile    Sun Dec 29 21:46:59 2019 +0000
+++ b/net/wgetpaste/Makefile    Sun Dec 29 22:09:38 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2014/12/13 14:27:35 mef Exp $
+# $NetBSD: Makefile,v 1.4 2019/12/29 22:09:38 ng0 Exp $
 
-DISTNAME=      wgetpaste-2.25
+DISTNAME=      wgetpaste-2.29
 CATEGORIES=    net www
 MASTER_SITES=  http://wgetpaste.zlin.dk/
 EXTRACT_SUFX=  .tar.bz2
@@ -8,7 +8,7 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://wgetpaste.zlin.dk/
 COMMENT=       Command line utility to upload to pastebin sites
-LICENSE=       public-domain
+LICENSE=       mit
 
 DEPENDS+=      wget>=1.13.4:../../net/wget
 
diff -r 1a35a0a5856d -r eef3d0f7e47c net/wgetpaste/distinfo
--- a/net/wgetpaste/distinfo    Sun Dec 29 21:46:59 2019 +0000
+++ b/net/wgetpaste/distinfo    Sun Dec 29 22:09:38 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 00:35:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2019/12/29 22:09:38 ng0 Exp $
 
-SHA1 (wgetpaste-2.25.tar.bz2) = 4f2220714522c724928dee67ed1c5d7feed1c207
-RMD160 (wgetpaste-2.25.tar.bz2) = 97c533349f4fbb594bcea9948119e64384eb716e
-SHA512 (wgetpaste-2.25.tar.bz2) = c3cd56f32311c77ce5ac970f0cd6b2e8285cac3caaf61669237ac707ed3b9aab285fbe9dee6260ea13b8df41a22acfaa3b8439298560ab68c3a568d60557d82e
-Size (wgetpaste-2.25.tar.bz2) = 11107 bytes
+SHA1 (wgetpaste-2.29.tar.bz2) = 1cfd3e513c8c504a22851ab4120821344066eecf
+RMD160 (wgetpaste-2.29.tar.bz2) = 1331aff97117ee0763ea63124cf6e4c4d99e814c
+SHA512 (wgetpaste-2.29.tar.bz2) = 6596842733bb5d1d52cbb3cbcf61ba714f0cbfdc13acb4d6025ccfd27c214adaf886ac3a0a11baefaa4af3f33165619e5a3360b4e0807d29e8dc8ef5ff819bb6
+Size (wgetpaste-2.29.tar.bz2) = 12988 bytes
+SHA1 (patch-wgetpaste) = 70601dda2cb39e031fa42ec67a52d7d81ccc62d5
diff -r 1a35a0a5856d -r eef3d0f7e47c net/wgetpaste/patches/patch-wgetpaste
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wgetpaste/patches/patch-wgetpaste     Sun Dec 29 22:09:38 2019 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-wgetpaste,v 1.1 2019/12/29 22:09:38 ng0 Exp $
+
+upstream commit 6175f89cb618fef83882ed86ab049a7fd1035770
+Fix handling of bpaste urls. bpaste is the default service.
+
+--- wgetpaste~
++++ wgetpaste
+@@ -181,7 +181,8 @@ xml+cheetah xml+django xml+evoque xml+lasso xml+mako xml+myghty xml+php xml+erb
+ xml+velocity xml xquery xslt xtend yaml"
+ EXPIRATIONS_pinnwand="1day 1week 1month never"
+ POST_pinnwand="submit=Paste! % % lexer expiry % code"
+-REGEX_RAW_pinnwand='s|^\(https\?://[^/]*/\)show\(/[[:alnum:]]*/\?\)$|\1raw\2|'
++REGEX_LOC_pinnwand="\(/show/[^ ]*\).*$|https://bpaste.net\1";
++REGEX_RAW_pinnwand='s|^\(https\?://[^/]*/\)show\(/[^ ]*/\?\)$|\1raw\2|'
+ 
+ ### errors
+ die() {
+@@ -550,11 +551,15 @@ postdata() {
+ 
+ # get url from response from server
+ geturl() {
+-      local regex
++      local regex location
+       regex=REGEX_URL_$ENGINE
++      location=REGEX_LOC_$ENGINE
+       if [[ -n ${!regex} ]]; then
+               [[ needstdout = $1 ]] && return 0
+               sed -n -e "${!regex}" <<< "$*"
++      elif [[ -n ${!location} ]]; then
++              [[ needstdout = $1 ]] && return 1
++              sed -n -e "s|^.*Location: ${!location}|p" <<< "$*"
+       else
+               [[ needstdout = $1 ]] && return 1
+               sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*"



Home | Main Index | Thread Index | Old Index