From kimura@sh0.radio.gr.jp  Sun Oct 17 03:23:55 2004
Return-Path: <kimura@sh0.radio.gr.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id A5E7516A4CE; Sun, 17 Oct 2004 03:23:55 +0000 (GMT)
Received: from sh0.radio.gr.jp (sh0.radio.gr.jp [61.195.157.54])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 38A8543D31; Sun, 17 Oct 2004 03:23:55 +0000 (GMT)
	(envelope-from kimura@sh0.radio.gr.jp)
Received: by sh0.radio.gr.jp (secret 10.0/smtpfeed 1.20)
        id i9H3NrjG042141; Sun, 17 Oct 2004 12:23:53 +0900 (JST)
Received: by sh0.radio.gr.jp (secret/fkimura 9.0)
	id i9H3Nq97042140; Sun, 17 Oct 2004 12:23:52 +0900 (JST)
Message-Id: <200410170323.i9H3Nq97042140@sh0.radio.gr.jp>
Date: Sun, 17 Oct 2004 12:23:52 +0900 (JST)
From: Fumihiko Kimura <jfkimura@yahoo.co.jp>
Reply-To: Fumihiko Kimura <jfkimura@yahoo.co.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jfkimura@yahoo.co.jp, kuriyama@freebsd.org
Subject: update ports: net-mgmt/net-snmp
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72779
>Category:       ports
>Synopsis:       update ports: net-mgmt/net-snmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 17 03:30:29 GMT 2004
>Closed-Date:    Mon Nov 29 04:10:14 GMT 2004
>Last-Modified:  Mon Nov 29 04:10:14 GMT 2004
>Originator:     Fumihiko Kimura
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
>Description:

(Cc MAINTAINER)

A warning message was displayed.
In addition, a sample file of a setting file hopes for a thing in DATADIR.

My suggestion is the following particulars which changed each file.
	- pkg-messages
	- leave sample file  to  DATADIR
	- pkg-plist
 
>How-To-Repeat:

I referred to pkg-messages, and I set it, but the following messages were displayed.

	Warning: -s option is deprecated; use -Lsd instead

>Fix:

=== begin  cut here ===
diff -urN net-snmp-orig/Makefile net-snmp/Makefile
--- net-snmp-orig/Makefile	Mon Sep  6 05:46:36 2004
+++ net-snmp/Makefile	Sun Oct 17 11:54:27 2004
@@ -238,7 +238,7 @@
 		'
 .endif
 
-post-install: strip-files install-startup-files install-doc-files display-message
+post-install: strip-files install-startup-files install-config-files install-doc-files display-message
 
 strip-files:
 	@cd ${PREFIX}/bin; ${STRIP_CMD} ${BIN_FILES}
@@ -248,6 +248,9 @@
 .for file in ${STARTUP_FILES}
 	@${INSTALL_SCRIPT} ${WRKDIR}/${file} ${STARTUP_DIR}
 .endfor
+
+install-config-files:
+	@${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${DATADIR}/snmpd.conf.example
 
 install-doc-files:
 .if !defined(NOPORTDOCS)
diff -urN net-snmp-orig/pkg-message net-snmp/pkg-message
--- net-snmp-orig/pkg-message	Thu Mar 11 06:34:04 2004
+++ net-snmp/pkg-message	Sun Oct 17 11:26:21 2004
@@ -4,9 +4,9 @@
      lines into /etc/rc.conf.
 
 	snmpd_enable="YES"
-	snmpd_flags="-as -p /var/run/snmpd.pid"
+	snmpd_flags="-a -p /var/run/snmpd.pid"
 	snmptrapd_enable="YES"
-	snmptrapd_flags="-as -p /var/run/snmptrapd.pid"
+	snmptrapd_flags="-a -p /var/run/snmptrapd.pid"
 
 **** You may specify the following make variables:
 
diff -urN net-snmp-orig/pkg-plist net-snmp/pkg-plist
--- net-snmp-orig/pkg-plist	Mon Sep  6 05:46:36 2004
+++ net-snmp/pkg-plist	Sun Oct 17 11:56:38 2004
@@ -222,6 +222,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/README.snmpv3
 %%PORTDOCS%%%%DOCSDIR%%/README.thread
 %%PORTDOCS%%%%DOCSDIR%%/README.smux
+%%DATADIR%%/snmpd.conf.example
 %%DATADIR%%/mib2c.access_functions.conf
 %%DATADIR%%/mib2c.array-user.conf
 %%DATADIR%%/mib2c.check_values.conf
=== ended  cut here ===

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Oct 17 03:53:18 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72779 
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Mon Nov 29 04:10:03 GMT 2004 
State-Changed-Why:  
Fix committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72779 
>Unformatted:
