# Created by: Mikolaj Golub <trociny@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_0_0/sysutils/cmogstored/Makefile 473699 2018-07-02 04:00:29Z linimon $

PORTNAME=	cmogstored
PORTVERSION=	1.6.0
CATEGORIES=	sysutils
MASTER_SITES=	http://bogomips.org/cmogstored/files/

MAINTAINER=	trociny@FreeBSD.org
COMMENT=	Alternative mogstored implementation for MogileFS

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_mips=		failst to compile: fdmap.c:89: undefined reference to `__sync_add_and_fetch_4'
BROKEN_mips64=		failst to compile: fdmap.c:89: undefined reference to `__sync_add_and_fetch_4'
BROKEN_powerpc64=	fails to build: internal compiler error: Segmentation fault

PLIST_FILES=	sbin/cmogstored \
		man/man1/cmogstored.1.gz

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--bindir=${PREFIX}/sbin
USE_RC_SUBR=	cmogstored
TEST_TARGET=	check

.include <bsd.port.mk>
