freebsd-ports/sysutils/moosefs-master/Makefile
Wen Heping d4d8788b44 - Update to 1.6.20
PR:		ports/154161
Submitted by:	Chifeng Qu <chifeng@gmail.com> (maintainer)
Feature safe:	yes
2011-01-21 09:24:05 +00:00

55 lines
1.4 KiB
Makefile

# New ports collection makefile for: moosefs-master
# Date created: 1 April 2010
# Whom: Chifeng Qu <chifeng@gmail.com>
#
# $FreeBSD$
#
PORTNAME= moosefs
PORTVERSION= 1.6.20
CATEGORIES= sysutils
MASTER_SITES= SF/moosefs/moosefs/${PORTVERSION}/
PKGNAMESUFFIX= -master
DISTNAME= mfs-${PORTVERSION}
MAINTAINER= chifeng@gmail.com
COMMENT= Managing the whole filesystem and storing metadata
USE_PYTHON= 2.5+
GNU_CONFIGURE= yes
USE_RC_SUBR+= mfsmaster mfsmetalogger mfscgiserv
MFS_WORKDIR= /var
MFS_CGIDIR= ${PREFIX}/share/mfscgi
SUB_FILES+= pkg-install pkg-message pkg-deinstall
SUB_LIST+= MFS_WORKDIR="${MFS_WORKDIR}"
CONFIGURE_ARGS+= --localstatedir=${MFS_WORKDIR} \
--enable-mfsmaster \
--with-mfscgiserv-dir=${PREFIX}/sbin \
--enable-mfscgiserv \
--enable-mfscgi \
--with-mfscgi-dir=${MFS_CGIDIR} \
--disable-mfschunkserver \
--disable-mfsmount
MAN5= mfsmaster.cfg.5 mfsexports.cfg.5 mfsmetalogger.cfg.5
MAN7= moosefs.7 mfs.7
MAN8= mfscgiserv.8 mfsmaster.8 mfsmetarestore.8 mfsmetalogger.8
.include <bsd.port.pre.mk>
pre-install:
${MKDIR} ${MFS_CGIDIR}
post-install:
.for FILE in mfsmaster mfsexports mfsmetalogger
@if [ ! -f ${PREFIX}/etc/${i}.cfg ]; then \
${CP} ${PREFIX}/etc/${FILE}.cfg.dist ${PREFIX}/etc/${FILE}.cfg ; \
fi
.endfor
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>