summaryrefslogtreecommitdiff
path: root/ftp/ftpmirror/Makefile
blob: 43fa44269af74f7a7e4d51afe015b1c1daec3f7d (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
37
# New ports collection makefile for:	ftpmirror
# Date created:		10 January 1999
# Whom:			Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#

PORTNAME=	ftpmirror
PORTVERSION=	1.96
PORTREVISION=	2
CATEGORIES=	ftp ipv6
MASTER_SITES=	ftp://ftp.intec.co.jp/pub/utils/ftpmirror/beta/

MAINTAINER=	yasuf@big.or.jp
COMMENT=	An utility to mirror directory hierarchy with FTP

RUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6

USE_PERL5=	YES
GNU_CONFIGURE=	YES

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

post-configure:
	perl -i.bak -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Fan/Fan.pm
.for f in ftpmirror rotate
	perl -i.bak -pe 's,^#!.*$$,#!${PERL}, if $$. == 1' ${WRKSRC}/${f}
.endfor

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/ftpmirror
	cd ${WRKSRC}; \
	  ${INSTALL_MAN} README.jis RELEASE.jis ${PREFIX}/share/doc/ftpmirror
.endif

.include <bsd.port.mk>