aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/prometheus2
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-10-31 01:44:04 +0000
committerSteve Wills <swills@FreeBSD.org>2018-10-31 01:44:04 +0000
commit6f7d0f2b3aa1a57552c4ef8f09df453005a70d99 (patch)
tree337621ac057269d147b68c15e5d2eee59315a526 /net-mgmt/prometheus2
parent23d61defddc7e30fc07b0007a1fe4df4a2b56438 (diff)
downloadports-6f7d0f2b3aa1a57552c4ef8f09df453005a70d99.tar.gz
ports-6f7d0f2b3aa1a57552c4ef8f09df453005a70d99.zip
net-mgmt/prometheus2: Remove syslog and newsyslog config files
While here, pet portlint PR: 232813 Submitted by: David O'Rourke <dor.bsd@xm0.uk> (maintainer)
Notes
Notes: svn path=/head/; revision=483541
Diffstat (limited to 'net-mgmt/prometheus2')
-rw-r--r--net-mgmt/prometheus2/Makefile20
-rw-r--r--net-mgmt/prometheus2/files/newsyslog.conf.in6
-rw-r--r--net-mgmt/prometheus2/files/syslog.d.conf.in5
-rw-r--r--net-mgmt/prometheus2/pkg-plist2
4 files changed, 3 insertions, 30 deletions
diff --git a/net-mgmt/prometheus2/Makefile b/net-mgmt/prometheus2/Makefile
index 3549757c4e0c..3dc45e54d467 100644
--- a/net-mgmt/prometheus2/Makefile
+++ b/net-mgmt/prometheus2/Makefile
@@ -3,6 +3,7 @@
PORTNAME= prometheus
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.3
+PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= dor.bsd@xm0.uk
@@ -12,14 +13,10 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go gmake
-GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
USE_GITHUB= yes
USE_RC_SUBR= prometheus
-OPTIONS_DEFINE= USE_SYSLOG
-OPTIONS_DEFAULT= USE_SYSLOG
-USE_SYSLOG_DESC= Install configuration files for syslog and newsyslog
-OPTIONS_SUB= yes
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
PROMETHEUS_USER?= prometheus
PROMETHEUS_GROUP?= prometheus
@@ -35,9 +32,7 @@ PROMETHEUS_DB_DIR= /var/db/${PORTNAME}
PROMETHEUS_LOG_DIR= /var/log/prometheus
PROMETHEUS_LOG_FILE= ${PROMETHEUS_LOG_DIR}/prometheus.log
-SUB_FILES= prometheus \
- newsyslog.conf \
- syslog.d.conf
+SUB_FILES= prometheus
SUB_LIST+= PROMETHEUS_USER=${PROMETHEUS_USER} \
PROMETHEUS_GROUP=${PROMETHEUS_GROUP} \
@@ -88,13 +83,4 @@ do-install:
&& ${COPYTREE_SHARE} . ${STAGEDIR}${PROMETHEUS_CONSOLES_DIR} \
)
-post-install-USE_SYSLOG-on:
- @${MKDIR} ${STAGEDIR}${ETCDIR}
- ${INSTALL_DATA} \
- ${WRKDIR}/syslog.d.conf \
- ${STAGEDIR}${ETCDIR}/syslog.d.conf.sample
- ${INSTALL_DATA} \
- ${WRKDIR}/newsyslog.conf \
- ${STAGEDIR}${ETCDIR}/newsyslog.conf.sample
-
.include <bsd.port.mk>
diff --git a/net-mgmt/prometheus2/files/newsyslog.conf.in b/net-mgmt/prometheus2/files/newsyslog.conf.in
deleted file mode 100644
index 997171f5e8cd..000000000000
--- a/net-mgmt/prometheus2/files/newsyslog.conf.in
+++ /dev/null
@@ -1,6 +0,0 @@
-# newsyslog(8) file for net-mgmt/prometheus2
-# See newsyslog.conf(5) for details.
-#
-# Log file will be rotated daily, and we'll keep 15 days of logs matching the
-# default Prometheus TSDB retention time.
-%%PROMETHEUS_LOG_FILE%% 640 15 * @T00 JC
diff --git a/net-mgmt/prometheus2/files/syslog.d.conf.in b/net-mgmt/prometheus2/files/syslog.d.conf.in
deleted file mode 100644
index 36f10d3c31bc..000000000000
--- a/net-mgmt/prometheus2/files/syslog.d.conf.in
+++ /dev/null
@@ -1,5 +0,0 @@
-# syslogd(8) configuration file for net-mgmt/prometheus2
-#
-# See syslog.conf(5) for details.
-!prometheus
-daemon.* %%PROMETHEUS_LOG_FILE%%
diff --git a/net-mgmt/prometheus2/pkg-plist b/net-mgmt/prometheus2/pkg-plist
index a82f590dd9d8..9ad268d041aa 100644
--- a/net-mgmt/prometheus2/pkg-plist
+++ b/net-mgmt/prometheus2/pkg-plist
@@ -1,7 +1,5 @@
bin/prometheus
bin/promtool
-%%USE_SYSLOG%%@sample %%ETCDIR%%/newsyslog.conf.sample /etc/newsyslog.conf.d/%%PORTNAME%%.conf
-%%USE_SYSLOG%%@sample %%ETCDIR%%/syslog.d.conf.sample /etc/syslog.d/%%PORTNAME%%.conf
%%PROMETHEUS_CONSOLE_LIBRARIES_DIR%%/menu.lib
%%PROMETHEUS_CONSOLE_LIBRARIES_DIR%%/prom.lib
%%PROMETHEUS_CONSOLES_DIR%%/index.html.example