aboutsummaryrefslogtreecommitdiffstats
path: root/www/webglimpse/Makefile
blob: 535c1feee91c2502b386a6b91d788875ca35995c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    WebGlimpse
# http://webglimpse.net/
# Date created:                         2 Nov 1998
# Whom:                                 ache
#
# $FreeBSD$
#

PORTNAME=   webglimpse
PORTVERSION=    1.6
CATEGORIES= www textproc
MASTER_SITES=   ftp://ftp.deva.net/pub/sources/ir/glimpse/
DISTNAME=   ${PORTNAME}-${PORTVERSION}.src

MAINTAINER= ports@FreeBSD.org
COMMENT=    WWW interface to Glimpse search engine

RUN_DEPENDS=    glimpse:${PORTSDIR}/textproc/glimpse

MAKE_JOBS_SAFE=  yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}.edu

USE_PERL5=  yes
USE_APACHE= 1.3
NO_CDROM=   depends on glimpse
NO_BUILD=   yes

pre-configure:
.for i in wginstall wginstall.pl
    cd ${WRKSRC}; ${CP} $i $i.tmp; \
        ${SED} s=%PERL%=${PERL}= < $i.tmp > $i
.endfor

do-install:
    ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 ${WWWDIR}/
.if defined(PACKAGE_BUILDING)
    ${INSTALL_DATA} ${FILESDIR}/.wgsiteconf ${WWWDIR}/
.endif
    cd ${WRKSRC}; ./wginstall
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/
    cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${DOCSDIR}/
.endif

.include <bsd.port.mk>