a46d2b6bb6
* MooseFS 3.0.101-1 (2018-07-12) - (master) make under goal replications respect topology (patch made by tclh123) - (master) fix inforec undergoal (patch made by tclh123) - (cgiserv) fixed handling connection close during data sending (leaving active pipes which caused leaving mfs.cgi subprocesses) - (mount) decreased memory usage (fixed handling buffers allocated per thread) - (all) setting correct errno when read returns 0 (in sockets.c) - (mount) fixed double free of plock_data structure - (master) fixed inconsistency in calculating realsize when storage class definition has changed - (master+mount) fixed handling read-only filesystems (ro flag in exports and lookup-open lflags) - (all) fixed differences in defaults between source, config and manpages - (all) added 'nobreak' macro to explicitly inform compiler that intentionally there is no 'break' before following 'case' - (mount) added 'mfssuid' and 'mfsdev' options to mount (allows mounting with suid/dev options using system mount on Linux) - (cs) added using posix_fadvise(...DONTNEED) for tested chunks - (master) fixed HA bug (uninitialized variable might cause everlasting ELECT - PRO only) - (cs) fixed metaid handling - (master) added clearing SNAPHSOT eattr on file/directory modifications - (master) added optional same rack preference for destination server during undergoal replications - (mount+tools) increased masterproxy timeout from 1s to 20s PR: 229999 Submitted by: freebsd@moosefs.org (maintainer)
109 lines
2.6 KiB
Makefile
109 lines
2.6 KiB
Makefile
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= moosefs3
|
|
PORTVERSION= 3.0.101
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://ppa.moosefs.com/src/
|
|
PKGNAMESUFFIX?= -master
|
|
DISTNAME= moosefs-${PORTVERSION}-1
|
|
|
|
MAINTAINER= freebsd@moosefs.com
|
|
COMMENT?= Fault-tolerant distributed filesystem
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= python:build
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/moosefs-${PORTVERSION}
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
MFS_COMPONENT?= master
|
|
MFS_USER= mfs
|
|
MFS_GROUP= mfs
|
|
MFS_WORKDIR= /var
|
|
|
|
USERS= ${MFS_USER}
|
|
GROUPS= ${MFS_GROUP}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${MFS_WORKDIR} \
|
|
--with-default-user=${MFS_USER} \
|
|
--with-default-group=${MFS_GROUP}
|
|
|
|
CONFLICTS= moosefs2-${MFS_COMPONENT}-*
|
|
|
|
.if ${MFS_COMPONENT} == cgi
|
|
MFS_CGIDIR= ${PREFIX}/share/mfscgi
|
|
USES= python
|
|
CONFIGURE_ARGS+= --enable-mfscgi \
|
|
--with-mfscgi-dir=${MFS_CGIDIR}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfscgi
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == cgiserv
|
|
MFS_CGISERVDIR= ${PREFIX}/sbin
|
|
USES= python
|
|
USE_RC_SUBR= mfscgiserv
|
|
SUB_FILES+= pkg-message-cgiserv
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message-cgiserv
|
|
PLIST_SUB+= MFS_WORKDIR="${MFS_WORKDIR}"
|
|
CONFIGURE_ARGS+= --enable-mfscgiserv \
|
|
--with-mfscgiserv-dir=${MFS_CGISERVDIR}
|
|
RUN_DEPENDS= moosefs3-cgi>0:sysutils/moosefs3-cgi
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfscgiserv
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == chunkserver
|
|
USE_RC_SUBR= mfschunkserver
|
|
SUB_FILES+= pkg-message-chunkserver
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message-chunkserver
|
|
PLIST_SUB+= MFS_WORKDIR="${MFS_WORKDIR}"
|
|
CONFIGURE_ARGS+= --enable-mfschunkserver
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfschunkserver
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == cli
|
|
USES= python
|
|
CONFIGURE_ARGS+= --enable-mfscli
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfscli
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == client
|
|
USES= fuse pkgconfig
|
|
CONFIGURE_ARGS+= --enable-mfsmount
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfsmount
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == master
|
|
USE_RC_SUBR= mfsmaster
|
|
PLIST_SUB+= MFS_WORKDIR="${MFS_WORKDIR}"
|
|
SUB_FILES+= pkg-message-master
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message-master
|
|
CONFIGURE_ARGS+= --enable-mfsmaster
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfsmaster
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == metalogger
|
|
USE_RC_SUBR= mfsmetalogger
|
|
SUB_FILES+= pkg-message-metalogger
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message-metalogger
|
|
PLIST_SUB+= MFS_WORKDIR="${MFS_WORKDIR}"
|
|
CONFIGURE_ARGS+= --enable-mfsmetalogger
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfsmetalogger
|
|
.endif
|
|
|
|
.if ${MFS_COMPONENT} == netdump
|
|
CONFIGURE_ARGS+= --enable-mfsnetdump
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mfsnetdump
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|