From nobody@FreeBSD.org  Thu Jun 27 08:38:44 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 66C333DF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Jun 2013 08:38:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 58D901296
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Jun 2013 08:38:44 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5R8chux052197
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Jun 2013 08:38:43 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5R8cht1052194;
	Thu, 27 Jun 2013 08:38:43 GMT
	(envelope-from nobody)
Message-Id: <201306270838.r5R8cht1052194@oldred.freebsd.org>
Date: Thu, 27 Jun 2013 08:38:43 GMT
From: Horia Racoviceanu <horia@racoviceanu.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: textproc/extract_url Perl script that extracts URLs from email
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180022
>Category:       ports
>Synopsis:       New port: textproc/extract_url Perl script that extracts URLs from email
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nemysis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 27 08:40:01 UTC 2013
>Closed-Date:    Thu Oct 24 15:44:21 UTC 2013
>Last-Modified:  Thu Oct 24 15:44:21 UTC 2013
>Originator:     Horia Racoviceanu
>Release:        FreeBSD 9.1-RELEASE-p4 amd64
>Organization:
>Environment:
FreeBSD unitone.vedetta.com 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This is a Perl script that extracts URLs from correctly-encoded MIME
email messages or plain text. This can be used either as a
pre-parser for urlview, or to replace urlview entirely.

This is designed primarily for use with the mutt emailer. The idea
is that if you want to access a URL in an email, you pipe the email
to a URL extractor (like this one) which then lets you select a URL
to view in some third program (such as Firefox). An alternative
design is to access URLs from within mutt's pager by defining macros
and tagging the URLs in the display to indicate which macro to use.
A script you can use to do that is tagurl.pl.

Main features:
    - Configurable
    - Handles URLs that have been broken over several lines in
      format=flowed delsp=yes email messages
    - Handles quoted-printable email messages
    - Sanitizes URLs so that they can't break out of the command shell

WWW: http://www.memoryhole.net/~kyle/extract_url/
>How-To-Repeat:
https://redports.org/buildarchive/20130627065800-33451/
Note: RedPorts had a known problem with libtool on CLANG at the time of build, unrelated to this port.
>Fix:


Patch attached with submission follows:

