freebsd-ports/sysutils/moosefs-chunkserver/Makefile
Baptiste Daroussin 69faac8854 - switch to USERs/GROUPs macro
- while here add license

PR:		ports/150241
Submitted by:	bapt (myself)
Approved by:	maintainer (timeout)
2011-05-31 06:37:50 +00:00

57 lines
1.3 KiB
Makefile

# New ports collection makefile for: moosefs-chunkserver
# Date created: 1 April 2010
# Whom: Chifeng Qu <chifeng@gmail.com>
#
# $FreeBSD$
#
PORTNAME= moosefs
PORTVERSION= 1.6.20
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF/moosefs/moosefs/${PORTVERSION}/
PKGNAMESUFFIX= -chunkserver
DISTNAME= mfs-${PORTVERSION}
MAINTAINER= chifeng@gmail.com
COMMENT= Storing files data and synchronizing it among themselves
LICENSE= GPLv3
USERS= mfs
GROUPS= mfs
GNU_CONFIGURE= yes
USE_RC_SUBR+= mfschunkserver
MFS_WORKDIR= /var
MAN5= mfschunkserver.cfg.5 mfshdd.cfg.5
MAN8= mfschunkserver.8
SUB_FILES+= pkg-message
SUB_LIST+= MFS_WORKDIR="${MFS_WORKDIR}"
CONFIGURE_ARGS= --localstatedir=${MFS_WORKDIR} \
--bindir=${PREFIX}/sbin \
--with-default-user=${MFSUSER} \
--with-default-group=${MFSGROUP} \
--disable-mfsmaster \
--disable-mfsmount \
--disable-mfscgi \
--disable-mfscgiserv \
--enable-mfschunkserver
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's;^general_mans;#general_mans;g' ${WRKSRC}/doc/Makefile.am \
${WRKSRC}/doc/Makefile.in
post-install:
.for FILE in mfschunkserver mfshdd
@if [ ! -f ${PREFIX}/etc/${i}.cfg ]; then \
${CP} ${PREFIX}/etc/${FILE}.cfg.dist ${PREFIX}/etc/${FILE}.cfg ; \
fi
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>