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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem              1.0
5
6name                    flow-tools
7version                 0.68
8revision                1
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.