source: trunk/dports/net/flow-tools/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    flow-tools
7version                 0.68
8revision                2
9categories              net
10maintainers             nomaintainer
11platforms               darwin
12license                 BSD
13
14description             Suite of tools and library to work with netflow data
15long_description        ${description}
16
17homepage                http://www.splintered.net/sw/flow-tools/
18master_sites            ftp://ftp.eng.oar.net/pub/flow-tools/
19checksums               md5 c9e0a8b53c79611b6bffcb9d510a5a38
20
21patchfiles              patch-configs_Makefile \
22                        patch-flow-header.c \
23                        patch-ftpaths.h \
24                        patch-lib_ftchash.c \
25                        patch-lib_ftio.c \
26                        patch-lib_ftsym.c \
27                        patch-lib_fttlv.c \
28                        patch-lib_Makefile.in \
29                        patch-lib_support.c \
30                        patch-lib-ftfile.c \
31                        patch-src_flow-fanout.c \
32                        patch-src_Makefile.in
33
34depends_lib             path:lib/libssl.dylib:openssl \
35                        port:zlib
36
37post-patch {
38        reinplace "s|__PREFIX__|${prefix}|g" \
39                ${worksrcpath}/lib/ftpaths.h
40
41        reinplace "s|\$WHERE_MYSQL/lib/mysql|\$WHERE_MYSQL/lib/mysql5|g" \
42                ${worksrcpath}/configure
43        reinplace "s|\$WHERE_MYSQL/include/mysql|\$WHERE_MYSQL/include/mysql5|g" \
44                ${worksrcpath}/configure
45
46        eval reinplace "s|@localstatedir@/sym/|${prefix}/share/flow-tools/|g" \
47                [glob ${worksrcpath}/docs/flow-*.1.in] \
48                [glob ${worksrcpath}/docs/flow-*.html.in]
49
50        eval reinplace "s|@localstatedir@/cfg/|${prefix}/etc/flow-tools/|g" \
51                [glob ${worksrcpath}/docs/flow-*.1.in] \
52                [glob ${worksrcpath}/docs/flow-*.html.in]
53
54        # http://trac.macports.org/ticket/34358
55        reinplace {/CFLAGS="-g -Wall"/d} ${worksrcpath}/configure
56}
57
58# http://trac.macports.org/ticket/34358
59configure.cflags-append -std=gnu89
60
61configure.args          --with-openssl=${prefix} \
62                        --localstatedir=${prefix} \
63                        --mandir=${prefix}/share/man
64
65post-destroot {
66        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
67        xinstall -m 644 -W ${worksrcpath} INSTALL README ChangeLog TODO \
68                ${destroot}${prefix}/share/doc/${name}
69}
70
71variant mysql5 {
72        configure.args-append   --with-mysql=${prefix}
73        depends_lib-append      path:bin/mysql_config5:mysql5
74}
75
76livecheck.type          regex
77livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.