Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 1998 19:13:54 -0400 (EDT)
From:      Bill Fumerola <billf@jade.chc-chimes.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG, hoek@FreeBSD.ORG
Subject:   ports/8128: new port: textproc/htdig
Message-ID:  <199810012313.TAA05717@jade.chc-chimes.com>

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

>Number:         8128
>Category:       ports
>Synopsis:       new port: textproc/htdig
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  1 16:20:01 PDT 1998
>Last-Modified:
>Originator:     Bill Fumerola
>Organization:
Computer Horizons Corp
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:
>Description:

the ever popular ht://dig searching program. 

a little bit of history, because I think it's funny...

this is/was the first port I ever tried to do.
	my paths were hardcoded, 
	I didn't use the proper configure,
	I patched where I should have used sed. 
	I put ${PKGNAME} in pkg/COMMENT
	I didn't use ${PREFIX}/share
	hell, I didn't use ${PREFIX}

Tim Vanderhoek took this port apart piece by piece (ports/7140)
and opened my eyes into using the unix power tools for the good of
mankind, and I've since used them so much in my job, I don't know where
I'd be without them.

Needless to say, if anything else, porting has helped me become a better
admin, and hopefully has helped others in their quest for building a
better OS.

>How-To-Repeat:
>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:
#
#	.
#	./Makefile
#	./files
#	./files/md5
#	./patches
#	./patches/patch-aa
#	./pkg
#	./pkg/PLIST
#	./pkg/COMMENT
#	./pkg/DESCR
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:   htdig
X# Version required:    3.0.8b2
X# Date created:        18 August 1998
X# Whom:                Bill Fumerola <billf@chc-chimes.com>
X#
X# $Id: $
X#
X
XDISTNAME=	htdig-3.1.0b1
XPKGNAME=	htdig-3.1.0
XCATEGORIES=	textproc www
XMASTER_SITES=	http://www.htdig.org/files/
X
XMAINTAINER=	billf@chc-chimes.com
X
XUSE_AUTOCONF=	ohyeah
XBUILD_TARGET=	depends all
X
X# changing the order in which these sed's occur would be
X# REALLY bad. the first one changes the conf/bin/share structures
X# and the second changes the www cgi/html info. our structure
X# is significantly different then the [ugly] SYSV /opt tree.
X
Xpost-patch:
X
X	${MV} ${WRKSRC}/CONFIG ${WRKSRC}/CONFIG.old
X	${CAT} ${WRKSRC}/CONFIG.old | \
X	${SED} 's#/opt/www/htdig#${PREFIX}#g' | \
X	${SED} 's#/opt/www/#${PREFIX}/www/#g' | \
X	${SED} 's#htdocs#data#g' >> ${WRKSRC}/CONFIG
X
X.include <bsd.port.mk>
END-of-./Makefile
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/md5
sed 's/^X//' >./files/md5 << 'END-of-./files/md5'
XMD5 (htdig-3.1.0b1.tar.gz) = 90023f3f284745d0ccde694572bc5641
END-of-./files/md5
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X--- CONFIG.old	Tue Aug 18 22:24:10 1998
X+++ CONFIG	Tue Aug 18 22:25:36 1998
X@@ -25,20 +25,20 @@
X # CONFIG_DIR
X # This is the directory that contains ht://Dig configuration files
X #
X-CONFIG_DIR=            $(DEST)/conf
X+CONFIG_DIR=            $(DEST)/etc
X 
X #
X # COMMON_DIR
X # This is the directory for files that can be shared between different
X # databases.
X #
X-COMMON_DIR=            $(DEST)/common
X+COMMON_DIR=            $(DEST)/share/htdig
X 
X #
X # DATABASE_DIR
X # The default directory where the search databases will reside.
X #
X-DATABASE_DIR=          $(DEST)/db
X+DATABASE_DIR=          $(DEST)/share/htdig
X 
X #
X # DEFAULT_CONFIG_FILE
END-of-./patches/patch-aa
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
Xbin/rundig
Xbin/htfuzzy
Xbin/htdig
Xbin/htmerge
Xbin/htnotify
Xetc/htdig.conf
Xshare/htdig/footer.html
Xshare/htdig/bad_words
Xshare/htdig/header.html
Xshare/htdig/nomatch.html
Xshare/htdig/syntax.html
Xshare/htdig/english.0
Xshare/htdig/english.aff
Xshare/htdig/synonyms
Xwww/data/htdig/search.html
Xwww/data/htdig/button1.gif
Xwww/data/htdig/button2.gif
Xwww/data/htdig/button3.gif
Xwww/data/htdig/button4.gif
Xwww/data/htdig/button5.gif
Xwww/data/htdig/button6.gif
Xwww/data/htdig/button7.gif
Xwww/data/htdig/button8.gif
Xwww/data/htdig/button9.gif
Xwww/data/htdig/buttonl.gif
Xwww/data/htdig/buttonr.gif
Xwww/data/htdig/button10.gif
Xwww/data/htdig/htdig.gif
Xwww/data/htdig/star.gif
Xwww/data/htdig/star_blank.gif
Xwww/cgi-bin/htsearch
X@dirrm www/data/htdig
X@dirrm share/htdig
END-of-./pkg/PLIST
echo x - ./pkg/COMMENT
sed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT'
Xa www indexing and searching system for an intranet
END-of-./pkg/COMMENT
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
X	The ht://Dig system is a complete world wide web indexing and
Xsearching system for a small domain or intranet. This system is not
Xmeant to replace the need for powerful internet-wide search systems
Xlike Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant
Xto cover the search needs for a single company, campus, or even a
Xparticular sub section of a web site. 
X
X   As opposed to some WAIS-based or web-server based search engines,
Xht://Dig can span several web servers at a site. The type of these
Xdifferent web servers doesn't matter as long as they understand the
XHTTP 1.0 protocol. 
X
XHomepage: http://www.htdig.org
X
XBill Fumerola <billf@chc-chimes.com>
END-of-./pkg/DESCR
exit


>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?199810012313.TAA05717>