aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-05-22 21:59:00 +0800
committerSteve Wills <swills@FreeBSD.org>2018-05-22 21:59:00 +0800
commitb6942f187aa8d31651e0418eb905f5ff9aa9e3e9 (patch)
tree71c22c3f3a920d1473a3b022223e11f8cfaa002b
parent51296333c5c02486280d1afb3e1864627691d21b (diff)
downloadfreebsd-ports-b6942f187aa8d31651e0418eb905f5ff9aa9e3e9.tar.gz
freebsd-ports-b6942f187aa8d31651e0418eb905f5ff9aa9e3e9.tar.zst
freebsd-ports-b6942f187aa8d31651e0418eb905f5ff9aa9e3e9.zip
MFH: r470608
sysutils/py-google-compute-engine: Fixes agent logging to syslog (console) PR: 228411 Submitted by: Helen Koike <helen.koike@collabora.com> (maintainer) Approved by: ports-secteam (implicit)
Notes
Notes: svn path=/branches/2018Q2/; revision=470616
-rw-r--r--sysutils/py-google-compute-engine/Makefile6
-rw-r--r--sysutils/py-google-compute-engine/files/90-google.conf.sample7
-rw-r--r--sysutils/py-google-compute-engine/pkg-plist1
3 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/py-google-compute-engine/Makefile b/sysutils/py-google-compute-engine/Makefile
index 9f41130263fd..1c1b4d218765 100644
--- a/sysutils/py-google-compute-engine/Makefile
+++ b/sysutils/py-google-compute-engine/Makefile
@@ -2,7 +2,7 @@
PORTNAME= google-compute-engine
DISTVERSION= 2.7.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -34,7 +34,11 @@ SUB_LIST= PYTHON_CMD="${PYTHON_CMD}"
REINPLACE_ARGS= -i ''
post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/syslog.d
${INSTALL_DATA} ${FILESDIR}/instance_configs.cfg.distro.sample \
${STAGEDIR}${PREFIX}/etc/instance_configs.cfg.distro.sample
+ ${INSTALL_DATA} ${FILESDIR}/90-google.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc/syslog.d/90-google.conf.sample
+
.include <bsd.port.mk>
diff --git a/sysutils/py-google-compute-engine/files/90-google.conf.sample b/sysutils/py-google-compute-engine/files/90-google.conf.sample
new file mode 100644
index 000000000000..97f52ff3edca
--- /dev/null
+++ b/sysutils/py-google-compute-engine/files/90-google.conf.sample
@@ -0,0 +1,7 @@
+# $FreeBSD$
+# Google Compute Engine default console logging.
+#
+# daemon: logging from Google provided daemons.
+# kern: logging information in case of an unexpected crash during boot.
+#
+daemon,kern.* /dev/console
diff --git a/sysutils/py-google-compute-engine/pkg-plist b/sysutils/py-google-compute-engine/pkg-plist
index 5ca34a24cbd9..3c25a00cd2a6 100644
--- a/sysutils/py-google-compute-engine/pkg-plist
+++ b/sysutils/py-google-compute-engine/pkg-plist
@@ -1 +1,2 @@
@sample etc/instance_configs.cfg.distro.sample
+@sample etc/syslog.d/90-google.conf.sample