40 lines
845 B
Makefile
40 lines
845 B
Makefile
# 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
|
|
|
|
NO_STAGE= yes
|
|
post-configure:
|
|
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Fan/Fan.pm
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|