Ticket #8828: patch-Portfile

File patch-Portfile, 2.7 KB (added by aschenke@…, 18 years ago)

Portfile patch for net-snmp 5.3.0.1

Line 
1--- Portfile.orig       2006-05-10 04:39:17.000000000 -0400
2+++ Portfile    2006-05-10 06:24:24.000000000 -0400
3@@ -1,8 +1,8 @@
4-# $Id: Portfile,v 1.20 2006/01/25 19:38:08 ricci Exp $
5+# $Id: $
6 PortSystem 1.0
7 
8 name                   net-snmp
9-version                        5.3
10+version                        5.3.0.1
11 revision               0
12 categories             net
13 maintainers            opendarwin.org@darkart.com
14@@ -17,23 +17,20 @@
15 homepage               http://net-snmp.sourceforge.net/
16 platforms              darwin
17 master_sites           sourceforge
18-checksums              md5     0dc8e4c8440c011139b71e59cd3b421a         \
19-                       sha1    58e77b65700b86f523c1f30f8f604e6c7f34b1f7 \
20-                       rmd160  cfe8607aa85ac59166f1679dd8d5d0ad408009c5
21+checksums              md5     db5995ff8fae154cbe7417a4a6f2ca60
22 
23 depends_build          path:/usr/include/netinet/ip_var.h:netinet-headers
24-patchfiles             patch-Makefile.in
25 depends_lib            port:openssl \
26                        port:zlib
27-configure.args         --enable-shared --disable-static --with-defaults \
28-                               --disable-agent \
29-                               --with-sys-contact=nobody@no.where \
30-                               --with-mib-modules="host disman/event-mib smux" \
31-                               --with-persistent-directory='\${prefix}/var/net-snmp' \
32-                               --mandir='\${prefix}/share/man' \
33-                               --infodir='\${prefix}/share/info' \
34-                               --with-logfile='\${prefix}/var/log' \
35-                               --with-openssl=${prefix} --with-zlib=${prefix}
36+configure.args  --with-install-prefix=${destroot} \
37+                --with-persistent-directory=${prefix}/var/net-snmp \
38+                               --with-logfile=${prefix}/var/log \
39+                               --infodir=${prefix}/share/info \
40+                --mandir=${prefix}/share/man \
41+                               --with-openssl=${prefix} \
42+                               --with-zlib=${prefix} \
43+                               --with-out-mib-modules=mibII/icmp \
44+                               --with-ldflags=-flat_namespace         
45 
46 variant no_ssl {
47        configure.args-delete --with-openssl=${prefix}
48@@ -49,34 +46,9 @@
49        configure.args-append --with-bzip2=${prefix}
50 }
51 
52-variant server {
53-       depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
54-       configure.args-delete   --disable-agent
55-}
56-
57-variant darwin {
58-       if {${os.version} >= 8} {
59-               ui_msg "--------------------------------------------------------------------"
60-               ui_msg "net-snmp 5.3 fails to build on darwin 8 (Mac OS X 10.4)"
61-               ui_msg "due to 'host/hr_storage.c:764: error: duplicate case value',"
62-               ui_msg "feel free to help investigate."
63-               ui_msg "--------------------------------------------------------------------"
64-               extract {}
65-               patch {}
66-               configure {}
67-               build {}
68-               destroot {}
69-               install {}
70-               activate {}
71-       }
72-}
73-
74 variant ipv6   { configure.args-append --enable-ipv6 }
75 
76 ## add in support for kerb based SNMP security
77 variant ksm    { configure.args-append --with-security-modules="usm ksm" }
78 
79-## destroot.destdir    prefix=${destroot}${prefix} \
80-##                     exec_prefix=${destroot}${prefix}
81 post-destroot  { destroot.keepdirs ${destroot}${prefix}/var/net-snmp }
82-