Date: Mon, 03 Feb 2014 10:26:25 +0100 From: l_fs <loic@findspire.com> To: FreeBSD-gnats-submit@freebsd.org Cc: loic@findspire.com Subject: ports/186404: Fix default conf path for MooseFS-Master Message-ID: <52ef6ed4.6508b40a.4487.60b5@mx.google.com> Resent-Message-ID: <201402031130.s13BU0Sa031199@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52ef6ed4.6508b40a.4487.60b5>