forked from Lainports/freebsd-ports
1. Add myself as a backup master site (Sourceforge and CPAN ports already have good enough coverage, so skip them). 2. For all ports that have them, download the PGP signature files. 3. For ports in 2, add a verify target to the Makefile 4. For ports where I was already providing a master site, update the URL. 5. Pet portlint in a couple of places.
71 lines
2 KiB
Makefile
71 lines
2 KiB
Makefile
# New ports collection makefile for: htdig
|
|
# Date created: 18 August 1998
|
|
# Whom: Bill Fumerola <billf@chc-chimes.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= htdig
|
|
PORTVERSION= 3.2.0.b6
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc www
|
|
MASTER_SITES= http://htdig.sourceforge.net/files/ \
|
|
http://www.htdig.org/files/ \
|
|
ftp://netmirror.org/ftp.htdig.org/ \
|
|
ftp://gnu.kookel.org/pub/htdig/ftp.htdig.org/files/ \
|
|
ftp://ftp.ntua.gr/pub/www/htdig/ \
|
|
http://dougbarton.us/Downloads/
|
|
DISTNAME= htdig-3.2.0b6
|
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
|
COMMENT= A www indexing and searching system
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/${APACHE_PORT}
|
|
|
|
USE_LIBTOOL_VER=15
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-config-dir=${PREFIX}/etc/htdig \
|
|
--with-default-config-file=${PREFIX}/etc/htdig/htdig.conf \
|
|
--with-common-dir=${PREFIX}/share/htdig/common \
|
|
--with-database-dir=${PREFIX}/share/htdig/database \
|
|
--with-cgi-bin-dir=${PREFIX}/www/cgi-bin \
|
|
--with-search-dir=${PREFIX}/www/data \
|
|
--with-image-dir=${PREFIX}/www/icons/htdig \
|
|
--with-image-url-prefix=/icons/htdig \
|
|
--with-ssl \
|
|
--with-apache=${LOCALBASE}/sbin
|
|
|
|
MAN1= htdig.1 htdig-pdfparser.1 htdump.1 htfuzzy.1 htload.1 \
|
|
htmerge.1 htnotify.1 htpurge.1 htsearch.1 htstat.1 rundig.1
|
|
|
|
MAN8= htdigconfig.8
|
|
APACHE_COMPAT= YES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
EXTRA_PATCHES+= ${PATCHDIR}/RELENG_4-patch-htnet_SSLConnection.cc
|
|
.endif
|
|
|
|
pre-install:
|
|
.if exists(${PREFIX}/etc/htdig/htdig.conf)
|
|
${MV} ${PREFIX}/etc/htdig/htdig.conf ${PREFIX}/etc/htdig/htdig.conf.old
|
|
.endif
|
|
|
|
post-install:
|
|
@${MV} ${PREFIX}/etc/htdig/htdig.conf ${PREFIX}/etc/htdig/htdig.conf.sample
|
|
.if exists(${PREFIX}/etc/htdig/htdig.conf.old)
|
|
${MV} ${PREFIX}/etc/htdig/htdig.conf.old ${PREFIX}/etc/htdig/htdig.conf
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
.for f in ChangeLog ChangeLog.0 README STATUS
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.for f in *.html *.gif
|
|
@${INSTALL_DATA} ${WRKSRC}/htdoc/${f} ${DOCSDIR}/html
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|