# New ports collection makefile for:	p5-mogilefs-server
# Date created:		2007-04-28
# Whom:			Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD: ports/sysutils/p5-MogileFS-Server/Makefile,v 1.26 2012/03/08 08:41:04 sunpoet Exp $
#

PORTNAME=	MogileFS-Server
PORTVERSION=	2.59
CATEGORIES=	sysutils perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:DORMANDO
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	MogileFS (distributed filesystem) server

BUILD_DEPENDS=	p5-Danga-Socket>=1.56:${PORTSDIR}/devel/p5-Danga-Socket \
		p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
		p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
		p5-IO-AIO>=0:${PORTSDIR}/devel/p5-IO-AIO \
		p5-MogileFS-Client>=0:${PORTSDIR}/sysutils/p5-MogileFS-Client \
		p5-Net-Netmask>=0:${PORTSDIR}/net-mgmt/p5-Net-Netmask \
		p5-Perlbal>=1.79:${PORTSDIR}/www/perlbal \
		p5-Sys-Syscall>=0.22:${PORTSDIR}/devel/p5-Sys-Syscall \
		p5-Sys-Syslog>=0:${PORTSDIR}/sysutils/p5-Sys-Syslog
RUN_DEPENDS:=	${BUILD_DEPENDS}

PERL_CONFIGURE=	yes
USE_RC_SUBR=	mogilefsd mogstored

MAN1=		mogautomount.1 \
		mogilefsd.1 \
		mogstored.1
MAN3=		MogileFS::Class.3 \
		MogileFS::DevFID.3 \
		MogileFS::Device.3 \
		MogileFS::Domain.3 \
		MogileFS::FID.3 \
		MogileFS::Factory.3 \
		MogileFS::Host.3 \
		MogileFS::IOStatWatcher.3 \
		MogileFS::Overview.3 \
		MogileFS::ReplicationPolicy.3 \
		MogileFS::ReplicationPolicy::MultipleHosts.3 \
		MogileFS::ReplicationPolicy::Union.3 \
		MogileFS::Server.3 \
		MogileFS::Store.3 \
		MogileFS::Store::MySQL.3 \
		MogileFS::Store::Postgres.3 \
		MogileFS::Store::SQLite.3 \
		MogileFS::Worker::Query.3 \
		MogileFS::Worker::Replicate.3

post-install:
.ifndef(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/
.endif

.include <bsd.port.mk>
