Ticket #43009: patch-net-snmp-Portfile.diff

File patch-net-snmp-Portfile.diff, 1.2 KB (added by jul_bsd@…, 10 years ago)
  • net/net-snmp/Portfile

    old new  
    55
    66name                    net-snmp
    77version                 5.7.3
     8revision                1
    89categories              net
    910license                 BSD
    1011platforms               darwin
     
    9293    }
    9394}
    9495
     96install.asroot          yes
     97
     98notes-append "
     99To finish configuring snmp server
     100    # ${prefix}/bin/snmpconf -g basic_setup
     101    # mv snmpd.conf ${prefix}/etc/
     102    $ sudo port load net-snmp
     103
     104Check it with
     105    $ snmpwalk -v2c -c 'your-community-string' 127.0.0.1 system
     106
     107You are advise to use snmp V3 for authentication and read-only configuration unless necessary.
     108    $ snmpwalk -v3 -On -u <user> -l AuthPriv -a SHA -A <auth_password> -X <encryption_password> <HOST_IP> system
     109
     110"
     111
    95112startupitem.create      yes
    96 startupitem.executable  ${prefix}/sbin/snmpd -f
     113startupitem.executable  ${prefix}/sbin/snmpd -c ${prefix}/etc/snmpd.conf -p ${prefix}/var/run/snmpd.pid -f
     114startupitem.pidfile     ${prefix}/var/run/snmpd.pid
    97115
    98116livecheck.type          regex
    99117livecheck.url           ${homepage}download.html