Ticket #45644: Portfile

File Portfile, 1.7 KB (added by jul_bsd@…, 10 years ago)
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$
3
4PortSystem          1.0
5
6PortGroup           github 1.0
7
8github.setup        ECSC analogi 1.3
9version             20130610
10categories          security www
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-3
14description         Graphical Web Interface for OSSEC
15long_description    ${description}
16
17master_sites        https://github.com/ECSC/analogi/archive/
18distname            31f0906d374e0f97b0fa2ff8e0ab3d8ffd27ea79
19checksums           rmd160  5c7e08d588fa0cf98893f34e5a623616bcda5436 \
20                    sha256  357dd8d6b4998fdd55da3674eabe63b34c0fdd991b34118c4450dbaaf7a16f25
21
22
23depends_run-append port:ossec
24use_configure       no
25build {}
26set webroot         ${prefix}/www/analogi
27set ossecroot       ${prefix}/var/ossec
28
29destroot {
30
31    xinstall -d -m 755 ${destroot}${webroot}
32    foreach f [glob -directory ${worksrcpath} *] {
33        copy $f ${destroot}${webroot}
34    }
35    reinplace "s|/var/ossec|${ossecroot}|" ${destroot}${webroot}/ossec_conf.php
36
37    xinstall -d -m 755 ${destroot}${prefix}/share/examples/${name}/
38    copy ${filespath}/nginx-ossec.conf ${destroot}${prefix}/share/examples/${name}/nginx-ossec.conf.sample
39    reinplace "s|>/var/ossec|>${prefix}/var/ossec|g" \
40        ${destroot}${prefix}/share/examples/${name}/nginx-ossec.conf.sample
41   
42}
43
44notes "
45
46To finish install:
471) You will need a web server and PHP (not covered)
482) update db_ossec2.php with mysql credentials for ossec
493) secure your access
50    # htpasswd -c ${webroot}/.htaccess youruser
514) Try to access the UI.
52
53     http ://localhost/analogi/
54
55"
56
57# github but currently no releases listed
58livecheck.type     none
59