# New ports collection makefile for: moosefs-chunkserver # Date created: 1 April 2010 # Whom: Chifeng Qu # # $FreeBSD$ # PORTNAME= moosefs PORTVERSION= 1.6.20 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 GNU_CONFIGURE= yes USE_RC_SUBR+= mfschunkserver MFS_WORKDIR= /var MAN5= mfschunkserver.cfg.5 mfshdd.cfg.5 MAN8= mfschunkserver.8 SUB_FILES+= pkg-install pkg-message pkg-deinstall 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 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 PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL @${CAT} ${PKGMESSAGE} .include