Ticket #25341: openvas-libraries-3.0.5.diff
File openvas-libraries-3.0.5.diff, 6.1 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name openvas-libraries 6 version 2.0.47 set download_id 6186 version 3.0.5 7 set download_id 729 8 8 platforms darwin 9 9 categories security 10 10 maintainers ryandesign 11 11 homepage http://www.openvas.org/ 12 12 master_sites http://wald.intevation.org/frs/download.php/${download_id} 13 13 14 checksums \15 md5 b0d721f8d4c2f1c265841bf418311ea7 \16 sha1 271f42118fc41ffec2d1365d618fa09e294aa4e5 \17 rmd160 bb4702277401e657e20ccff082990f68a74f178e18 19 14 description \ 20 15 Open Vulnerability Assessment System libraries 21 16 22 long_description \23 OpenVAS is the Open Vulnerability Assessment System. This port\24 contains the libraries used by the server component.17 long_description OpenVAS is the Open Vulnerability Assessment System. \ 18 ${name} contains common libraries used by the other \ 19 components. 25 20 21 checksums md5 a11dac34c35bdebb7fc2ecf643acdbab \ 22 sha1 265970a5bc695afdf001d4528bd69d326b6eaa70 \ 23 rmd160 eaf350ebfba8b49a1c93a8b77cf4baa48b68e2e6 24 26 25 depends_build \ 26 path:bin/cmake:cmake \ 27 27 path:bin/pkg-config:pkgconfig \ 28 path:bin/bison:bison \ 29 path:bin/flex:flex \ 30 path:bin/gsed:gsed \ 28 31 bin:grep:grep 29 32 30 33 depends_lib \ 31 34 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 32 35 path:bin/libgnutls-config:gnutls \ 36 path:bin/gpgme-config:gpgme \ 33 37 path:bin/pcap-config:libpcap \ 34 38 path:lib/libz.dylib:zlib 35 39 40 patchfiles patch-hg-CMakeLists.txt.diff \ 41 patch-misc-CMakeLists.txt.diff \ 42 patch-nasl-CMakeLists.txt.diff 43 36 44 use_parallel_build yes 37 45 46 universal_variant no 47 48 pre-build { 49 # http://wald.intevation.org/tracker/index.php?func=detail&aid=1233&group_id=29&atid=220 50 configure.cflags-append \ 51 -Ds6_addr32=__u6_addr.__u6_addr32 \ 52 -DBIND_8_COMPAT 53 54 # http://wald.intevation.org/tracker/index.php?func=detail&aid=1258&group_id=29&atid=220 55 configure.ldflags-append \ 56 [exec ${prefix}/bin/pkg-config glib-2.0 --libs] \ 57 [exec ${prefix}/bin/pkg-config gnutls --libs] \ 58 [exec ${prefix}/bin/libgcrypt-config --libs] \ 59 [exec ${prefix}/bin/gpgme-config --libs] \ 60 [exec ${prefix}/bin/pcap-config --libs] 61 62 # http://wald.intevation.org/tracker/index.php?func=detail&aid=1232&group_id=29&atid=220 63 build.args CC=${configure.cc} \ 64 CFLAGS="[join ${configure.cflags}]" \ 65 CPPFLAGS="[join ${configure.cppflags}]" \ 66 LDFLAGS="[join ${configure.ldflags}]" 67 } 68 38 69 livecheck.type regex 39 70 livecheck.url http://wald.intevation.org/frs/?group_id=29 40 71 livecheck.regex ${name}-(\[0-9.\]+)\\.tar -
files/patch-misc-CMakeLists.txt.diff
1 --- misc/CMakeLists.txt.orig 2010-03-24 02:43:00.000000000 -0500 2 +++ misc/CMakeLists.txt 2010-06-19 01:12:25.000000000 -0500 3 @@ -184,8 +184,12 @@ 4 add_definitions (-DONF_DIR=\\\"${OPENVAS_SYSCONF_DIR}\\\") 5 endif (OPENVAS_SYSCONF_DIR) 6 7 -target_link_libraries (openvas_misc_static ${GLIB_LDFLAGS}) 8 -target_link_libraries (openvas_misc_shared ${GLIB_LDFLAGS}) 9 +target_link_libraries (openvas_misc_static libopenvas_base ${GLIB_LDFLAGS}) 10 +target_link_libraries (openvas_misc_shared libopenvas_base ${GLIB_LDFLAGS}) 11 + 12 +add_library (libopenvas_base SHARED IMPORTED) 13 +set_property (TARGET libopenvas_base PROPERTY 14 + IMPORTED_LOCATION ../base/libopenvas_base.dylib) 15 16 # install library 17 message ("-- installing libraries...") -
files/patch-nasl-CMakeLists.txt.diff
1 --- nasl/CMakeLists.txt.orig 2010-04-12 05:20:08.000000000 -0500 2 +++ nasl/CMakeLists.txt 2010-06-19 00:56:27.000000000 -0500 3 @@ -214,11 +214,11 @@ 4 add_library (libopenvas_hg SHARED IMPORTED) 5 add_library (libopenvas_misc SHARED IMPORTED) 6 set_property (TARGET libopenvas_misc PROPERTY 7 - IMPORTED_LOCATION ../misc/libopenvas_misc.so) 8 + IMPORTED_LOCATION ../misc/libopenvas_misc.dylib) 9 set_property (TARGET libopenvas_base PROPERTY 10 - IMPORTED_LOCATION ../base/libopenvas_base.so) 11 + IMPORTED_LOCATION ../base/libopenvas_base.dylib) 12 set_property (TARGET libopenvas_hg PROPERTY 13 - IMPORTED_LOCATION ../hg/libopenvas_hg.so) 14 + IMPORTED_LOCATION ../hg/libopenvas_hg.dylib) 15 16 # Link the openvas-nasl executable 17 add_executable (openvas-nasl nasl.c) -
files/patch-hg-CMakeLists.txt.diff
1 --- hg/CMakeLists.txt.orig 2010-03-24 02:43:00.000000000 -0500 2 +++ hg/CMakeLists.txt 2010-06-19 01:07:31.000000000 -0500 3 @@ -163,8 +163,12 @@ 4 add_definitions (-DOPENVAS_PID_DIR=\\\"${OPENVAS_PID_DIR}\\\") 5 endif (OPENVAS_PID_DIR) 6 7 -target_link_libraries (openvas_hg_static ${GLIB_LDFLAGS}) 8 -target_link_libraries (openvas_hg_shared ${GLIB_LDFLAGS}) 9 +target_link_libraries (openvas_hg_static libopenvas_misc ${GLIB_LDFLAGS} -lresolv) 10 +target_link_libraries (openvas_hg_shared libopenvas_misc ${GLIB_LDFLAGS} -lresolv) 11 + 12 +add_library (libopenvas_misc SHARED IMPORTED) 13 +set_property (TARGET libopenvas_misc PROPERTY 14 + IMPORTED_LOCATION ../misc/libopenvas_misc.dylib) 15 16 # install library 17 message ("-- installing libraries...")