Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 1999 06:44:44 -0500 (EST)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/15795: new port: www/bkmrkconv
Message-ID:  <199912311144.GAA36440@argon.blackdawn.com>

next in thread | raw e-mail | index | archive | help

>Number:         15795
>Category:       ports
>Synopsis:       new port: www/bkmrkconv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 31 03:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Nov 30 10:14:31 EST 1999     root@argon.blackdawn.com:/usr/src/sys/compile/ARGON  i386

>Description:

See pkg/DESCR. My little shell script
gets around the fact that bkmrkconv doesn't
show the arguments if you don't give it any.
This is intended to be helpful.

>How-To-Repeat:

Use the shar below to commit the port to the tree.

>Fix:

# 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:
#
#	bkmrkconv
#	bkmrkconv/files
#	bkmrkconv/files/md5
#	bkmrkconv/files/bkmrkconv
#	bkmrkconv/pkg
#	bkmrkconv/pkg/COMMENT
#	bkmrkconv/pkg/DESCR
#	bkmrkconv/pkg/PLIST
#	bkmrkconv/patches
#	bkmrkconv/patches/patch-aa
#	bkmrkconv/Makefile
#
echo c - bkmrkconv
mkdir -p bkmrkconv > /dev/null 2>&1
echo c - bkmrkconv/files
mkdir -p bkmrkconv/files > /dev/null 2>&1
echo x - bkmrkconv/files/md5
sed 's/^X//' >bkmrkconv/files/md5 << 'END-of-bkmrkconv/files/md5'
XMD5 (bkmrkconv.tar.gz) = af3ec2b7eb2d0ed4693b97b5b9578e0f
END-of-bkmrkconv/files/md5
echo x - bkmrkconv/files/bkmrkconv
sed 's/^X//' >bkmrkconv/files/bkmrkconv << 'END-of-bkmrkconv/files/bkmrkconv'
X#!/bin/sh
Xif [ -z $@ ]; then
X	echo
X	echo "bkmrkconv - Convert Netscape bookmarks.html into a tree of HTML"
X	echo "(c) Jaffa Software 1999. 1.01 (16-Dec-1999). [http://www.eh.org/~jaffa/]"
X	echo "Released under the Artistic License."
X	echo
X	echo "Syntax:"
X	echo "    bkmrkconv [-h | --help] [-f input] [-d output directory]"
X	echo
X	exit 1
X
Xfi
Xcd /usr/local/share/bkmrkconv && ./bkmrkconv $@
END-of-bkmrkconv/files/bkmrkconv
echo c - bkmrkconv/pkg
mkdir -p bkmrkconv/pkg > /dev/null 2>&1
echo x - bkmrkconv/pkg/COMMENT
sed 's/^X//' >bkmrkconv/pkg/COMMENT << 'END-of-bkmrkconv/pkg/COMMENT'
XNetscape bookmarks.html converter.
END-of-bkmrkconv/pkg/COMMENT
echo x - bkmrkconv/pkg/DESCR
sed 's/^X//' >bkmrkconv/pkg/DESCR << 'END-of-bkmrkconv/pkg/DESCR'
Xbkmrkconv converts Netscape-generated bookmarks.html
Xinto a nice tree of files that you can navigate using
Xyour favorite browser.
X
XSince bkmrkconv doesn't give you the syntax if you do
Xnot give it any arguments, here's the syntax:
X
X    bkmrkconv [-h | --help] [-f input] [-d output directory]
X
XYou can execute it as `bkmrkconv` rather than `bkmrkconv.pl`
Xif you use this port because that is how I have it setup.
X
XWWW: http://www.dcs.warwick.ac.uk/~csube/bkmrkconv/
XAuthor: Andrew Flegg <andrew@jaffasoft.co.uk>
X
X--Will <andrews@technologist.com>
END-of-bkmrkconv/pkg/DESCR
echo x - bkmrkconv/pkg/PLIST
sed 's/^X//' >bkmrkconv/pkg/PLIST << 'END-of-bkmrkconv/pkg/PLIST'
Xbin/bkmrkconv
Xshare/bkmrkconv/bkmrkconv
Xshare/bkmrkconv/random.pl
Xshare/bkmrkconv/README.txt
Xshare/bkmrkconv/src/header.gif
Xshare/bkmrkconv/src/linkspage.html
Xshare/bkmrkconv/src/rootpage.html
X@dirrm share/bkmrkconv/src
X@dirrm share/bkmrkconv/
END-of-bkmrkconv/pkg/PLIST
echo c - bkmrkconv/patches
mkdir -p bkmrkconv/patches > /dev/null 2>&1
echo x - bkmrkconv/patches/patch-aa
sed 's/^X//' >bkmrkconv/patches/patch-aa << 'END-of-bkmrkconv/patches/patch-aa'
X--- bkmrkconv.pl	Fri Dec 17 11:40:59 1999
X+++ bkmrkconv.pl.new	Sat Dec 18 02:25:35 1999
X@@ -1,4 +1,4 @@
X-#!/usr/local/bin/perl -w
X+#!/usr/bin/perl -w
X #
X # bkmrkconv - Convert Netscape bookmarks.html into a tree of HTML
X # ~~~~~~~~~   (c) Andrew Flegg 1999.
X@@ -41,9 +41,10 @@
X }
X 
X $outputDir =~ s!/$!!;
X+my $shareDir = '/usr/local/share/bkmrkconv';
X 
X-my $rootpage  = &readFile("$outputDir/src/rootpage.html");
X-my $linkspage = &readFile("$outputDir/src/linkspage.html");
X+my $rootpage  = &readFile("$shareDir/src/rootpage.html");
X+my $linkspage = &readFile("$shareDir/src/linkspage.html");
X 
X my %root;
X 
END-of-bkmrkconv/patches/patch-aa
echo x - bkmrkconv/Makefile
sed 's/^X//' >bkmrkconv/Makefile << 'END-of-bkmrkconv/Makefile'
X# New ports collection makefile for:	bkmrkconv
X# Version required:	1.0.1
X# Date created:		18 Dec 1999
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	bkmrkconv
XPKGNAME=	bkmrkconv-1.0.1
XCATEGORIES=	converters www
XMASTER_SITES=	http://www.dcs.warwick.ac.uk/~csube/bkmrkconv/
X
XMAINTAINER=	andrews@technologist.com
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
X
Xpre-install:
X	@${PERL} -pi -e "s:/usr/local/bin/perl:${PERL}:g" ${WRKSRC}/*.pl
X	@${PERL} -pi -e "s:/usr/local/share:${PREFIX}/share:g" ${WRKSRC}/bkmrkconv.pl
X	@${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${FILESDIR}/bkmrkconv
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/bkmrkconv/src
X	@${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/bkmrkconv/
X	@${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/share/bkmrkconv/src/
X	@${INSTALL_SCRIPT} ${WRKSRC}/random.pl ${PREFIX}/share/bkmrkconv/
X	@${INSTALL_SCRIPT} ${WRKSRC}/bkmrkconv.pl ${PREFIX}/share/bkmrkconv/bkmrkconv
X	@${INSTALL_SCRIPT} ${FILESDIR}/bkmrkconv ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-bkmrkconv/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912311144.GAA36440>