diff options
author | zi <zi@FreeBSD.org> | 2015-10-18 23:34:54 +0000 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2015-10-18 23:34:54 +0000 |
commit | e9cde8f91a2d16fee7f593ee9176e5b3fcc587af (patch) | |
tree | 1b2507c84026598d1a9e4cd430e58e65c22fdb4a | |
parent | 1d8244e6d126671465c00aed087fd505db9a4c32 (diff) | |
download | FreeBSD-ports-e9cde8f91a2d16fee7f593ee9176e5b3fcc587af.zip FreeBSD-ports-e9cde8f91a2d16fee7f593ee9176e5b3fcc587af.tar.gz |
- Add newsyslog rotation configuration for /var/log/snmpd.log
- Bump PORTREVISION
Submitted by: Jan Joris Vereijken <janjoris@acm.org>
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 5 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/net-snmp.conf | 6 | ||||
-rw-r--r-- | net-mgmt/net-snmp/pkg-plist | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 11b9718..9958573 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -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}) diff --git a/net-mgmt/net-snmp/files/net-snmp.conf b/net-mgmt/net-snmp/files/net-snmp.conf new file mode 100644 index 0000000..926d513 --- /dev/null +++ b/net-mgmt/net-snmp/files/net-snmp.conf @@ -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 diff --git a/net-mgmt/net-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist index b1e9227..6901e24 100644 --- a/net-mgmt/net-snmp/pkg-plist +++ b/net-mgmt/net-snmp/pkg-plist @@ -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 |