aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ftpmirror/Makefile
blob: 4c5e4b4954c88ad0fe50f506ae036a8f3114479f (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
# Created by: Yasuhiro Fukuma <yasuf@big.or.jp>
# $FreeBSD$

PORTNAME=   ftpmirror
PORTVERSION=    1.96
PORTREVISION=   3
CATEGORIES= ftp ipv6
MASTER_SITES=   ftp://ftp.sai.msu.su/pub/unix/FTP/mirror/

MAINTAINER= garga@FreeBSD.org
COMMENT=    An utility to mirror directory hierarchy with FTP

RUN_DEPENDS=    p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6

OPTIONS_DEFINE= DOCS

GNU_CONFIGURE=  yes

USES=       shebangfix perl5
SHEBANG_FILES=  ftpmirror rotate

CONFIGURE_ENV+= PERL="${PERL}" INSTALL_PROGRAM="${INSTALL_SCRIPT}"

PORTDOCS=   README.jis RELEASE.jis

post-configure:
    @${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \
        ${WRKSRC}/Fan/Fan.pm

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>