Ticket #1571: patch-portfile-net_snmp

File patch-portfile-net_snmp, 936 bytes (added by julien.touche@…, 20 years ago)

patch

Line 
1--- Portfile.orig       Sun Feb 29 09:32:32 2004
2+++ Portfile    Sun Feb 29 10:16:46 2004
3@@ -23,8 +23,23 @@
4 configure.args --enable-shared --disable-static --with-defaults \
5                                --with-sys-contact=nobody@no.where \
6                                --with-mib-modules="host disman/event-mib smux" \
7-                               --with-persistent-directory='\${prefix}/var/net-snmp' \
8-                               --mandir='\${prefix}/share/man'
9+                               --with-persistent-directory=${prefix}/var/net-snmp \
10+                               --mandir=${prefix}/share/man \
11+                               --with-logfile=${prefix}/var/log \
12+                               --without-openssl --without-zlib
13+default_variants +ssl +zlib
14+
15+variant ssl {
16+       depends_lib-append lib:libssl:openssl
17+       configure.args-delete --without-openssl
18+       configure.args-append --with-openssl
19+}
20+
21+variant zlib {
22+       depends_lib-append lib:libz:zlib
23+       configure.args-delete --without-zlib
24+       configure.args-append --with-zlib
25+}
26 
27 variant server { depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup }
28