Subject: Adding support for packaged htdig to "wwwoffle"
To: None <tech-pkg@NetBSD.ORG>
From: Frederick Bruckman <fb@enteract.com>
List: tech-pkg
Date: 01/21/2000 14:07:27
I propose to commit the following, which fixes the paths in the
wwwoffle scripts to make them work with our packaged htdig, and also
adds a dependence on the htdig package. (Otherwise, what's the point?)
It remains for the administrator to arrange to run one or two of the
scripts periodically, or not to. My question is, is it particularly
onerous for anyone, for wwwoffle to depend unconditionally on htdig?
If so, the package could pull in htdig (or not) as an option. Then the
question becomes, which is to be the default? I'd prefer not to go
that way, to always install htdig, but I thought I'd better ask first.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/wwwoffle/Makefile,v
retrieving revision 1.12
diff -c -r1.12 Makefile
*** Makefile 1999/12/07 08:50:49 1.12
--- Makefile 2000/01/21 20:07:01
***************
*** 9,14 ****
--- 9,16 ----
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/
+ DEPENDS+= htdig>=3.1.3:../../www/htdig
+
USE_GMAKE= yes
NO_CONFIGURE= yes
***************
*** 37,42 ****
--- 39,51 ----
.endif
post-build:
+ cd ${WRKSRC}/html/htdig/scripts; \
+ for f in wwwoffle-ht*; do \
+ ${MV} $$f $$f.old; \
+ ${SED} -e '/htsearch/s#^#${PREFIX}/libexec/cgi-bin/#' \
+ -e 's#/usr/local#${PREFIX}#' <$$f.old >$$f; \
+ ${RM} $$f.old; \
+ done
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffle.sh \
>${WRKDIR}/wwwoffle.sh
@${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/MESSAGE \