1999-12-25 00:04:31 -05:00
|
|
|
# New ports collection makefile for: Ftplocate
|
|
|
|
# Version required: 1.50
|
|
|
|
# Date created: 7 December 1999
|
|
|
|
# Whom: tung@turtle.ee.ncku.edu.tw
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ftplocate-1.50
|
|
|
|
CATEGORIES= ftp www
|
|
|
|
MASTER_SITES= ftp://ftp.ee.ncku.edu.tw/pub/
|
|
|
|
|
|
|
|
MAINTAINER= tung@turtle.ee.ncku.edu.tw
|
|
|
|
|
|
|
|
RUN_DEPENDS+= glimpse:${PORTSDIR}/textproc/glimpse
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2000-01-29 16:23:44 -05:00
|
|
|
PL_FILES= dcollect.pl dindex.pl dsearch.pl flcollect.pl flfilter.pl \
|
|
|
|
flhistory.pl flindex.pl flsearch.pl flserv.pl fltrain.pl
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.for f in ${PL_FILES}
|
|
|
|
@${PERL} -pi -e 's,/usr/local/bin/perl,${PERL},' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
|
1999-12-25 00:04:31 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL} -d ${PREFIX}/www/cgi-bin/ftplocate \
|
|
|
|
${PREFIX}/www/cgi-bin/ftplocate/index \
|
1999-12-29 16:22:10 -05:00
|
|
|
${PREFIX}/www/cgi-bin/ftplocate/desc \
|
|
|
|
${PREFIX}/www/data
|
1999-12-25 00:04:31 -05:00
|
|
|
${INSTALL} -o nobody -g nobody -m 755 -d ${PREFIX}/www/cgi-bin/ftplocate/cache
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
README README.zhtw fl.english fl.zhtw \
|
|
|
|
${PREFIX}/www/cgi-bin/ftplocate ;\
|
|
|
|
${INSTALL} -c -m 644 \
|
|
|
|
fl.config fl.share \
|
|
|
|
${PREFIX}/www/cgi-bin/ftplocate ;\
|
2000-01-29 16:23:44 -05:00
|
|
|
${INSTALL_SCRIPT} indexer.sh ${PREFIX}/www/cgi-bin/ftplocate; \
|
1999-12-25 00:04:31 -05:00
|
|
|
${INSTALL_DATA} \
|
|
|
|
flhelp.html flhelp.zhtw.html \
|
|
|
|
${PREFIX}/www/data ;\
|
|
|
|
${INSTALL_SCRIPT} ftplocate ${PREFIX}/bin/
|
2000-01-29 16:23:44 -05:00
|
|
|
.for f in ${PL_FILES}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/www/cgi-bin/ftplocate
|
|
|
|
.endfor
|
1999-12-25 00:04:31 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|