From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 3 11:30:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E4EA63B1 for ; Mon, 3 Feb 2014 11:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC67D1D90 for ; Mon, 3 Feb 2014 11:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s13BU04L031200 for ; Mon, 3 Feb 2014 11:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s13BU0Sa031199; Mon, 3 Feb 2014 11:30:00 GMT (envelope-from gnats) Resent-Date: Mon, 3 Feb 2014 11:30:00 GMT Resent-Message-Id: <201402031130.s13BU0Sa031199@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, l_fs Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5A0BB3A0 for ; Mon, 3 Feb 2014 11:28:37 +0000 (UTC) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E42631D87 for ; Mon, 3 Feb 2014 11:28:36 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id y10so11785392wgg.22 for ; Mon, 03 Feb 2014 03:28:29 -0800 (PST) Received: from smtp.gmail.com:587 (85-170-116-133.rev.numericable.fr. [85.170.116.133]) by mx.google.com with ESMTPSA id q5sm24429402wia.2.2014.02.03.02.26.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Feb 2014 02:26:28 -0800 (PST) Received: by smtp.gmail.com:587 (sSMTP sendmail emulation); Mon, 03 Feb 2014 10:26:25 +0100 Message-Id: <52ef6ed4.6508b40a.4487.60b5@mx.google.com> Date: Mon, 03 Feb 2014 10:26:25 +0100 From: l_fs To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/186404: Fix default conf path for MooseFS-Master Cc: loic@findspire.com X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: l_fs List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 11:30:01 -0000 >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 --- port.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: