2cd4c891af
However, this will work only if PREFIX==LOCALBASE, since it checks if Apache's data.default dir is present (which is in LOCALBASE, not PREFIX). (OTOH, it will be in PREFIX if it installs the apache13 dependency, so it is correct)
39 lines
1020 B
Makefile
39 lines
1020 B
Makefile
# New ports collection makefile for: Ftplocate
|
|
# Date created: 7 December 1999
|
|
# Whom: tung@turtle.ee.ncku.edu.tw
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ftplocate
|
|
PORTVERSION= 2.01
|
|
PORTREVISION= 1
|
|
CATEGORIES= ftp www
|
|
MASTER_SITES= ftp://ftp.ee.ncku.edu.tw/pub/ftplocate/
|
|
|
|
MAINTAINER= tung@turtle.ee.ncku.edu.tw
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
RUN_DEPENDS= glimpse:${PORTSDIR}/textproc/glimpse \
|
|
unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
USE_PERL5= yes
|
|
NO_BUILD= yes
|
|
|
|
PL_FILES= install.pl bin/dcollect.pl bin/dindex.pl bin/dsearch.pl \
|
|
bin/flcollect.pl bin/flfilter.pl bin/flhistory.pl \
|
|
bin/flindex.pl bin/flmap.pl bin/flsearch.pl \
|
|
bin/flserv.pl bin/flsummary.pl bin/fltop.pl \
|
|
bin/fltrain.pl bin/flcatsite.pl template/ftplocate
|
|
|
|
post-patch:
|
|
.for f in ${PL_FILES}
|
|
@${PERL} -pi -e 's,/usr/local/bin/perl,${PERL},' ${WRKSRC}/${f}
|
|
.endfor
|
|
@${PERL} -pi -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/install.pl
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; ${PERL} install.pl -y -c -bsdport
|
|
|
|
.include <bsd.port.mk>
|