1 | --- _orig/net/net-snmp/Portfile 2014-03-01 02:30:23.000000000 -0500 |
---|
2 | +++ net/net-snmp/Portfile 2014-03-31 14:19:17.000000000 -0400 |
---|
3 | @@ -4,8 +4,8 @@ |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name net-snmp |
---|
7 | -version 5.7.2 |
---|
8 | -revision 2 |
---|
9 | +version 5.7.2.1 |
---|
10 | +revision 0 |
---|
11 | categories net |
---|
12 | license BSD |
---|
13 | platforms darwin |
---|
14 | @@ -23,8 +23,8 @@ |
---|
15 | handle SNMP traps, a version of the unix 'netstat' \ |
---|
16 | command using SNMP, a Tk/perl MIB browser. |
---|
17 | |
---|
18 | -checksums rmd160 392d643e9f2f42ee4fa688b4702329ad005ee12e \ |
---|
19 | - sha256 09ed31b4cc1f3c0411ef9a16eff79ef3b30d89c32ca46d5a01a41826c4ceb816 |
---|
20 | +checksums rmd160 129b74e70a5027749c766ea9cdb53a3c4a3cf40b \ |
---|
21 | + sha256 35dd20a2b17849f6d5a0a6109b4f52c1a777a3e1a00c79c4a175c520d23f3497 |
---|
22 | |
---|
23 | post-extract { |
---|
24 | # darwin13.h does not exist in 5.7.2 |
---|
25 | @@ -34,7 +34,7 @@ |
---|
26 | |
---|
27 | patchfiles patch-configure.diff |
---|
28 | patchfiles-append patch-include-net-snmp-system-darwin13.h.diff |
---|
29 | -patchfiles-append patch-5.7.2.1.diff |
---|
30 | +#patchfiles-append patch-5.7.2.1.diff |
---|
31 | |
---|
32 | depends_lib port:openssl \ |
---|
33 | port:zlib \ |
---|
34 | @@ -71,9 +71,19 @@ |
---|
35 | configure.args-delete --disable-agent |
---|
36 | |
---|
37 | startupitem.create yes |
---|
38 | - startupitem.name NetSNMP |
---|
39 | - startupitem.start "echo \"NOT starting (net-)snmpd, no real startup item yet\"" |
---|
40 | - startupitem.stop "echo \"NOT stopping (net-)snmpd, no real startup item yet\"" |
---|
41 | + startupitem.executable ${prefix}/sbin/snmpd -c ${prefix}/etc/snmpd.conf -p ${prefix}/var/run/snmpd.pid -f 127.0.0.1 |
---|
42 | + startupitem.pidfile ${prefix}/var/run/snmpd.pid |
---|
43 | + |
---|
44 | +notes-append " |
---|
45 | +To finish configuring snmp server |
---|
46 | + # ${prefix}/bin/snmpconf -g basic_setup |
---|
47 | + # mv snmpd.conf ${prefix}/etc/ |
---|
48 | + $ sudo port load net-snmp |
---|
49 | +By default, the startupitem is configured to only listen on loopback. |
---|
50 | + |
---|
51 | +Check it with |
---|
52 | + $ snmpwalk -v2c -c 'your-community-string' 127.0.0.1 system |
---|
53 | +" |
---|
54 | } |
---|
55 | |
---|
56 | variant ksm description {support for kerberos based SNMP security} { |
---|