# Created by: torstenb
# $FreeBSD: tags/RELEASE_10_1_0/ftp/mirror/Makefile 355767 2014-05-30 02:14:04Z cy $

PORTNAME=	mirror
PORTVERSION=	2.9
PORTREVISION=	2
CATEGORIES=	ftp
MASTER_SITES=	ftp://sunsite.ualberta.ca/pub/Mirror/mirror/ \
		http://komquats.com/distfiles/ \
		${MASTER_SITE_LOCAL}/cy/

PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	ftp.pl_wupatch

MAINTAINER=	cy@FreeBSD.org
COMMENT=	Mirror packages on remote sites

MAKE_ARGS=	PREFIX=${STAGEDIR}${PREFIX}

USES=		perl5 shebangfix
SHEBANG_FILES=	dateconv.pl ftp.pl  lchat.pl mirror.pl pkgs_to_mmin.pl \
		do_unlinks.pl install.pl lsparse.pl mm.pl  prune_logs.pl

NO_WRKSUBDIR=	yes
MAKEFILE=	makefile

pre-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mirror

.include <bsd.port.mk>
