Lines 2-47
Link Here
|
2 |
# $FreeBSD: head/sysutils/moosefs-chunkserver/Makefile 327772 2013-09-20 23:05:58Z bapt $ |
2 |
# $FreeBSD: head/sysutils/moosefs-chunkserver/Makefile 327772 2013-09-20 23:05:58Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= moosefs |
4 |
PORTNAME= moosefs |
5 |
PORTVERSION= # |
5 |
DISTVERSION= 1.6.27-5 |
6 |
CATEGORIES= sysutils |
6 |
CATEGORIES= sysutils |
|
|
7 |
MASTER_SITES= http://www.moosefs.org/tl_files/mfscode/ \ |
8 |
http://ports.quxingwen.com/dist/mfs/ |
7 |
PKGNAMESUFFIX= -chunkserver |
9 |
PKGNAMESUFFIX= -chunkserver |
8 |
NO_STAGE= yes |
10 |
DISTNAME= mfs-${DISTVERSION} |
9 |
.include "${.CURDIR}/../moosefs-master/bsd.port.moosefs.mk" |
|
|
10 |
|
11 |
|
11 |
MAINTAINER= chifeng@gmail.com |
12 |
MAINTAINER= chifeng@gmail.com |
12 |
COMMENT= Storing files data and synchronizing it among themselves |
13 |
COMMENT= Storing files data and synchronizing it among themselves |
13 |
|
14 |
|
14 |
DISTINFO_FILE= ${.CURDIR}/../moosefs-master/distinfo |
15 |
LICENSE= GPLv3 |
15 |
USE_RC_SUBR= mfschunkserver |
16 |
|
|
|
17 |
WRKSRC= ${WRKDIR}/mfs-1.6.27 |
18 |
USERS= mfs |
19 |
GROUPS= mfs |
20 |
GNU_CONFIGURE= yes |
16 |
|
21 |
|
17 |
MAN5= mfschunkserver.cfg.5 mfshdd.cfg.5 |
22 |
USE_RC_SUBR= mfschunkserver |
18 |
MAN8= mfschunkserver.8 |
|
|
19 |
|
23 |
|
20 |
SUB_FILES+= pkg-message pkg-deinstall |
24 |
SUB_FILES= pkg-message |
21 |
SUB_LIST+= MFS_WORKDIR="${MFS_WORKDIR}" |
|
|
22 |
|
25 |
|
23 |
CONFIGURE_ARGS= --localstatedir=${MFS_WORKDIR} \ |
26 |
CONFIGURE_ARGS= --localstatedir=/var \ |
24 |
--bindir=${PREFIX}/sbin \ |
27 |
--enable-mfschunkserver \ |
25 |
--with-default-user=${MFSUSER} \ |
|
|
26 |
--with-default-group=${MFSGROUP} \ |
27 |
--disable-mfsmaster \ |
28 |
--disable-mfsmaster \ |
28 |
--disable-mfsmount \ |
29 |
--disable-mfsmount \ |
29 |
--disable-mfscgi \ |
30 |
--disable-mfscgi \ |
30 |
--disable-mfscgiserv \ |
31 |
--disable-mfscgiserv \ |
31 |
--enable-mfschunkserver |
32 |
--bindir=${PREFIX}/sbin \ |
32 |
|
33 |
--with-default-user=mfs \ |
33 |
.include <bsd.port.pre.mk> |
34 |
--with-default-group=mfs |
34 |
|
35 |
|
35 |
post-patch: |
36 |
post-patch: |
36 |
${REINPLACE_CMD} -e 's;^general_mans;#general_mans;g' ${WRKSRC}/doc/Makefile.am \ |
37 |
${REINPLACE_CMD} -e 's;^general_mans;#general_mans;g' ${WRKSRC}/doc/Makefile.am \ |
37 |
${WRKSRC}/doc/Makefile.in |
38 |
${WRKSRC}/doc/Makefile.in |
38 |
|
39 |
|
39 |
post-install: |
40 |
.include <bsd.port.mk> |
40 |
.for FILE in mfschunkserver mfshdd |
|
|
41 |
@if [ ! -f ${PREFIX}/etc/${i}.cfg ]; then \ |
42 |
${CP} ${PREFIX}/etc/mfs/${FILE}.cfg.dist ${PREFIX}/etc/${FILE}.cfg ; \ |
43 |
fi |
44 |
.endfor |
45 |
@${CAT} ${PKGMESSAGE} |
46 |
|
47 |
.include <bsd.port.post.mk> |