View | Details | Raw Unified | Return to bug 199342 | Differences between
and this patch

Collapse All | Expand All

(-)moosefs-master/Makefile (-40 / +104 lines)
Lines 1-43 Link Here
1
# Created by: Chifeng Qu <chifeng@gmail.com>
1
# Created by: Jakub Kruszona-Zawadzki <acid@moosefs.com> ; Based on port created by: Chifeng Qu <chifeng@gmail.com>
2
# $FreeBSD: head/sysutils/moosefs-master/Makefile 389104 2015-06-10 17:33:58Z amdmi3 $
2
# $FreeBSD$
3
3
4
PORTNAME=	moosefs
4
PORTNAME=		moosefs
5
DISTVERSION=	1.6.27-5
5
PORTVERSION=		2.0.72
6
CATEGORIES=	sysutils
6
CATEGORIES=		sysutils
7
MASTER_SITES=	http://www.moosefs.org/tl_files/mfscode/ \
7
MASTER_SITES=		http://ppa.moosefs.com/src/
8
		http://ports.quxingwen.com/dist/mfs/
8
PKGNAMESUFFIX?=		-master
9
PKGNAMESUFFIX=	-master
9
DISTNAME=		${PORTNAME}-${PORTVERSION}-1
10
DISTNAME=	mfs-${DISTVERSION}
10
11
11
MAINTAINER=		freebsd@moosefs.com
12
MAINTAINER=	ports@FreeBSD.org
12
COMMENT?=		Managing the whole filesystem and storing metadata
13
COMMENT=	Managing the whole filesystem and storing metadata
13
14
14
LICENSE=		GPLv2
15
LICENSE=	GPLv3
15
16
LICENSE_FILE=	${WRKSRC}/COPYING
16
USES=			python:build
17
17
GNU_CONFIGURE=		yes
18
WRKSRC=		${WRKDIR}/mfs-1.6.27
18
WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}
19
USERS=		mfs
19
PLIST=			${.CURDIR}/pkg-plist
20
GROUPS=		mfs
20
DESCR=			${.CURDIR}/pkg-descr
21
GNU_CONFIGURE=	yes
21
22
USES=		python
22
MFS_COMPONENT?=		master
23
23
MFS_USER=		mfs
24
USE_RC_SUBR=	mfsmaster mfsmetalogger mfscgiserv
24
MFS_GROUP=		mfs
25
SUB_FILES=	pkg-message
25
MFS_WORKDIR=		/var
26
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD}
26
27
27
USERS=			${MFS_USER}
28
CONFIGURE_ARGS=	--localstatedir=/var \
28
GROUPS=			${MFS_GROUP}
29
		--enable-mfsmaster \
29
30
		--enable-mfscgiserv \
30
CONFIGURE_ARGS+=	--localstatedir=${MFS_WORKDIR} \
31
		--enable-mfscgi \
31
			--with-default-user=${MFS_USER} \
32
		--disable-mfschunkserver \
32
			--with-default-group=${MFS_GROUP} \
33
		--disable-mfsmount \
33
34
		--with-default-user=mfs \
34
.if ${MFS_COMPONENT} == cgi
35
		--with-default-group=mfs \
35
MFS_CGIDIR=		${PREFIX}/share/mfscgi
36
		--with-mfscgiserv-dir=${PREFIX}/sbin \
36
USES=			python:2.5+
37
		--with-mfscgi-dir=${PREFIX}/share/mfscgi
37
CONFIGURE_ARGS+=	--enable-mfscgi \
38
38
			--with-mfscgi-dir=${MFS_CGIDIR}
39
post-patch:
39
.else
40
	${REINPLACE_CMD} -e 's|#\!/usr/bin/env python|#\!${PYTHON_CMD}|' \
40
CONFIGURE_ARGS+=	--disable-mfscgi
41
		${WRKSRC}/mfscgi/cgiserv.py.in
