source: trunk/dports/security/sguil-client/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 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.1 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 ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                sguil-client
7version             0.6.1
8revision            1
9categories          security net
10license             QPL-1 Permissive
11maintainers         nomaintainer
12description         GUI Console for Sguil Network Security Monitor
13long_description    ${description}
14platforms           darwin
15supported_archs     noarch
16homepage            http://sguil.sf.net
17master_sites        sourceforge:sguil
18checksums           md5 68d209f882d4c8fa9c200ba0924b00b3
19worksrcdir          sguil-${version}
20depends_build       port:itcl \
21                    port:tclx \
22                    port:itk \
23                    port:iwidgets \
24                    port:tcllib \
25                    port:tcl-tls \
26                    path:lib/libssl.dylib:openssl
27
28use_configure       no
29build {}
30
31post-patch {
32    reinplace "s|set SGUILLIB ./lib|set SGUILLIB ${prefix}/lib/sguil|g" \
33        ${worksrcpath}/client/sguil.conf
34    reinplace "s|set ETHEREAL_PATH /usr/sbin/ethereal|set ETHEREAL_PATH ${prefix}/bin/ethereal|g" \
35        ${worksrcpath}/client/sguil.conf
36    reinplace "s|set SERVERHOST demo.sguil.net|set SERVERHOST localhost|g" \
37        ${worksrcpath}/client/sguil.conf
38    reinplace "s|set MAILSERVER mail.example.com|set MAILSERVER localhost|g" \
39        ${worksrcpath}/client/sguil.conf
40}
41
42destroot {
43
44    set sguilbin  ${prefix}/bin
45    set sguillib  ${prefix}/lib/sguil
46    set sguildoc  ${prefix}/share/doc/sguil
47    set sguiletc  ${prefix}/etc/sguil
48
49    xinstall -m 755 -d ${destroot}${sguilbin}
50    xinstall -m 755 ${worksrcpath}/client/sguil.tk ${destroot}${sguilbin}
51    xinstall -m 755 -d ${destroot}${sguillib}
52    system "cp -R ${worksrcpath}/client/lib/* ${destroot}${sguillib}"
53    xinstall -m 755 -d ${destroot}${sguildoc}
54    system "cp ${worksrcpath}/doc/* ${destroot}${sguildoc}"
55    xinstall -m 755 -d ${destroot}${sguiletc}
56    xinstall -m 755 ${worksrcpath}/client/sguil.conf ${destroot}${sguiletc}/sguil.conf.sample
57}
58
59livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.