ports/186404: Fix default conf path for MooseFS-Master

l_fs loic at findspire.com
Mon Feb 3 11:30:01 UTC 2014


>Number:         186404
>Category:       ports
>Synopsis:       Fix default conf path for MooseFS-Master
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 03 11:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     L. Tosser
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
Findspire
>Environment:
System: FreeBSD poudriere.findspire.com 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
The default path of conf files was bad in the Makefile : /usr/local/etc/ instead of /usr/local/etc/mfs/ , and I add the automatic copy, with a security check, from /var/mfs/metadata.mfs.empty to /var/mfs/metadat.mfs
>How-To-Repeat:
cd /usr/ports/sysutils/moosefs-master && make install && mfsmaster
>Fix:

--- port.diff begins here ---
--- Makefile.old	2014-01-26 15:04:15.000000000 +0100
+++ Makefile	2014-02-03 10:12:44.000000000 +0100
@@ -38,12 +38,13 @@
 
 post-install:
 .for FILE in mfsmaster mfsexports mfsmetalogger mfstopology
-	@if [ ! -f ${PREFIX}/etc/${FILE}.cfg ]; then \
-		${CP} ${PREFIX}/etc/mfs/${FILE}.cfg.dist ${PREFIX}/etc/${FILE}.cfg ; \
+	@if [ ! -f ${PREFIX}/etc/mfs/${FILE}.cfg ]; then \
+		${CP} ${PREFIX}/etc/mfs/${FILE}.cfg.dist ${PREFIX}/etc/mfs/${FILE}.cfg ; \
 	fi
 .endfor
-
+	@if [ ! -f ${MFS_WORDIR}/mfs/metadata.mfs ]; then \
+		${CP} ${MFS_WORKDIR}/mfs/metadata.mfs.empty ${MFS_WORKDIR}/mfs/metadata.mfs ; \
+	fi
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 	@${CAT} ${PKGMESSAGE}
-
 .include <bsd.port.post.mk>
--- port.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list