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

     
    33PortSystem              1.0
    44
    55name                    openvas-libraries
    6 version                 2.0.4
    7 set download_id         618
     6version                 3.0.5
     7set download_id         729
    88platforms               darwin
    99categories              security
    1010maintainers             ryandesign
    1111homepage                http://www.openvas.org/
    1212master_sites            http://wald.intevation.org/frs/download.php/${download_id}
    1313
    14 checksums \
    15     md5     b0d721f8d4c2f1c265841bf418311ea7 \
    16     sha1    271f42118fc41ffec2d1365d618fa09e294aa4e5 \
    17     rmd160  bb4702277401e657e20ccff082990f68a74f178e
    18 
    1914description \
    2015    Open Vulnerability Assessment System libraries
    2116
    22 long_description \
    23     OpenVAS is the Open Vulnerability Assessment System. This port \
    24     contains the libraries used by the server component.
     17long_description        OpenVAS is the Open Vulnerability Assessment System. \
     18                        ${name} contains common libraries used by the other \
     19                        components.
    2520
     21checksums               md5     a11dac34c35bdebb7fc2ecf643acdbab \
     22                        sha1    265970a5bc695afdf001d4528bd69d326b6eaa70 \
     23                        rmd160  eaf350ebfba8b49a1c93a8b77cf4baa48b68e2e6
     24
    2625depends_build \
     26    path:bin/cmake:cmake \
    2727    path:bin/pkg-config:pkgconfig \
     28    path:bin/bison:bison \
     29    path:bin/flex:flex \
     30    path:bin/gsed:gsed \
    2831    bin:grep:grep
    2932
    3033depends_lib \
    3134    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    3235    path:bin/libgnutls-config:gnutls \
     36    path:bin/gpgme-config:gpgme \
    3337    path:bin/pcap-config:libpcap \
    3438    path:lib/libz.dylib:zlib
    3539
     40patchfiles              patch-hg-CMakeLists.txt.diff \
     41                        patch-misc-CMakeLists.txt.diff \
     42                        patch-nasl-CMakeLists.txt.diff
     43
    3644use_parallel_build      yes
    3745
     46universal_variant       no
     47
     48pre-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
    3869livecheck.type          regex
    3970livecheck.url           http://wald.intevation.org/frs/?group_id=29
    4071livecheck.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...")