# 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:
#
#	extract_url
#	extract_url/files
#	extract_url/files/extract_urlview.sample
#	extract_url/pkg-descr
#	extract_url/Makefile
#	extract_url/distinfo
#
echo c - extract_url
mkdir -p extract_url > /dev/null 2>&1
echo c - extract_url/files
mkdir -p extract_url/files > /dev/null 2>&1
echo x - extract_url/files/extract_urlview.sample
sed 's/^X//' >extract_url/files/extract_urlview.sample << '2a5a1d36ed0372017f5f57245a2fe6ef'
X################################
X### extract_url(1) configuration
X#
X# Copy this file to ~/.extract_urlview
X
X# Command used to view URLs
X#COMMAND firefox %s &
X
X# URL will be opened without prompting when emails contains only one
X#SHORTCUT
X
X# Turn off showing the full URL before opening it
X#NOREVIEW
X
X# Disable the automatic exit of URL selection menu after viewing a URL
X#PERSISTENT
X
X# Ignore links that don't correspond to any text
X#IGNORE_EMPTY_TAGS
X
X# Specify which HTML tags will be examined for URLs
X#HTML_TAGS a,applet,area,blockquote,embed,form,frame,iframe,input,ins,isindex,head,layer,link,object,q,script,xmp
X
X# Key for PERSISTENT behaviour, or opposite if PERSISTENT is specified
X#ALTSELECT k
X
X# Show [url] list or show URLs in [context] when the program is run
X#DEFAULT_VIEW url
X
X# Sanitize URLs before they are displayed
X#DISPLAY_SANITIZED
2a5a1d36ed0372017f5f57245a2fe6ef
echo x - extract_url/pkg-descr
sed 's/^X//' >extract_url/pkg-descr << 'ea377c214de33213bbc4145965c82be6'
XThis is a Perl script that extracts URLs from correctly-encoded MIME
Xemail messages or plain text. This can be used either as a
Xpre-parser for urlview, or to replace urlview entirely.
X
XThis is designed primarily for use with the mutt emailer. The idea
Xis that if you want to access a URL in an email, you pipe the email
Xto a URL extractor (like this one) which then lets you select a URL
Xto view in some third program (such as Firefox). An alternative
Xdesign is to access URLs from within mutt's pager by defining macros
Xand tagging the URLs in the display to indicate which macro to use.
XA script you can use to do that is tagurl.pl.
X
XMain features:
X    - Configurable
X    - Handles URLs that have been broken over several lines in
X      format=flowed delsp=yes email messages
X    - Handles quoted-printable email messages
X    - Sanitizes URLs so that they can't break out of the command shell
X
XWWW: http://www.memoryhole.net/~kyle/extract_url/
ea377c214de33213bbc4145965c82be6
echo x - extract_url/Makefile
sed 's/^X//' >extract_url/Makefile << 'eabb160ffe371da3487115b0673b508f'
X# Created by: Horia Racoviceanu <horia@racoviceanu.com>
X# $FreeBSD$
X
XPORTNAME=	extract_url
XPORTVERSION=	1.5.8
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XPROJECTHOST=	extracturl
X
XMAINTAINER=	horia@racoviceanu.com
XCOMMENT=	Perl script that extracts URLs from email in MIME or plain text format
X
XLICENSE=	BSD
XLICENSE_FILE=	${WRKSRC}/COPYING
X
XBUILD_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
X		p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser
XRUN_DEPENDS:=	${BUILD_DEPENDS}
X
XUSE_PERL5=	yes
XUSE_GMAKE=	yes
X
XMAKE_ARGS=	all prefix=${PREFIX} man_prefix=${PREFIX}
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XMAN1=		${PORTNAME}.1
XPLIST_FILES=	bin/${PORTNAME} \
X		etc/${PORTNAME}view.sample
X
XOPTIONS_DEFINE=			URI_FIND GETOPT_LONG
XOPTIONS_RADIO=			URL_Selector
XOPTIONS_RADIO_URL_Selector=	CURSES_UI URLVIEW
XOPTIONS_DEFAULT=		CURSES_UI
XURI_FIND_DESC=			recognizes more exotic URL variations in plain text
XGETOPT_LONG_DESC=		recognizes long options --version and --list
XCURSES_UI_DESC=			allows it to fully replace urlview
XURLVIEW_DESC=			uses urlview for the URL selector menu
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MURI_FIND}
XRUN_DEPENDS+=	p5-URI-Find>=0:${PORTSDIR}/textproc/p5-URI-Find
X.endif
X
X.if ${PORT_OPTIONS:MGETOPT_LONG}
XRUN_DEPENDS+=	p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long
X.endif
X
X.if ${PORT_OPTIONS:MCURSES_UI}
XRUN_DEPENDS+=	p5-Curses-UI>=0:${PORTSDIR}/devel/p5-Curses-UI
X.endif
X
X.if ${PORT_OPTIONS:MURLVIEW}
XRUN_DEPENDS+=	urlview>=0:${PORTSDIR}/textproc/urlview
X.endif
X
Xpre-patch:
X	@${REINPLACE_CMD} "/pod2man.mk/s,make,${GMAKE}," ${WRKSRC}/${MAKEFILE}
X
Xpost-install:
X	@${INSTALL_DATA} ${FILESDIR}/${PORTNAME}view.sample ${PREFIX}/etc/
X	@${ECHO_MSG} "===>   Sample configuration installed in ${PREFIX}/etc/"
X
X.include <bsd.port.mk>
eabb160ffe371da3487115b0673b508f
echo x - extract_url/distinfo
sed 's/^X//' >extract_url/distinfo << '46d3d3b500faeec3122f63d4c8cd8206'
XSHA256 (extract_url-1.5.8.tar.gz) = 58eac907cb926deba74ab81e7503a1055fd3cbe20952f011d8e6b75da12d6bcc
XSIZE (extract_url-1.5.8.tar.gz) = 13861
46d3d3b500faeec3122f63d4c8cd8206
exit



>Release-Note:
>Audit-Trail:

From: Horia Racoviceanu <horia@racoviceanu.com>
To: bug-followup@FreeBSD.org
Cc: Horia Racoviceanu <horia@racoviceanu.com>
Subject: Re: ports/180022: Update textproc/extract_url for stage and new Mk
Date: Thu, 3 Oct 2013 22:54:49 +0000

 --047d7bea3b7caf221d04e7de12a6
 Content-Type: text/plain; charset=ISO-8859-1
 
 - Support STAGEDIR
 - Change master sites GOOGLE_CODE
 - Add OPTIONS_SUB
 - Add pkg-message
 
 
 Build log
 
 https://redports.org/buildarchive/20131003221722-06520/
 
 
 Thanks to nemysis@
 
 --047d7bea3b7caf221d04e7de12a6
 Content-Type: text/plain; charset=US-ASCII; name="extract_url.shar.txt"
 Content-Disposition: attachment; filename="extract_url.shar.txt"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_hmcbyuu60
 
 IyBUaGlzIGlzIGEgc2hlbGwgYXJjaGl2ZS4gIFNhdmUgaXQgaW4gYSBmaWxlLCByZW1vdmUgYW55
 dGhpbmcgYmVmb3JlCiMgdGhpcyBsaW5lLCBhbmQgdGhlbiB1bnBhY2sgaXQgYnkgZW50ZXJpbmcg
 InNoIGZpbGUiLiAgTm90ZSwgaXQgbWF5CiMgY3JlYXRlIGRpcmVjdG9yaWVzOyBmaWxlcyBhbmQg
 ZGlyZWN0b3JpZXMgd2lsbCBiZSBvd25lZCBieSB5b3UgYW5kCiMgaGF2ZSBkZWZhdWx0IHBlcm1p
 c3Npb25zLgojCiMgVGhpcyBhcmNoaXZlIGNvbnRhaW5zOgojCiMJZXh0cmFjdF91cmwKIwlleHRy
 YWN0X3VybC9maWxlcwojCWV4dHJhY3RfdXJsL2ZpbGVzL2V4dHJhY3RfdXJsdmlld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wNgpleGl0Cgo=
 --047d7bea3b7caf221d04e7de12a6--
