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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup ECSC analogi 1.3 |
---|
9 | version 20130610 |
---|
10 | categories security www |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | license GPL-3 |
---|
14 | description Graphical Web Interface for OSSEC |
---|
15 | long_description ${description} |
---|
16 | |
---|
17 | master_sites https://github.com/ECSC/analogi/archive/ |
---|
18 | distname 31f0906d374e0f97b0fa2ff8e0ab3d8ffd27ea79 |
---|
19 | checksums rmd160 5c7e08d588fa0cf98893f34e5a623616bcda5436 \ |
---|
20 | sha256 357dd8d6b4998fdd55da3674eabe63b34c0fdd991b34118c4450dbaaf7a16f25 |
---|
21 | |
---|
22 | |
---|
23 | depends_run-append port:ossec |
---|
24 | use_configure no |
---|
25 | build {} |
---|
26 | set webroot ${prefix}/www/analogi |
---|
27 | set ossecroot ${prefix}/var/ossec |
---|
28 | |
---|
29 | destroot { |
---|
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 | |
---|
44 | notes " |
---|
45 | |
---|
46 | To finish install: |
---|
47 | 1) You will need a web server and PHP (not covered) |
---|
48 | 2) update db_ossec2.php with mysql credentials for ossec |
---|
49 | 3) secure your access |
---|
50 | # htpasswd -c ${webroot}/.htaccess youruser |
---|
51 | 4) Try to access the UI. |
---|
52 | |
---|
53 | http ://localhost/analogi/ |
---|
54 | |
---|
55 | " |
---|
56 | |
---|
57 | # github but currently no releases listed |
---|
58 | livecheck.type none |
---|
59 | |
---|