net-snmp has some fixes in HEAD for us coming in 5.7.2.
It fails on ML due to the same problem it has with Lion,
a missing header, and that's what's being fixed. It aslo
can't build the perl bindings because it wants to write to
`/Library/Perl`
- Duplicate the Lion path for ML and create `darwin12.h`
- Add `--enable-ipv6`
- Add `--with-logfile=#{var}/log/snmpd.log` fixes `/var/log/snmpd.log`
- Add `--disable-embedded-perl`
- Add `--without-perl-modules`
- Add `--disable-debugging`
- Remove an unused function `header_created?`
FixesHomebrew/homebrew#14990.
ClosesHomebrew/homebrew#15009.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
net-snmp-5.7.1 is missing a darwin11.h header that can be copied
from the existing darwin10.h, if the 10s are changed to 11s.
Configure also warns that mibII/icmp is required but disabled.
* remove the configure flag --with-out-mib-modules=mibII/icmp
* if lion, cp the darwin10.h to darwin11.h
* patch the darwin11.h to replace the 10s with 11s.
This builds again on Lion without error. The patch has been
reported upstream, and its url is in the formula comments.
ClosesHomebrew/homebrew#11378.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>