From owner-svn-ports-all@freebsd.org Tue Oct 18 18:08:34 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 4F26EC17ED8; Tue, 18 Oct 2016 18:08:34 +0000 (UTC) (envelope-from pi@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 1083E771; Tue, 18 Oct 2016 18:08:33 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9II8XEg011189; Tue, 18 Oct 2016 18:08:33 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9II8WXZ011186; Tue, 18 Oct 2016 18:08:32 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201610181808.u9II8WXZ011186@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Tue, 18 Oct 2016 18:08:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424194 - in head/net-mgmt/prometheus: . 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.23 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: Tue, 18 Oct 2016 18:08:34 -0000 Author: pi Date: Tue Oct 18 18:08:32 2016 New Revision: 424194 URL: https://svnweb.freebsd.org/changeset/ports/424194 Log: sysutils/prometheus: Fix some issues discussed in PRs - the config file is now a @sample - pkg-plist added - /var/db/prometheus is the new place to be PR: 210059 Submitted by: Andy Carrel Approved by: jev@ecadlabs.com (maintainer) Added: head/net-mgmt/prometheus/pkg-plist (contents, props changed) Modified: head/net-mgmt/prometheus/Makefile head/net-mgmt/prometheus/files/prometheus.in Modified: head/net-mgmt/prometheus/Makefile ============================================================================== --- head/net-mgmt/prometheus/Makefile Tue Oct 18 18:04:28 2016 (r424193) +++ head/net-mgmt/prometheus/Makefile Tue Oct 18 18:08:32 2016 (r424194) @@ -3,6 +3,7 @@ PORTNAME= prometheus PORTVERSION= 1.2.1 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= net-mgmt @@ -16,10 +17,6 @@ USE_GITHUB= yes GO_PKGNAME= github.com/${PORTNAME}/${PORTNAME} -PLIST_FILES= bin/prometheus \ - bin/promtool \ - etc/prometheus.yml - USE_RC_SUBR= prometheus USERS= prometheus @@ -31,9 +28,12 @@ do-build: (cd ${GO_WRKSRC}/cmd/prometheus ; ${SETENV} ${GO_ENV} go install) (cd ${GO_WRKSRC}/cmd/promtool ; ${SETENV} ${GO_ENV} go install) +post-stage: + ${MKDIR} ${STAGEDIR}${DESTDIR}/var/db/prometheus + do-install: ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/prometheus ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/promtool ${STAGEDIR}${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/documentation/examples/prometheus.yml ${STAGEDIR}${LOCALBASE}/etc + ${INSTALL_DATA} ${WRKSRC}/documentation/examples/prometheus.yml ${STAGEDIR}${LOCALBASE}/etc/prometheus.yml.sample .include Modified: head/net-mgmt/prometheus/files/prometheus.in ============================================================================== --- head/net-mgmt/prometheus/files/prometheus.in Tue Oct 18 18:04:28 2016 (r424193) +++ head/net-mgmt/prometheus/files/prometheus.in Tue Oct 18 18:08:32 2016 (r424194) @@ -14,7 +14,7 @@ # prometheus_group (string): Set group to run prometheus # Default is "prometheus" # prometheus_data_dir (string): Set dir to run prometheus in -# Default is "/var/tmp/prometheus" +# Default is "/var/db/prometheus" # prometheus_log_file (string): Set file that prometheus will log to # Default is "/var/log/prometheus.log" # prometheus_args (string): Set additional command line arguments Added: head/net-mgmt/prometheus/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/prometheus/pkg-plist Tue Oct 18 18:08:32 2016 (r424194) @@ -0,0 +1,4 @@ +bin/prometheus +bin/promtool +@sample etc/prometheus.yml.sample +@dir(prometheus,prometheus) /var/db/prometheus