Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2015 23:34:55 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399630 - in head/net-mgmt/net-snmp: . files
Message-ID:  <201510182334.t9INYtQT051735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Sun Oct 18 23:34:54 2015
New Revision: 399630
URL: https://svnweb.freebsd.org/changeset/ports/399630

Log:
  - Add newsyslog rotation configuration for /var/log/snmpd.log
  - Bump PORTREVISION
  
  Submitted by:	Jan Joris Vereijken <janjoris@acm.org>

Added:
  head/net-mgmt/net-snmp/files/net-snmp.conf   (contents, props changed)
Modified:
  head/net-mgmt/net-snmp/Makefile
  head/net-mgmt/net-snmp/pkg-plist

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Sun Oct 18 23:31:15 2015	(r399629)
+++ head/net-mgmt/net-snmp/Makefile	Sun Oct 18 23:34:54 2015	(r399630)
@@ -3,7 +3,7 @@
 
 PORTNAME=	snmp
 PORTVERSION=	5.7.3
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	net-mgmt ipv6
 MASTER_SITES=	SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	net-
@@ -274,12 +274,13 @@ post-build:
 .endif
 
 post-install: strip-files install-config-files install-doc-files
-	@${MKDIR} ${STAGEDIR}/var/agentx
+	@${MKDIR} ${STAGEDIR}/var/agentx ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
 	@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libnetsnmp.so.${SHLIB_VERSION} libnetsnmp.so)
 	@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libnetsnmpagent.so.${SHLIB_VERSION} libnetsnmpagent.so)
 	@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libnetsnmphelpers.so.${SHLIB_VERSION} libnetsnmphelpers.so)
 	@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libnetsnmpmibs.so.${SHLIB_VERSION} libnetsnmpmibs.so)
 	@(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libnetsnmptrapd.so.${SHLIB_VERSION} libnetsnmptrapd.so)
+	${INSTALL_DATA} ${FILESDIR}/net-snmp.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/
 
 strip-files:
 	(cd ${STAGEDIR}${PREFIX}/bin; ${STRIP_CMD} ${BIN_FILES})

Added: head/net-mgmt/net-snmp/files/net-snmp.conf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/net-snmp/files/net-snmp.conf	Sun Oct 18 23:34:54 2015	(r399630)
@@ -0,0 +1,6 @@
+# configuration file for newsyslog for net-snmp
+#
+# see newsyslog.conf(5) for details
+#
+# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
+/var/log/snmpd.log     			644  7	   100	*     J	    /var/run/net_snmpd.pid

Modified: head/net-mgmt/net-snmp/pkg-plist
==============================================================================
--- head/net-mgmt/net-snmp/pkg-plist	Sun Oct 18 23:31:15 2015	(r399629)
+++ head/net-mgmt/net-snmp/pkg-plist	Sun Oct 18 23:34:54 2015	(r399630)
@@ -29,6 +29,7 @@ bin/snmpvacm
 bin/snmpwalk
 %%WITH_TKMIB%%bin/tkmib
 bin/traptoemail
+etc/newsyslog.conf.d/net-snmp.conf
 include/net-snmp/agent/agent_callbacks.h
 include/net-snmp/agent/agent_handler.h
 include/net-snmp/agent/agent_index.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510182334.t9INYtQT051735>