aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ftplocate/Makefile
blob: 16e578aaff17d28a8e45cc0e88978b102887d8f3 (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
# Created by: tung@turtle.ee.ncku.edu.tw
# $FreeBSD$

PORTNAME=   ftplocate
PORTVERSION=    2.02
CATEGORIES= ftp www
MASTER_SITES=   http://turtle.ee.ncku.edu.tw/ftplocate/download/

MAINTAINER= tung@turtle.ee.ncku.edu.tw
COMMENT=    A ftp search engine supporting filename and description search

RUN_DEPENDS=    glimpse:${PORTSDIR}/textproc/glimpse \
        unzip:${PORTSDIR}/archivers/unzip

USES=       shebangfix perl5
NO_BUILD=   yes
SHEBANG_FILES=  bin/*.pl template/ftplocate

NO_STAGE=   yes
post-extract:
    @${REINPLACE_CMD} -i '' -e 's|/usr/local/www|${PREFIX}/www|' \
        -e 's|/usr/local/apache/share|${PREFIX}/www|' ${WRKSRC}/install.pl
    @${REINPLACE_CMD} -i '' -e 's|/usr/local/bin/ftplocate|${PREFIX}/bin/ftplocate|' \
        -e 's|htdocs|data|' -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/install.pl

do-install:
    @${MKDIR} ${PREFIX}/www/data ${PREFIX}/www/cgi-bin
    cd ${WRKSRC}; ${PERL} install.pl -y -c -bsdport

.include <bsd.port.mk>