[arch-commits] CVS update of extra/network/urlview (PKGBUILD urlview.patch)
Eric Belanger
eric at archlinux.org
Tue Sep 11 07:17:13 UTC 2007
Date: Tuesday, September 11, 2007 @ 03:17:13
Author: eric
Path: /home/cvs-extra/extra/network/urlview
Modified: PKGBUILD (1.7 -> 1.8)
Removed: urlview.patch (1.1)
upgpkg: urlview 0.9-4
updated patch level, added ncurses dependency, added license
---------------+
PKGBUILD | 20 -
urlview.patch | 857 --------------------------------------------------------
2 files changed, 12 insertions(+), 865 deletions(-)
Index: extra/network/urlview/PKGBUILD
diff -u extra/network/urlview/PKGBUILD:1.7 extra/network/urlview/PKGBUILD:1.8
--- extra/network/urlview/PKGBUILD:1.7 Sun May 28 01:32:18 2006
+++ extra/network/urlview/PKGBUILD Tue Sep 11 03:17:13 2007
@@ -1,23 +1,27 @@
-# $Id: PKGBUILD,v 1.7 2006/05/28 05:32:18 andyrtr Exp $
+# $Id: PKGBUILD,v 1.8 2007/09/11 07:17:13 eric Exp $
# Maintainer: dorphell <dorphell at archlinux.org>
# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
pkgname=urlview
pkgver=0.9
-pkgrel=3
-depends=('bash')
+pkgrel=4
+_patchlevel=17
pkgdesc="A curses URL parser for text files"
-arch=(i686 x86_64)
-source=(http://ftp.linux.pt/pub/mirrors/debian/pool/main/u/urlview/$pkgname\_$pkgver.orig.tar.gz urlview.patch)
-url="http://ftp.linux.pt/pub/mirrors/debian/pool/main/u/urlview/"
+arch=('i686' 'x86_64')
+url="http://packages.qa.debian.org/u/urlview.html"
+license=('GPL')
+depends=('bash' 'ncurses')
+source=(http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver.orig.tar.gz \
+ http://ftp.debian.org/debian/pool/main/u/urlview/${pkgname}_$pkgver-$_patchlevel.diff.gz)
+md5sums=('4f253c82b59136181b1f0bf218ef059d' '93fd8a51c9ab72e7431c021095921581')
build() {
cd $startdir/src/$pkgname-$pkgver.orig
- patch -Np1 -i ../urlview.patch
+ patch -p1 < ../${pkgname}_$pkgver-$_patchlevel.diff || return 1
./configure --prefix=/usr
mkdir -p $startdir/pkg/etc/urlview $startdir/pkg/usr/man/man1
make || return 1
- make prefix=$startdir/pkg/usr install
+ make prefix=$startdir/pkg/usr mandir=$startdir/pkg/usr/man install
install -D -m755 url_handler.sh $startdir/pkg/etc/urlview/url_handler.sh
install -D -m644 sample.urlview $startdir/pkg/etc/urlview/system.urlview
ln -fs /etc/urlview/url_handler.sh $startdir/pkg/usr/bin/url_handler.sh
Index: extra/network/urlview/urlview.patch
diff -u extra/network/urlview/urlview.patch:1.1 extra/network/urlview/urlview.patch:removed
--- extra/network/urlview/urlview.patch:1.1 Sat Feb 15 22:41:23 2003
+++ extra/network/urlview/urlview.patch Tue Sep 11 03:17:12 2007
@@ -1,857 +0,0 @@
---- urlview-0.9.orig/README
-+++ urlview-0.9/README
-@@ -5,7 +5,8 @@
-
- `urlview' is a curses program for extracting URLs from text files and
- displaying a menu from which you can select a specific URL to view using
--your favorite browser program.
-+your favorite browser program. It respects the BROWSER convention
-+(see <http://www.tuxedo.org/~esr/BROWSER/>)
-
- Requires: working regcomp() or GNU rx.
-
-@@ -14,5 +15,3 @@
-
- Thomas Roessler <roessler at does-not-exist.org>
- July 4, 2000
--
--
---- urlview-0.9.orig/urlview.c
-+++ urlview-0.9/urlview.c
-@@ -48,7 +48,7 @@
-
- #define DEFAULT_REGEXP "(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>\"]+|(www|web|w3)\\.[-a-z0-9.]+)[^' \t.,;<>\"\\):]"
- #define DEFAULT_COMMAND "url_handler.sh %s"
--#define SYSTEM_INITFILE "/etc/urlview.conf"
-+#define SYSTEM_INITFILE "/etc/urlview/system.urlview"
-
- #define OFFSET 2
- #define PAGELEN (LINES - 1 - OFFSET)
-@@ -182,7 +182,7 @@
-
- strncpy (regexp, DEFAULT_REGEXP, sizeof (regexp) - 1);
- strncpy (command, DEFAULT_COMMAND, sizeof (command) - 1);
--
-+
- /*** read the initialization file ***/
-
- pw = getpwuid (getuid ());
-@@ -256,6 +256,13 @@
- }
- fclose (fp);
- }
-+
-+ /* BROWSER overrides */
-+ pc = getenv("BROWSER");
-+ if (pc)
-+ {
-+ strncpy (command, pc, sizeof (command) - 1);
-+ }
-
- if (!expert && strchr (command, '\''))
- {
-@@ -503,16 +510,27 @@
- mvaddstr (LINES - 1, 0, "URL: ");
- if (mutt_enter_string (buf, sizeof (buf), LINES - 1, 5, 0) == 0 && buf[0])
- {
-+ char *part, *tmpbuf;
-+
- free (url[current]);
- url[current] = strdup (buf);
- endwin ();
-- if (strstr (command, "%s"))
-- snprintf (buf, sizeof (buf), command, quote (scratch, sizeof (scratch), url[current]));
-- else
-- snprintf (buf, sizeof (buf), "%s %s", command, quote (scratch, sizeof (scratch), url[current]));
-- printf ("Executing: %s...\n", buf);
-- fflush (stdout);
-- system (buf);
-+
-+ tmpbuf = strdup(command);
-+ part = strtok(tmpbuf, ":");
-+ do {
-+ quote (scratch, sizeof (scratch), url[current]);
-+ if (strstr (part, "%s"))
-+ snprintf (buf, sizeof (buf), part, scratch);
-+ else
-+ snprintf (buf, sizeof (buf), "%s %s", part, scratch);
-+ printf ("Executing: %s...\n", buf);
-+ fflush (stdout);
-+ if (system (buf) == 0)
-+ break;
-+ } while
-+ (part = strtok(NULL, ":"));
-+ free(tmpbuf);
- }
- move (LINES - 1, 0);
- clrtoeol ();
---- urlview-0.9.orig/urlview.man
-+++ urlview-0.9/urlview.man
-@@ -34,7 +34,7 @@
- upon startup. If this file
- doesn't exist, it will try to read a system wide file
- in
--.IR /etc/urlview.conf .
-+.IR /etc/urlview/system.urlview .
- There are two configuration commands (order does not matter):
- .TP
- REGEXP \fIregexp\fP
-@@ -76,15 +76,21 @@
- explicitly excludes single quotes.)
- .SH FILES
- .PP
--.IP "/etc/urlview.conf"
-+.IP "/etc/urlview/system.urlview"
- system-wide urlview configuration file
- .IP "~/.urlview"
- urlview configuration file
-+.SH ENVIRONMENT
-+If the environment variable BROWSER is set to a browser command, or a
-+colon-delimited list of commands to try, then the specified browser is
-+used. %s is replaced with the quoted url to view. If %s is not part of a
-+command, the url is appended to the command.
- .SH SEE ALSO
- .PP
- .BR printf (3),
- .BR regcomp (3),
--.BR regex (7)
-+.BR regex (7),
-+.BR environ (7)
- .SH AUTHOR
- .PP
- Michael Elkins <me at cs.hmc.edu>.
---- urlview-0.9.orig/urlview.sgml
-+++ urlview-0.9/urlview.sgml
-@@ -20,7 +20,7 @@
- <p>
- <em/urlview/ attempts to read <em>˜/.urlview</em> upon startup.
- If this file doesn't exist, it will try to read a system wide file
--in <em>/etc/urlview.conf</em>. There are
-+in <em>/etc/urlview/system.urlview</em>. There are
- two configuration commands (order does not matter):
- <p>
- REGEXP <regular expression to use for URL matching>
-@@ -62,7 +62,7 @@
- <p>
- <descrip>
- <tag>
--/etc/urlview.conf
-+/etc/urlview/system.urlview
- <p>
- system-wide urlview configuration file
- <tag>
-@@ -71,6 +71,13 @@
- urlview configuration file
- </descrip>
-
-+<sect1>ENVIRONMENT
-+<p>
-+If the environment variable BROWSER is set to a browser command, or a
-+colon-delimited list of commands to try, then the specified browser is
-+used. %s is replaced with the quoted url to view. If %s is not part of a
-+command, the url is appended to the command.
-+
- <sect1>SEE ALSO
- <p>
- regcomp(3)
---- urlview-0.9.orig/sample.urlview
-+++ urlview-0.9/sample.urlview
-@@ -20,7 +20,8 @@
- REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
-
- # Command to invoke for selected URL. Use lynx, netscape, or url_handler.sh
--# shell script.
-+# shell script. Alternatively, you can leave COMMAND unset and set the BROWSER
-+# environment variable instead.
-
- #COMMAND lynx %s
- #COMMAND netscape -remote 'openURL(%s)'
---- urlview-0.9.orig/debian/control
-+++ urlview-0.9/debian/control
-@@ -0,0 +1,17 @@
-+Source: urlview
-+Section: misc
-+Priority: optional
-+Maintainer: Luis Francisco Gonzalez <luisgh at debian.org>
-+Standards-Version: 3.5.7.1
-+Build-Depends: libncurses5-dev, linuxdoc-tools
-+
-+Package: urlview
-+Architecture: any
-+Depends: ${shlibs:Depends}
-+Recommends: www-browser
-+Suggests: mutt, ncftp2 | lftp | ncftp
-+Description: Extracts URLs from text
-+ This utility is used to extract URL from text files, especially from mail
-+ messages in order to launch some browser to view them. This used to be a
-+ part of mutt but has now become an independent tool.
-+
---- urlview-0.9.orig/debian/README.Debian
-+++ urlview-0.9/debian/README.Debian
-@@ -0,0 +1,33 @@
-+urlview for DEBIAN
-+-----------------
-+
-+I created the urlview package with some slight modifications on the
-+upstream sources. The most important is that debian's urlview will
-+read a system-wide configuration file. This allows the system administrator
-+to set a unified way to handle embedded URLs.
-+
-+Note that using double quotes rather than single quotes in the COMMAND
-+might have nasty effects. Check urlview's manual page for more info on
-+this.
-+
-+This release has changed the url-handler.sh to a version developed by
-+Martin Schulze <joey at debian.org>. It's now a bash shell script that will
-+try to use any of the mentioned programs. There is a configuration section at
-+the top of the file after the license statement. For each type of tag we
-+have
-+
-+(www)prgs="/path/to/program1:TAG1 /path/to/program2:TAG2 ..."
-+
-+The script will try to execute the first of those found. The TAG is
-+interpreted to check how this program is to executed. There are currently
-+three possible tags,
-+
-+XW: The program works only under X
-+VT: Launch this program in the current terminal
-+XT: Launch a new xterm (if under X) and run the program there or do as in VT.
-+
-+XTERM holds the name of the terminal program used. This can be changed to any
-+program of your liking but care should be taken so that it support the
-+standard -T option to set the title.
-+
-+Luis Francisco Gonzalez <luisgh at debian.org> Fri Jun 12 11:26:47 BST 1998
---- urlview-0.9.orig/debian/changelog
-+++ urlview-0.9/debian/changelog
-@@ -0,0 +1,127 @@
-+urlview (0.9-2.2) unstable; urgency=low
-+
-+ * NMU for upcoming Debian browser policy compliance:
-+ * Added support for BROWSER environment variable, with a patch from ESR,
-+ - modified to escape the url properly even with BROWSER, to prevent
-+ malformed urls from running commands in the shell
-+ - modified so BROWSER overrides the COMMAND in the urlview files
-+ - modified to call strtok correctly
-+ - and strtok a temp buffer, not the command, so that multiple urls can be
-+ viewed in a single invocation without always running the first browser
-+ - modify sgml docs
-+ * Also added x-www-browser and www-browser to it, tried first.
-+ .
-+ * While I'm at at it:
-+ * Added all the current day common X and text mode browsers to
-+ debian/url_handler.sh. Closes: #169677, #92896
-+ * Completed FHS transition by removing /usr/doc symlink code.
-+ * Don't ship a .dhelp file in the package; let doc-base create it.
-+ Closes: #60027
-+ * Remove debian/substvars on clean.
-+
-+ -- Joey Hess <joeyh at debian.org> Tue, 19 Nov 2002 14:12:58 -0500
-+
-+urlview (0.9-2.1) unstable; urgency=low
-+
-+ * NMU with maintainer permission.
-+ * debian/README.Debian: corrected spelling error (developped -> developed)
-+ * debian/control: added Build-Depends
-+ * debian/control: updated Standards-Version to 3.5.6
-+ * debian/copyright: fixed location of GPL (Closes: Bug#79751)
-+ * debian/copyright: cleaned up
-+ * debian/doc-base_urlview: document id corrected (Closes: Bug#85451)
-+ * debian/rules: work around for Bug#90870 (<HTML> missing from urlview.html)
-+ * debian/rules: added -isp to dpkg-gencontrol
-+ * debian/url_handler.sh: use x-terminal-emulator (Closes: Bug#74736)
-+
-+ -- Edward Betts <edward at debian.org> Thu, 2 Aug 2001 22:26:35 +0100
-+
-+urlview (0.9-2) unstable; urgency=low
-+
-+ * Corrected copyright file info (Closes #66791)
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Fri, 7 Jul 2000 22:56:01 +0100
-+
-+urlview (0.9-1) unstable; urgency=low
-+
-+ * New upstream source
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Tue, 4 Jul 2000 22:56:31 +0100
-+
-+urlview (0.7-9) unstable; urgency=low
-+
-+ * Added new tag to url_handler.sh to allow X-programs to be spawn with
-+ nohup (Fixes #60196, #64981)
-+ * Compiled against ncurses (Fixes #64981)
-+ * Applied patch to remove repeated URLs (Fixes #64982)
-+ * Removed bashisms from debian/rules (Fixes #64983)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Tue, 13 Jun 2000 21:31:46 +0100
-+
-+urlview (0.7-8) frozen unstable; urgency=low
-+
-+ * Fixed typo in prerm (Bug#55222) (Bug#55519)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Tue, 18 Jan 2000 23:19:12 +0100
-+
-+urlview (0.7-7) unstable; urgency=low
-+
-+ * Changed REGEXP for URLs (Bug#27023)
-+ * Compressed changelogs (Bug#35376)
-+ * Netscape enabled by default (Bug#42984)
-+ * Added support of doc-base (Bug#31182)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Mon, 20 Sep 1999 22:34:36 +0000
-+
-+urlview (0.7-6.1) unstable; urgency=medium
-+
-+ * NMU: recompiled with slang 1.2.2-3 to fix dependencies.
-+
-+ -- Jim Mintha <jmintha at debian.org> Fri, 3 Sep 1999 00:34:36 +0200
-+
-+urlview (0.7-6) frozen unstable; urgency=high
-+
-+ * Recompiled with slang1 (Fixes Bug#28799)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Mon, 2 Nov 1998 09:48:53 +0000
-+
-+urlview (0.7-5) unstable; urgency=low
-+
-+ * Changed the regular expresion to remove trailing brakets and colons.
-+ (Fixes Bug#25144)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Sat, 1 Aug 1998 15:56:40 +0100
-+
-+urlview (0.7-4) unstable; urgency=low
-+
-+ * Added the new url_handler.sh, a slightly modified version of that
-+ contributed by Martin Schulze <joey at debian.org>. Please check
-+ README.debian for configuration. (Fixes Bug#23189)
-+ * Added support for https to the url catcher in system.urlview. (Fixes
-+ Bug#23261)
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Fri, 12 Jun 1998 11:30:17 +0100
-+
-+urlview (0.7-3) unstable; urgency=low
-+
-+ * Removed file INSTALL from the binary: Fixes #19232.
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Fri, 13 Mar 1998 15:11:36 +0000
-+
-+urlview (0.7-2) unstable; urgency=low
-+
-+ * Compressed manual page.
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Fri, 27 Feb 1998 14:04:35 +0000
-+
-+urlview (0.7-1) unstable; urgency=low
-+
-+ * Initial Release.
-+
-+ -- Luis Francisco Gonzalez <luisgh at debian.org> Fri, 20 Feb 1998 15:40:31 +0000
-+
-+ * Changed menu entry and installation of icon
-+
-+Local variables:
-+mode: debian-changelog
-+add-log-mailing-address: "luisgh at debian.org"
-+End:
---- urlview-0.9.orig/debian/htmlworkaround
-+++ urlview-0.9/debian/htmlworkaround
-@@ -0,0 +1,3 @@
-+<HTML>
-+<HEAD><TITLE>urlview - URL extractor/launcher</TITLE></HEAD>
-+<BODY>
---- urlview-0.9.orig/debian/rules
-+++ urlview-0.9/debian/rules
-@@ -0,0 +1,104 @@
-+#!/usr/bin/make -f
-+# urlview debian.rules file - based on
-+# GNU Hello (1.3) Copyright 1994,1995 by Ian Jackson.
-+#
-+
-+package=urlview
-+
-+build:
-+ $(checkdir)
-+ ./configure --prefix=/usr
-+ $(MAKE)
-+ sgml2html urlview.sgml
-+ touch build
-+
-+clean:
-+ $(checkdir)
-+ -rm -f build
-+ -rm -f urlview.html
-+ -$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean
-+ -rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
-+
-+binary-indep: checkroot build
-+ $(checkdir)
-+# There are no architecture-independent files to be uploaded
-+# generated by this package. If there were any they would be
-+# made here.
-+
-+binary-arch: checkroot build
-+ $(checkdir)
-+ -rm -rf debian/tmp
-+# Install URLview files
-+ install -d debian/tmp
-+ cd debian/tmp && install -d `cat ../dirs \
-+ | sed "s/%package%/$(package)/g"`
-+ install -m 755 --strip urlview debian/tmp/usr/bin/urlview
-+ install -m 644 urlview.man debian/tmp/usr/share/man/man1/urlview.1
-+ gzip -v --best debian/tmp/usr/share/man/man1/urlview.1
-+ install -m 644 AUTHORS debian/tmp/usr/share/doc/$(package)/
-+ install -m 644 README debian/tmp/usr/share/doc/$(package)/
-+# Bug#19232
-+# install -m 644 INSTALL debian/tmp/usr/share/doc/$(package)/
-+ install -m 644 text debian/tmp/usr/share/doc/$(package)/examples
-+ install -m 644 debian/system.urlview \
-+ debian/tmp/etc/$(package)/system.urlview
-+ install -m 644 sample.urlview \
-+ debian/tmp/usr/share/doc/$(package)/examples
-+ install -m 755 debian/url_handler.sh debian/tmp/etc/$(package)
-+ install -m 644 debian/README.Debian \
-+ debian/tmp/usr/share/doc/$(package)
-+ find debian/tmp/usr/share/doc/$(package) -size +4k -exec \
-+ gzip -v --best \{\} \;
-+ install -m 644 debian/changelog \
-+ debian/tmp/usr/share/doc/$(package)/changelog.Debian
-+ gzip -v --best \
-+ debian/tmp/usr/share/doc/$(package)/changelog.Debian
-+ install -m 644 ChangeLog debian/tmp/usr/share/doc/$(package)/changelog
-+ gzip -v --best \
-+ debian/tmp/usr/share/doc/$(package)/changelog
-+ install -m 644 debian/htmlworkaround \
-+ debian/tmp/usr/share/doc/$(package)/html/urlview.html
-+ cat urlview.html >> \
-+ debian/tmp/usr/share/doc/$(package)/html/urlview.html
-+ install -m 644 urlview.sgml debian/tmp/usr/share/doc/$(package)
-+ gzip -v --best \
-+ debian/tmp/usr/share/doc/$(package)/urlview.sgml
-+# install -m644 debian/dhelp \
-+# debian/tmp/usr/share/doc/urlview/html/.dhelp
-+ install -m644 debian/doc-base_urlview \
-+ debian/tmp/usr/share/doc-base/urlview
-+ install -m 644 debian/copyright debian/tmp/usr/share/doc/$(package)
-+# Create control files
-+ install -d debian/tmp debian/tmp/DEBIAN
-+ cp debian/control debian/tmp/DEBIAN
-+ cp debian/conffiles debian/tmp/DEBIAN
-+ cp debian/postinst debian/prerm debian/tmp/DEBIAN/.
-+ chmod +x debian/tmp/DEBIAN/postinst debian/tmp/DEBIAN/prerm
-+ dpkg-shlibdeps $(package)
-+ chown -R root.root debian/tmp
-+ chmod -R go=rX debian/tmp
-+ chmod -R u+w debian/tmp
-+ dpkg-gencontrol -p$(package) -isp
-+ cd debian/tmp && \
-+ find . -type f ! -regex "./DEBIAN/.*" -print0 | \
-+ xargs -0 md5sum | \
-+ sed -e '/\.\//s///' > DEBIAN/md5sums && \
-+ chmod 644 DEBIAN/md5sums
-+ dpkg --build debian/tmp ..
-+
-+define checkdir
-+ test -f debian/rules
-+endef
-+
-+# Below here is fairly generic really
-+
-+binary: binary-indep binary-arch
-+
-+source diff:
-+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-+
-+checkroot:
-+ $(checkdir)
-+ test root = "`whoami`"
-+
-+.PHONY: binary binary-arch binary-indep clean checkroot
---- urlview-0.9.orig/debian/conffiles
-+++ urlview-0.9/debian/conffiles
-@@ -0,0 +1,2 @@
-+/etc/urlview/system.urlview
-+/etc/urlview/url_handler.sh
---- urlview-0.9.orig/debian/README.Debian.bak
-+++ urlview-0.9/debian/README.Debian.bak
-@@ -0,0 +1,33 @@
-+urlview for DEBIAN
-+-----------------
-+
-+I created the urlview package with some slight modifications on the
-+upstream sources. The most important is that debian's urlview will
-+read a system-wide configuration file. This allows the system administrator
-+to set a unified way to handle embedded URLs.
-+
-+Note that using double quotes rather than single quotes in the COMMAND
-+might have nasty effects. Check urlview's manual page for more info on
-+this.
-+
-+This release has changed the url-handler.sh to a version developped by
-+Martin Schulze <joey at debian.org>. It's now a bash shell script that will
-+try to use any of the mentioned programs. There is a configuration section at
-+the top of the file after the license statement. For each type of tag we
-+have
-+
-+(www)prgs="/path/to/program1:TAG1 /path/to/program2:TAG2 ..."
-+
-+The script will try to execute the first of those found. The TAG is
-+interpreted to check how this program is to executed. There are currently
-+three possible tags,
-+
-+XW: The program works only under X
-+VT: Launch this program in the current terminal
-+XT: Launch a new xterm (if under X) and run the program there or do as in VT.
-+
-+XTERM holds the name of the terminal program used. This can be changed to any
-+program of your liking but care should be taken so that it support the
-+standard -T option to set the title.
-+
-+Luis Francisco Gonzalez <luisgh at debian.org> Fri Jun 12 11:26:47 BST 1998
---- urlview-0.9.orig/debian/postinst
-+++ urlview-0.9/debian/postinst
-@@ -0,0 +1,5 @@
-+#!/bin/sh
-+# doc-base
-+if command -v install-docs >/dev/null 2>&1; then
-+ install-docs -i /usr/share/doc-base/urlview
-+fi
---- urlview-0.9.orig/debian/dirs
-+++ urlview-0.9/debian/dirs
-@@ -0,0 +1,10 @@
-+etc
-+etc/%package%
-+usr
-+usr/bin
-+usr/share/man
-+usr/share/man/man1
-+usr/share/doc-base/
-+usr/share/doc/%package%
-+usr/share/doc/%package%/html
-+usr/share/doc/%package%/examples
---- urlview-0.9.orig/debian/url_handler.sh
-+++ urlview-0.9/debian/url_handler.sh
-@@ -0,0 +1,125 @@
-+#! /bin/bash
-+
-+# Copyright (c) 1998 Martin Schulze <joey at debian.org>
-+# Slightly modified by Luis Francisco Gonzalez <luisgh at debian.org>
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+###########################################################################
-+# Configurable section
-+###########################################################################
-+#
-+# Any entry in the lists of programs that urlview handler will try out will
-+# be made of /path/to/program + ':' + TAG where TAG is one of
-+# PW: XWindows program intended to live on after urlview's caller exits.
-+# XW: XWindows program
-+# XT: Launch with an xterm if possible or as VT if not
-+# VT: Launch in the same terminal
-+
-+# The lists of programs to be executed are
-+http_prgs="/usr/bin/x-www-browser:PW /usr/bin/www-browser:XT /usr/bin/galeon:PW /usr/bin/konqueror:PW /usr/bin/mozilla:PW /usr/bin/lynx:XT /usr/bin/w3m:XT /usr/bin/links:XT /usr/bin/X11/netscape:PW"
-+https_prgs=$http_prgs
-+mailto_prgs="/usr/bin/mutt:VT /usr/bin/elm:VT /usr/bin/pine:VT /usr/bin/mail:VT"
-+gopher_prgs="/usr/bin/gopher:XT /usr/bin/lynx:XT"
-+ftp_prgs="/usr/bin/ncftp:XT /usr/bin/lftp:XT $http_prgs"
-+
-+# Program used as an xterm (if it doesn't support -T you'll need to change
-+# the command line in getprg)
-+XTERM=/usr/bin/x-terminal-emulator
-+
-+
-+###########################################################################
-+# Change bellow this at your own risk
-+###########################################################################
-+function getprg()
-+{
-+ local ele tag prog
-+
-+ for ele in $*
-+ do
-+ tag=${ele##*:}
-+ prog=${ele%%:*}
-+ if [ -x $prog ]; then
-+ case $tag in
-+ PW) [ -n "$DISPLAY" ] && echo "P:$prog" && return 0
-+ ;;
-+ XW)
-+ [ -n "$DISPLAY" ] && echo "X:$prog" && return 0
-+ ;;
-+ XT)
-+ [ -n "$DISPLAY" ] && [ -x "$XTERM" ] && \
-+ echo "X:$XTERM -e $prog" && return 0
-+ echo "$prog" && return 0
-+ ;;
-+ VT)
-+ echo "$prog" && return 0
-+ ;;
-+ esac
-+ fi
-+ done
-+}
-+
-+url=$1; shift
-+
-+type=${url%%:*}
-+
-+if [ "$url" = "$type" ]; then
-+ type=${url%%.*}
-+ case $type in
-+ www|web)
-+ type=http
-+ ;;
-+ esac
-+ url=$type://$url
-+fi
-+
-+case $type in
-+https)
-+ prg=`getprg $https_prgs`
-+ ;;
-+http)
-+ prg=`getprg $http_prgs`
-+ ;;
-+ftp)
-+ prg=`getprg $ftp_prgs`
-+ ;;
-+mailto)
-+ prg=`getprg $mailto_prgs`
-+ url=${url#mailto:}
-+ ;;
-+gopher)
-+ prg=`getprg $gopher_prgs`
-+ ;;
-+*)
-+ echo "Unknown URL type. Please report URL and viewer to"
-+ echo "urlview at packages.debian.org."
-+ echo -n "Press enter to continue.."; read x
-+ exit
-+ ;;
-+esac
-+
-+if [ -n "$prg" ]; then
-+ if [ "${prg%:*}" = "P" ]; then
-+ nohup ${prg#*:} $url 2>/dev/null 1>/dev/null &
-+ elif [ "${prg%:*}" = "X" ]; then
-+ ${prg#*:} $url 2>/dev/null &
-+ else
-+ $prg $url
-+ fi
-+fi
-+
-+
-+
-+
---- urlview-0.9.orig/debian/prerm
-+++ urlview-0.9/debian/prerm
-@@ -0,0 +1,8 @@
-+#!/bin/sh
-+set -e
-+
-+# doc-base
-+if command -v install-docs >/dev/null 2>&1; then
-+ install-docs -r urlview
-+fi
-+exit 0
---- urlview-0.9.orig/debian/copyright
-+++ urlview-0.9/debian/copyright
-@@ -0,0 +1,32 @@
-+This package was debianized by
-+Luis Francisco Gonzalez luisgh at debian.org.
-+
-+It was downloaded from
-+ftp://ftp.mutt.org/pub/mutt/contrib/
-+
-+Upstream Authors: Michael Elkins <me at cs.hmc.edu>
-+ Thomas Roessler <roessler at does-not-exist.org>
-+
-+Copyright:
-+
-+urlview is distributed under the terms of the GNU GPL.
-+
-+ urlview, extracts URLs from text
-+ Copyright (C) 1996, 1997, 2000 Michael Elkins, Thomas Roessler
-+
-+ This program is free software; you can redistribute it and/or modify
-+ it under the terms of the GNU General Public License as published by
-+ the Free Software Foundation; either version 2 of the License, or
-+ (at your option) any later version.
-+
-+ This program is distributed in the hope that it will be useful,
-+ but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ GNU General Public License for more details.
-+
-+ You should have received a copy of the GNU General Public License
-+ along with this program; if not, write to the Free Software
-+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+
-+On Debian GNU/Linux systems, the complete text of the GNU General
-+Public License can be found in `/usr/share/common-licenses/GPL'.
---- urlview-0.9.orig/debian/doc-base_urlview
-+++ urlview-0.9/debian/doc-base_urlview
-@@ -0,0 +1,14 @@
-+Document: urlview
-+Title: URLView Manual
-+Author: Michael Elkins
-+Abstract: Utility that extracts URLs from text files and passes them
-+ on to other programs to deal with them. In conjunction with
-+ mutt, it can be used to extract URLs from email messages.
-+Section: Apps/Tools
-+
-+Format: debiandoc-sgml
-+Files: /usr/share/doc/urlview/urlview.sgml.gz
-+
-+Format: HTML
-+Index: /usr/share/doc/urlview/html/urlview.html
-+Files: /usr/share/doc/urlview/html/urlview.html
---- urlview-0.9.orig/debian/dhelp
-+++ urlview-0.9/debian/dhelp
-@@ -0,0 +1,10 @@
-+<item>
-+<directory>misc
-+<linkname>urlview
-+<filename>urlview.html
-+<description>
-+Utility that extracts URLs from text files and passes them on to other
-+programs to deal with them. In conjunction with mutt, it can be used to extract
-+URLs from email messages.
-+</description>
-+</item>
---- urlview-0.9.orig/debian/system.urlview
-+++ urlview-0.9/debian/system.urlview
-@@ -0,0 +1,10 @@
-+#
-+# Sample urlview(1) configuration file
-+#
-+
-+# regular expression to use to match URLs
-+REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ .,;\t<">\):]
-+
-+# command to invoke for selected URL
-+COMMAND /etc/urlview/url_handler.sh
-+
---- urlview-0.9.orig/urlview-1.html
-+++ urlview-0.9/urlview-1.html
-@@ -0,0 +1,108 @@
-+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-+<HTML>
-+<HEAD>
-+ <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
-+ <TITLE>: </TITLE>
-+
-+ <LINK HREF="urlview.html#toc1" REL=contents>
-+</HEAD>
-+<BODY>
-+Next
-+Previous
-+<A HREF="urlview.html#toc1">Contents</A>
-+<HR>
-+<H2><A NAME="ss1.1">1.1</A> <A HREF="urlview.html#toc1.1">NAME</A>
-+</H2>
-+
-+<P>urlview - URL extractor/launcher</P>
-+
-+<H2><A NAME="ss1.2">1.2</A> <A HREF="urlview.html#toc1.2">SYNOPSIS</A>
-+</H2>
-+
-+<P>urlview <filename> [ <filename> ... ]</P>
-+
-+<H2><A NAME="ss1.3">1.3</A> <A HREF="urlview.html#toc1.3">DESCRIPTION</A>
-+</H2>
-+
-+<P><EM>urlview</EM> is a screen oriented program for extracting URLs from text
-+files and displaying a menu from which you may launch a command to view a
-+specific item.</P>
-+
-+<H2><A NAME="ss1.4">1.4</A> <A HREF="urlview.html#toc1.4">CONFIGURATION</A>
-+</H2>
-+
-+<P><EM>urlview</EM> attempts to read <EM>~/.urlview</EM> upon startup.
-+If this file doesn't exist, it will try to read a system wide file
-+in <EM>/etc/urlview/system.urlview</EM>. There are
-+two configuration commands (order does not matter):</P>
-+<P>REGEXP <regular expression to use for URL matching></P>
-+
-+<P><EM>urlview</EM> uses a regular expression to extract URLs from the specified
-+text files. \r, \t, \n and \f are all converted to
-+their normal printf(2) meanings. The default REGEXP is</P>
-+<P>
-+<PRE>
-+(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>"]+|(www|web|w3)\.[-a-z0-9.]+)[^' \t.,;<>"\):]
-+</PRE>
-+</P>
-+
-+<P>COMMAND <command to launch with URL></P>
-+<P>If the specified command contains a ``%s'', it will be subsituted
-+with the URL that was requested, otherwise the URL is appended to the
-+COMMAND string. The default COMMAND is
-+<PRE>
-+ url_handler.sh '%s'
-+</PRE>
-+
-+another possibility would be
-+<PRE>
-+ Netscape -remote 'openURL(%s)'
-+</PRE>
-+
-+<B>NOTE:</B> you should always put single quotes ('') around usage of
-+``%s'' and never let the REGEXP to match any string containing
-+a single quote (note <CODE>[⁁'...]</CODE> in the default REGEXP)
-+to avoid characters in the selected URL from being interpreted
-+by your shell. For example, I could put the following URL in my email
-+messages:
-+<PRE>
-+ X-Nasty-Url: http://www.`program_to_execute_as_you`.com
-+</PRE>
-+
-+If you pass this URL to your shell, it could have nasty consequences.</P>
-+
-+<H2><A NAME="ss1.5">1.5</A> <A HREF="urlview.html#toc1.5">FILES</A>
-+</H2>
-+
-+<P>
-+<DL>
-+<DT><B>/etc/urlview/system.urlview</B><DD><P>system-wide urlview configuration file</P>
-+<DT><B>~/.urlview</B><DD><P>urlview configuration file</P>
-+</DL>
-+</P>
-+
-+<H2><A NAME="ss1.6">1.6</A> <A HREF="urlview.html#toc1.6">ENVIRONMENT</A>
-+</H2>
-+
-+<P>If the environment variable BROWSER is set to a browser command, or a
-+colon-delimited list of commands to try, then the specified browser is
-+used. %s is replaced with the quoted url to view. If %s is not part of a
-+command, the url is appended to the command.</P>
-+
-+<H2><A NAME="ss1.7">1.7</A> <A HREF="urlview.html#toc1.7">SEE ALSO</A>
-+</H2>
-+
-+<P>regcomp(3)</P>
-+
-+<H2><A NAME="ss1.8">1.8</A> <A HREF="urlview.html#toc1.8">AUTHOR</A>
-+</H2>
-+
-+<P>Michael Elkins <me at cs.hmc.edu>.
-+Modified for Debian by Luis Francisco Gonzalez <luisgh at debian.org>.
-+Modified for SuSE by Dr. Werner Fink <werner at suse.de> and Stepan Kasal <kasal at suse.cz>.</P>
-+<HR>
-+Next
-+Previous
-+<A HREF="urlview.html#toc1">Contents</A>
-+</BODY>
-+</HTML>
More information about the arch-commits
mailing list