Add remaining moosefs3-* ports to the ports tree

PR:		210306
Submitted by:	Jakub Kruszona-Zawadzki <acid@moosefs.com>
This commit is contained in:
Mark Felder 2016-07-26 16:56:05 +00:00
parent 9fa9eb9ac7
commit 0cfeb8fd9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419134
31 changed files with 559 additions and 0 deletions

View File

@ -606,6 +606,13 @@
SUBDIR += moosefs2-metalogger
SUBDIR += moosefs2-netdump
SUBDIR += moosefs3-cgi
SUBDIR += moosefs3-cgiserv
SUBDIR += moosefs3-chunkserver
SUBDIR += moosefs3-cli
SUBDIR += moosefs3-client
SUBDIR += moosefs3-master
SUBDIR += moosefs3-metalogger
SUBDIR += moosefs3-netdump
SUBDIR += moreutils
SUBDIR += most
SUBDIR += mount.app

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -cgiserv
COMMENT= MooseFS CGI webserver
LICENSE= GPLv2
MFS_COMPONENT= cgiserv
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: Simple CGI-capable HTTP server to run MooseFS CGI monitor.
WWW: https://moosefs.com/

View File

@ -0,0 +1,5 @@
sbin/mfscgiserv
man/man8/mfscgiserv.8.gz
@owner mfs
@group mfs
@dir %%MFS_WORKDIR%%/mfs

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -chunkserver
COMMENT= MooseFS data storage and synchronization component
LICENSE= GPLv2
MFS_COMPONENT= chunkserver
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS data server.
WWW: https://moosefs.com/

View File

@ -0,0 +1,13 @@
@sample etc/mfs/mfschunkserver.cfg.sample
@sample etc/mfs/mfshdd.cfg.sample
sbin/mfschunkserver
sbin/mfschunktool
sbin/mfscsstatsdump
man/man5/mfschunkserver.cfg.5.gz
man/man5/mfshdd.cfg.5.gz
man/man8/mfschunkserver.8.gz
man/man8/mfschunktool.8.gz
man/man8/mfscsstatsdump.8.gz
@owner mfs
@group mfs
@dir %%MFS_WORKDIR%%/mfs

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -cli
COMMENT= MooseFS command line interface
LICENSE= GPLv2
MFS_COMPONENT= cli
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS CLI utilities.
WWW: https://moosefs.com/

View File

@ -0,0 +1,2 @@
bin/mfscli
man/man1/mfscli.1.gz

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -client
COMMENT= MooseFS client tools
LICENSE= GPLv2
MFS_COMPONENT= client
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS clients: mfsmount and mfstools.
WWW: https://moosefs.com/

View File

@ -0,0 +1,76 @@
@sample etc/mfs/mfsmount.cfg.sample
bin/mfsmount
bin/mfsappendchunks
bin/mfscheckfile
bin/mfsdirinfo
bin/mfsfileinfo
bin/mfsfilerepair
bin/mfsmakesnapshot
bin/mfsrmsnapshot
bin/mfsgetgoal
bin/mfssetgoal
bin/mfscopygoal
bin/mfsrgetgoal
bin/mfsrsetgoal
bin/mfsgetsclass
bin/mfssetsclass
bin/mfscopysclass
bin/mfsxchgsclass
bin/mfslistsclass
bin/mfsgettrashtime
bin/mfssettrashtime
bin/mfscopytrashtime
bin/mfsrgettrashtime
bin/mfsrsettrashtime
bin/mfsgeteattr
bin/mfsseteattr
bin/mfsdeleattr
bin/mfscopyeattr
bin/mfsgetquota
bin/mfssetquota
bin/mfsdelquota
bin/mfscopyquota
bin/mfsfilepaths
bin/mfsscadmin
bin/mfstools
man/man1/mfsappendchunks.1.gz
man/man1/mfscheckfile.1.gz
man/man1/mfsdirinfo.1.gz
man/man1/mfsfileinfo.1.gz
man/man1/mfsfilerepair.1.gz
man/man1/mfsmakesnapshot.1.gz
man/man1/mfsrmsnapshot.1.gz
man/man1/mfsgetgoal.1.gz
man/man1/mfssetgoal.1.gz
man/man1/mfscopygoal.1.gz
man/man1/mfsrgetgoal.1.gz
man/man1/mfsrsetgoal.1.gz
man/man1/mfsgetsclass.1.gz
man/man1/mfssetsclass.1.gz
man/man1/mfscopysclass.1.gz
man/man1/mfsxchgsclass.1.gz
man/man1/mfslistsclass.1.gz
man/man1/mfsgettrashtime.1.gz
man/man1/mfssettrashtime.1.gz
man/man1/mfscopytrashtime.1.gz
man/man1/mfsrgettrashtime.1.gz
man/man1/mfsrsettrashtime.1.gz
man/man1/mfsgeteattr.1.gz
man/man1/mfsseteattr.1.gz
man/man1/mfsdeleattr.1.gz
man/man1/mfscopyeattr.1.gz
man/man1/mfsgetquota.1.gz
man/man1/mfssetquota.1.gz
man/man1/mfsdelquota.1.gz
man/man1/mfscopyquota.1.gz
man/man1/mfsfilepaths.1.gz
man/man1/mfsgoal.1.gz
man/man1/mfstrashtime.1.gz
man/man1/mfseattr.1.gz
man/man1/mfsquota.1.gz
man/man1/mfssnapshots.1.gz
man/man1/mfsdiagtools.1.gz
man/man1/mfssclass.1.gz
man/man1/mfsscadmin.1.gz
man/man1/mfstools.1.gz
man/man8/mfsmount.8.gz

View File

@ -0,0 +1,109 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PORTNAME= moosefs3
PORTVERSION= 3.0.80
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:2.5+
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:2.5+
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:2.5+
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>

View File

@ -0,0 +1,2 @@
SHA256 (moosefs-3.0.80-1.tar.gz) = f1a7fea882d44af71f4b09e04df4683cd4ee064e9b0a2ad32116263e60c7b4e7
SIZE (moosefs-3.0.80-1.tar.gz) = 1097759

View File

@ -0,0 +1,30 @@
#!/bin/sh
# $FreeBSD$
# PROVIDE: mfscgiserv
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mfscgiserv:
#
# mfscgiserv_enable="YES"
#
. /etc/rc.subr
name=mfscgiserv
rcvar=mfscgiserv_enable
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
procname="python"
stop_cmd="$command stop"
status_cmd="$command test"
load_rc_config $name
# set defaults
: ${mfscgiserv_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,31 @@
#!/bin/sh
# $FreeBSD$
# PROVIDE: mfschunkserver
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable mfschunkserver:
#
# mfschunkserver_enable="YES"
#
. /etc/rc.subr
name=mfschunkserver
rcvar=mfschunkserver_enable
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
required_files=${config_file}
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
command_args="-c $config_file"
load_rc_config $name
# set defaults
: ${mfschunkserver_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,31 @@
#!/bin/sh
# $FreeBSD$
# PROVIDE: mfsmaster
# REQUIRE: DAEMON
# KEYWORD: nostart shutdown
#
# Add the following lines to /etc/rc.conf to enable mfsmaster:
#
# mfsmaster_enable="YES"
#
. /etc/rc.subr
name=mfsmaster
rcvar=mfsmaster_enable
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
required_files=${config_file}
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
command_args="-c $config_file"
load_rc_config $name
# set defaults
: ${mfsmaster_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,31 @@
#!/bin/sh
# $FreeBSD$
# PROVIDE: mfsmetalogger
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mfsmetalogger:
#
# mfsmetalogger_enable="YES"
#
. /etc/rc.subr
name=mfsmetalogger
rcvar=mfsmetalogger_enable
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
required_files=${config_file}
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
command_args="-c $config_file"
load_rc_config $name
# set defaults
: ${mfsmetalogger_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,12 @@
************************************************************************
A startup script has been installed as:
%%PREFIX%%/etc/rc.d/mfscgiserv
Use it to start/stop the mfscgiserv service after you have added
the following line to your rc.conf file:
mfscgiserv_enable="YES"
************************************************************************

View File

@ -0,0 +1,12 @@
************************************************************************
A startup script has been installed as:
%%PREFIX%%/etc/rc.d/mfschunkserver
Use it to start/stop the mfschunkserver service after you have added
the following line to your rc.conf file:
mfschunkserver_enable="YES"
************************************************************************

View File

@ -0,0 +1,12 @@
************************************************************************
A startup script has been installed as:
%%PREFIX%%/etc/rc.d/mfsmaster
Use it to start/stop the mfsmaster service after you have added
the following line to your rc.conf file:
mfsmaster_enable="YES"
************************************************************************

View File

@ -0,0 +1,12 @@
************************************************************************
A startup script has been installed as:
%%PREFIX%%/etc/rc.d/mfsmetalogger
Use it to start/stop the mfsmetalogger service after you have added
the following line to your rc.conf file:
mfsmetalogger_enable="YES"
************************************************************************

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS master (metadata) server.
WWW: https://moosefs.com/

View File

@ -0,0 +1,18 @@
@sample etc/mfs/mfsmaster.cfg.sample
@sample etc/mfs/mfsexports.cfg.sample
@sample etc/mfs/mfstopology.cfg.sample
sbin/mfsmaster
sbin/mfsmetadump
sbin/mfsmetarestore
sbin/mfsstatsdump
man/man5/mfsexports.cfg.5.gz
man/man5/mfsmaster.cfg.5.gz
man/man5/mfstopology.cfg.5.gz
man/man8/mfsmaster.8.gz
man/man8/mfsmetarestore.8.gz
man/man8/mfsmetadump.8.gz
man/man8/mfsstatsdump.8.gz
@owner mfs
@group mfs
@dir %%MFS_WORKDIR%%/mfs
%%MFS_WORKDIR%%/mfs/metadata.mfs.empty

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -metalogger
COMMENT= MooseFS metadata backup server
LICENSE= GPLv2
MFS_COMPONENT= metalogger
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS metalogger (metadata replication) server.
WWW: https://moosefs.com/

View File

@ -0,0 +1,7 @@
@sample etc/mfs/mfsmetalogger.cfg.sample
sbin/mfsmetalogger
man/man5/mfsmetalogger.cfg.5.gz
man/man8/mfsmetalogger.8.gz
@owner mfs
@group mfs
@dir %%MFS_WORKDIR%%/mfs

View File

@ -0,0 +1,14 @@
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$
PKGNAMESUFFIX= -netdump
COMMENT= MooseFS network packet dump utility
LICENSE= GPLv2
MFS_COMPONENT= netdump
MASTERDIR= ${.CURDIR}/../moosefs3-master
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,9 @@
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
network distributed file system. It spreads data over several physical commodity
servers, which are visible to the user as one resource.
For standard file operations MooseFS acts like any other Unix-like file system.
This port provides: MooseFS network packet dump utility
WWW: https://moosefs.com/

View File

@ -0,0 +1,2 @@
sbin/mfsnetdump
man/man8/mfsnetdump.8.gz