summaryrefslogtreecommitdiff
path: root/sysutils/moosefs-chunkserver/Makefile
blob: 44cc5c4f12cc9dc69b07bdc723309d761aa8a0c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Chifeng Qu <chifeng@gmail.com>
# $FreeBSD$

PORTNAME=	moosefs
PORTVERSION=	#
CATEGORIES=	sysutils
PKGNAMESUFFIX=	-chunkserver
NO_STAGE=	yes
.include "${.CURDIR}/../moosefs-master/bsd.port.moosefs.mk"

MAINTAINER=	chifeng@gmail.com
COMMENT=	Storing files data and synchronizing it among themselves

DISTINFO_FILE=	${.CURDIR}/../moosefs-master/distinfo
USE_RC_SUBR=	mfschunkserver

MAN5=		mfschunkserver.cfg.5 mfshdd.cfg.5
MAN8=		mfschunkserver.8

SUB_FILES+=	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 <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/mfs/${FILE}.cfg.dist ${PREFIX}/etc/${FILE}.cfg ; \
	fi
.endfor
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>