From owner-svn-ports-all@freebsd.org Mon Feb 22 20:13:03 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32738AB1DB1; Mon, 22 Feb 2016 20:13:03 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA72C1876; Mon, 22 Feb 2016 20:13:02 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1MKD1L3088127; Mon, 22 Feb 2016 20:13:01 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1MKD1AB088124; Mon, 22 Feb 2016 20:13:01 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201602222013.u1MKD1AB088124@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 22 Feb 2016 20:13:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409369 - in head/databases/opentsdb: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 20:13:03 -0000 Author: mat Date: Mon Feb 22 20:13:01 2016 New Revision: 409369 URL: https://svnweb.freebsd.org/changeset/ports/409369 Log: Fix build as a user. Again. While there, make the port prefix safe, again. Sponsored by: Absolight Modified: head/databases/opentsdb/Makefile head/databases/opentsdb/files/patch-Makefile.in head/databases/opentsdb/files/patch-src_utils_Config.java Modified: head/databases/opentsdb/Makefile ============================================================================== --- head/databases/opentsdb/Makefile Mon Feb 22 20:04:37 2016 (r409368) +++ head/databases/opentsdb/Makefile Mon Feb 22 20:13:01 2016 (r409369) @@ -3,6 +3,7 @@ PORTNAME= opentsdb PORTVERSION= 2.2.0 +PORTREVISION= 1 CATEGORIES= databases java MASTER_SITES= https://github.com/OpenTSDB/opentsdb/releases/download/v${PORTVERSION}/ Modified: head/databases/opentsdb/files/patch-Makefile.in ============================================================================== --- head/databases/opentsdb/files/patch-Makefile.in Mon Feb 22 20:04:37 2016 (r409368) +++ head/databases/opentsdb/files/patch-Makefile.in Mon Feb 22 20:13:01 2016 (r409369) @@ -1,6 +1,19 @@ ---- Makefile.in.orig 2016-02-17 17:48:38 UTC +The first hunk is to allow building as a user. +Do not remove it unless it really builds as a user. + +--- Makefile.in.orig 2016-02-15 22:38:55 UTC +++ Makefile.in -@@ -1562,7 +1562,7 @@ gwttsd: staticroot +@@ -1511,7 +1511,9 @@ printdeps: + install-exec-hook: + script=tsdb; pkgdatadir='$(pkgdatadir)'; configdir='$(sysconfigdir)/etc/opentsdb'; \ + abs_srcdir=''; abs_builddir=''; $(edit_tsdb_script) ++ chmod u+w "$(DESTDIR)$(bindir)/tsdb" + cat tsdb.tmp >"$(DESTDIR)$(bindir)/tsdb" ++ chmod u-w "$(DESTDIR)$(bindir)/tsdb" + rm -f tsdb.tmp + + $(builddata_SRC): .git/HEAD $(tsdb_SRC) $(top_srcdir)/build-aux/gen_build_data.sh +@@ -1562,7 +1564,7 @@ gwttsd: staticroot # how to tell it to install a bunch of files recursively for which I don't # know ahead of time what the file names are. install-data-local: staticroot install-data-lib install-data-tools \ Modified: head/databases/opentsdb/files/patch-src_utils_Config.java ============================================================================== --- head/databases/opentsdb/files/patch-src_utils_Config.java Mon Feb 22 20:04:37 2016 (r409368) +++ head/databases/opentsdb/files/patch-src_utils_Config.java Mon Feb 22 20:13:01 2016 (r409369) @@ -4,7 +4,7 @@ } else { file_locations.add("/etc/opentsdb.conf"); file_locations.add("/etc/opentsdb/opentsdb.conf"); -+ file_locations.add("/usr/local/etc/opentsdb/opentsdb.conf"); ++ file_locations.add("%%PREFIX%%/etc/opentsdb/opentsdb.conf"); file_locations.add("/opt/opentsdb/opentsdb.conf"); }