41
.endif
42
43
.if ${MFS_COMPONENT} == cgiserv
44
MFS_CGISERVDIR=		${PREFIX}/sbin
45
USES=			python:2.5+
46
USE_RC_SUBR=		mfscgiserv
47
SUB_FILES+=		pkg-message-cgiserv
48
PKGMESSAGE=		${WRKDIR}/pkg-message-cgiserv
49
PLIST_SUB+=		MFS_WORKDIR="${MFS_WORKDIR}"
50
CONFIGURE_ARGS+=	--enable-mfscgiserv \
51
			--with-mfscgiserv-dir=${MFS_CGISERVDIR}
52
RUN_DEPENDS=		moosefs-cgi>0:${PORTSDIR}/sysutils/moosefs-cgi
53
.else
54
CONFIGURE_ARGS+=	--disable-mfscgiserv
55
.endif
56
57
.if ${MFS_COMPONENT} == chunkserver
58
USE_RC_SUBR=		mfschunkserver
59
SUB_FILES+=		pkg-message-chunkserver
60
PKGMESSAGE=		${WRKDIR}/pkg-message-chunkserver
61
PLIST_SUB+=		MFS_WORKDIR="${MFS_WORKDIR}"
62
CONFIGURE_ARGS+=	--enable-mfschunkserver
63
.else
64
CONFIGURE_ARGS+=	--disable-mfschunkserver
65
.endif
66
67
.if ${MFS_COMPONENT} == cli
68
USES=			python:2.5+
69
CONFIGURE_ARGS+=	--enable-mfscli
70
.else
71
CONFIGURE_ARGS+=	--disable-mfscli
72
.endif
73
74
.if ${MFS_COMPONENT} == client
75
USES=			fuse pkgconfig
76
CONFIGURE_ARGS+=	--enable-mfsmount
77
.else
78
CONFIGURE_ARGS+=	--disable-mfsmount
79
.endif
80
81
.if ${MFS_COMPONENT} == master
82
USE_RC_SUBR=		mfsmaster
83
PLIST_SUB+=		MFS_WORKDIR="${MFS_WORKDIR}"
84
SUB_FILES+=		pkg-message-master
85
PKGMESSAGE=		${WRKDIR}/pkg-message-master
86
CONFIGURE_ARGS+=	--enable-mfsmaster
87
.else
88
CONFIGURE_ARGS+=	--disable-mfsmaster
89
.endif
90
91
.if ${MFS_COMPONENT} == metalogger
92
USE_RC_SUBR=		mfsmetalogger
93
SUB_FILES+=		pkg-message-metalogger
94
PKGMESSAGE=		${WRKDIR}/pkg-message-metalogger
95
PLIST_SUB+=		MFS_WORKDIR="${MFS_WORKDIR}"
96
CONFIGURE_ARGS+=	--enable-mfsmetalogger
97
.else
98
CONFIGURE_ARGS+=	--disable-mfsmetalogger
99
.endif
100
101
.if ${MFS_COMPONENT} == netdump
102
CONFIGURE_ARGS+=	--enable-mfsnetdump
103
.else
104
CONFIGURE_ARGS+=	--disable-mfsnetdump
105
.endif
42
106
43
.include <bsd.port.mk>
107
.include <bsd.port.mk>
(-)moosefs-master/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mfs-1.6.27-5.tar.gz) = 5e6d7dd5dfe181ffb6beee44fd2be51b3faf56a71b90b460b2dc717462ff1eeb
1
SHA256 (moosefs-2.0.72-1.tar.gz) = 70811a91d11c9a29b45f83a797acddb15573d7adecfc1ddc991b4e9fe8e97f7b
2
SIZE (mfs-1.6.27-5.tar.gz) = 784507
2
SIZE (moosefs-2.0.72-1.tar.gz) = 958217
(-)moosefs-master/pkg-descr (-7 / +7 lines)
Lines 1-9 Link Here
1
MooseFS is a fault tolerant, network distributed file system.
1
MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out,
2
network distributed file system. It spreads data over several physical commodity
3
servers, which are visible to the user as one resource.
2
4
3
mfsmaster is a single machine managing the whole filesystem,
5
For standard file operations MooseFS acts like any other Unix-like file system.
4
storing metadata for every file (information on size,
5
attributes and file location(s), including all information
6
about non-regular files, i.e. directories, sockets, pipes and
7
devices).
8
6
9
WWW: http://www.moosefs.org/
7
This port provides: MooseFS master (metadata) server.
8
9
WWW: https://moosefs.com/
(-)moosefs-master/pkg-plist (-27 / +14 lines)
Lines 1-34 Link Here
1
@owner mfs
1
@unexec if cmp -s %D/etc/mfs/mfsmaster.cfg.dist %D/etc/mfs/mfsmaster.cfg; then rm -f %D/etc/mfs/mfsmaster.cfg; fi
2
@group mfs
2
@unexec if cmp -s %D/etc/mfs/mfsexports.cfg.dist %D/etc/mfs/mfsexports.cfg; then rm -f %D/etc/mfs/mfsexports.cfg; fi
3
@sample etc/mfs/mfsexports.cfg.sample
3
@unexec if cmp -s %D/etc/mfs/mfstopology.cfg.dist %D/etc/mfs/mfstopology.cfg; then rm -f %D/etc/mfs/mfstopology.cfg; fi
4
@sample etc/mfs/mfsmaster.cfg.sample
4
etc/mfs/mfsmaster.cfg.dist
5
@sample etc/mfs/mfsmetalogger.cfg.sample
5
etc/mfs/mfsexports.cfg.dist
6
@sample etc/mfs/mfstopology.cfg.sample
6
etc/mfs/mfstopology.cfg.dist
7
@owner
7
sbin/mfsmaster
8
@group
8
sbin/mfsmetadump
9
sbin/mfsmetarestore
9
man/man5/mfsexports.cfg.5.gz
10
man/man5/mfsexports.cfg.5.gz
10
man/man5/mfsmaster.cfg.5.gz
11
man/man5/mfsmaster.cfg.5.gz
11
man/man5/mfsmetalogger.cfg.5.gz
12
man/man5/mfstopology.cfg.5.gz
12
man/man5/mfstopology.cfg.5.gz
13
man/man7/mfs.7.gz
14
man/man7/moosefs.7.gz
15
man/man8/mfscgiserv.8.gz
16
man/man8/mfsmaster.8.gz
13
man/man8/mfsmaster.8.gz
17
man/man8/mfsmetalogger.8.gz
18
man/man8/mfsmetarestore.8.gz
14
man/man8/mfsmetarestore.8.gz
19
sbin/mfscgiserv
15
@exec  if [ ! -f %D/etc/mfs/mfsmaster.cfg ]; then /bin/cp %D/etc/mfs/mfsmaster.cfg.dist %D/etc/mfs/mfsmaster.cfg; fi
20
sbin/mfsmaster
16
@exec  if [ ! -f %D/etc/mfs/mfsexports.cfg ]; then /bin/cp %D/etc/mfs/mfsexports.cfg.dist %D/etc/mfs/mfsexports.cfg; fi
21
sbin/mfsmetadump
17
@exec  if [ ! -f %D/etc/mfs/mfstopology.cfg ]; then /bin/cp %D/etc/mfs/mfstopology.cfg.dist %D/etc/mfs/mfstopology.cfg; fi
22
sbin/mfsmetalogger
23
sbin/mfsmetarestore
24
share/mfscgi/chart.cgi
25
share/mfscgi/err.gif
26
share/mfscgi/favicon.ico
27
share/mfscgi/index.html
28
share/mfscgi/logomini.png
29
share/mfscgi/mfs.cgi
30
share/mfscgi/mfs.css
31
@owner mfs
18
@owner mfs
32
@group mfs
19
@group mfs
33
/var/mfs/metadata.mfs.empty
20
@dir %%MFS_WORKDIR%%/mfs
34
@unexec rmdir "/var/mfs" >/dev/null 2>&1 || :
21
%%MFS_WORKDIR%%/mfs/metadata.mfs.empty

Return to bug 199342