Responsible-Changed-From-To: freebsd-ports-bugs->nemysis 
Responsible-Changed-By: nemysis 
Responsible-Changed-When: Wed Oct 23 01:16:59 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180022 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180022: commit references a PR
Date: Thu, 24 Oct 2013 15:39:36 +0000 (UTC)

 Author: nemysis
 Date: Thu Oct 24 15:39:27 2013
 New Revision: 331496
 URL: http://svnweb.freebsd.org/changeset/ports/331496
 
 Log:
   This is a Perl script that extracts URLs from correctly-encoded MIME
   email messages or plain text. This can be used either as a
   pre-parser for urlview, or to replace urlview entirely.
   
   This is designed primarily for use with the mutt emailer. The idea
   is that if you want to access a URL in an email, you pipe the email
   to a URL extractor (like this one) which then lets you select a URL
   to view in some third program (such as Firefox). An alternative
   design is to access URLs from within mutt's pager by defining macros
   and tagging the URLs in the display to indicate which macro to use.
   A script you can use to do that is tagurl.pl.
   
   Main features:
       - Configurable
       - Handles URLs that have been broken over several lines in
         format=flowed delsp=yes email messages
       - Handles quoted-printable email messages
       - Sanitizes URLs so that they can't break out of the command shell
   
   WWW: http://www.memoryhole.net/~kyle/extract_url/
   
   PR:		ports/180022
   Submitted by:	Horia Racoviceanu <horia@racoviceanu.com>
   Approved by:	wg (mentor)
 
 Added:
   head/textproc/extract_url/
   head/textproc/extract_url/Makefile   (contents, props changed)
   head/textproc/extract_url/distinfo   (contents, props changed)
   head/textproc/extract_url/files/
   head/textproc/extract_url/files/extract_urlview   (contents, props changed)
   head/textproc/extract_url/files/pkg-message.in   (contents, props changed)
   head/textproc/extract_url/pkg-descr   (contents, props changed)
   head/textproc/extract_url/pkg-plist   (contents, props changed)
 Modified:
   head/textproc/Makefile
 
 Modified: head/textproc/Makefile
 ==============================================================================
 --- head/textproc/Makefile	Thu Oct 24 15:16:10 2013	(r331495)
 +++ head/textproc/Makefile	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -173,6 +173,7 @@
      SUBDIR += exmpp
      SUBDIR += expat2
      SUBDIR += exslt
 +    SUBDIR += extract_url
      SUBDIR += ezxml
      SUBDIR += fa-aspell
      SUBDIR += fcitx-m17n
 
 Added: head/textproc/extract_url/Makefile
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/Makefile	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,56 @@
 +# Created by: Horia Racoviceanu <horia@racoviceanu.com>
 +# $FreeBSD$
 +
 +PORTNAME=	extract_url
 +PORTVERSION=	1.5.8
 +CATEGORIES=	textproc
 +MASTER_SITES=	GOOGLE_CODE
 +PROJECTHOST=	extracturl
 +
 +MAINTAINER=	horia@racoviceanu.com
 +COMMENT=	Perl script that extracts URLs from email in MIME or plain text format
 +
 +LICENSE=	BSD
 +
 +BUILD_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
 +		p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser
 +RUN_DEPENDS:=	${BUILD_DEPENDS}
 +
 +USES=		gmake perl5
 +
 +MAKE_ARGS=	all prefix=${PREFIX} man_prefix=${PREFIX}
 +
 +WRKSRC=		${WRKDIR}/${PORTNAME}
 +
 +SUB_FILES=	pkg-message
 +
 +OPTIONS_DEFINE=			DOCS GETOPT_LONG URI_FIND
 +OPTIONS_RADIO=			URL_SELECTOR
 +OPTIONS_RADIO_URL_SELECTOR=	CURSES_UI URLVIEW
 +OPTIONS_DEFAULT=		CURSES_UI GETOPT_LONG URI_FIND
 +
 +CURSES_UI_DESC=		Allows it to fully replace urlview
 +GETOPT_LONG_DESC=	Recognizes long options --version and --list
 +URI_FIND_DESC=		Recognizes more exotic URL variations in plain text
 +URLVIEW_DESC=		Uses urlview for the URL selector menu
 +
 +OPTIONS_SUB=	yes
 +
 +CURSES_UI_RUN_DEPENDS=		p5-Curses-UI>=0:${PORTSDIR}/devel/p5-Curses-UI
 +GETOPT_LONG_RUN_DEPENDS=	p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long
 +URLVIEW_RUN_DEPENDS=		urlview>=0:${PORTSDIR}/textproc/urlview
 +URI_FIND_RUN_DEPENDS=		p5-URI-Find>=0:${PORTSDIR}/textproc/p5-URI-Find
 +
 +PORTDOCS=	AUTHORS NEWS README
 +
 +post-patch:
 +	@${REINPLACE_CMD} '/pod2man.mk/s|make|${GMAKE}|' \
 +		${WRKSRC}/${MAKEFILE}
 +
 +post-install:
 +	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}view ${STAGEDIR}${PREFIX}/etc/${PORTNAME}view.sample
 +
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 +
 +.include <bsd.port.mk>
 
 Added: head/textproc/extract_url/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/distinfo	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,2 @@
 +SHA256 (extract_url-1.5.8.tar.gz) = 58eac907cb926deba74ab81e7503a1055fd3cbe20952f011d8e6b75da12d6bcc
 +SIZE (extract_url-1.5.8.tar.gz) = 13861
 
 Added: head/textproc/extract_url/files/extract_urlview
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/files/extract_urlview	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,31 @@
 +################################
 +### extract_url(1) configuration
 +#
 +# Copy this file to ~/.extract_urlview
 +
 +# Command used to view URLs
 +#COMMAND firefox %s &
 +
 +# URL will be opened without prompting when emails contains only one
 +#SHORTCUT
 +
 +# Turn off showing the full URL before opening it
 +#NOREVIEW
 +
 +# Disable the automatic exit of URL selection menu after viewing a URL
 +#PERSISTENT
 +
 +# Ignore links that don't correspond to any text
 +#IGNORE_EMPTY_TAGS
 +
 +# Specify which HTML tags will be examined for URLs
 +#HTML_TAGS a,applet,area,blockquote,embed,form,frame,iframe,input,ins,isindex,head,layer,link,object,q,script,xmp
 +
 +# Key for PERSISTENT behaviour, or opposite if PERSISTENT is specified
 +#ALTSELECT k
 +
 +# Show [url] list or show URLs in [context] when the program is run
 +#DEFAULT_VIEW url
 +
 +# Sanitize URLs before they are displayed
 +#DISPLAY_SANITIZED
 
 Added: head/textproc/extract_url/files/pkg-message.in
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/files/pkg-message.in	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,9 @@
 +===============================================================================
 +
 +extract_url has been installed.
 +
 +Sample configuration is installed, please adjust it
 +
 +     %%PREFIX%%/etc/extract_urlview.sample
 +
 +===============================================================================
 
 Added: head/textproc/extract_url/pkg-descr
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/pkg-descr	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,20 @@
 +This is a Perl script that extracts URLs from correctly-encoded MIME
 +email messages or plain text. This can be used either as a
 +pre-parser for urlview, or to replace urlview entirely.
 +
 +This is designed primarily for use with the mutt emailer. The idea
 +is that if you want to access a URL in an email, you pipe the email
 +to a URL extractor (like this one) which then lets you select a URL
 +to view in some third program (such as Firefox). An alternative
 +design is to access URLs from within mutt's pager by defining macros
 +and tagging the URLs in the display to indicate which macro to use.
 +A script you can use to do that is tagurl.pl.
 +
 +Main features:
 +    - Configurable
 +    - Handles URLs that have been broken over several lines in
 +      format=flowed delsp=yes email messages
 +    - Handles quoted-printable email messages
 +    - Sanitizes URLs so that they can't break out of the command shell
 +
 +WWW: http://www.memoryhole.net/~kyle/extract_url/
 
 Added: head/textproc/extract_url/pkg-plist
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/extract_url/pkg-plist	Thu Oct 24 15:39:27 2013	(r331496)
 @@ -0,0 +1,5 @@
 +bin/extract_url
 +@unexec if cmp -s %D/etc/extract_urlview %D/etc/extract_urlview.sample ; then rm -f %D/etc/extract_urlview ; fi
 +etc/extract_urlview.sample
 +@exec if [ -f %D/etc/extract_urlview ] ; then cp -p %D/%F %B/extract_urlview ; fi
 +man/man1/extract_url.1.gz
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: nemysis 
State-Changed-When: Thu Oct 24 15:44:20 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180022 
>Unformatted:
