# Created by: torstenb
# $FreeBSD: tags/RELEASE_10_0_0/ftp/mirror/Makefile 327729 2013-09-20 17:23:18Z bapt $

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

PLIST_FILES=	bin/mirror \
		bin/do_unlinks \
		bin/pkgs_to_mmin \
		bin/mirror-master \
		lib/mirror/lchat.pl \
		lib/mirror/dateconv.pl \
		lib/mirror/ftp.pl \
		lib/mirror/lsparse.pl \
		lib/mirror/mirror.defaults.sample

PLIST_DIRS=	lib/mirror

USES=		perl5
NO_WRKSUBDIR=	yes
MAKEFILE=	makefile
MAN1=		mirror.1 mirror-master.1

NO_STAGE=	yes
pre-install:
	@${MKDIR} ${PREFIX}/lib/mirror

.include <bsd.port.mk>
