source: trunk/dports/security/base/Portfile

Last change on this file was 128368, checked in by khindenburg@…, 3 years ago

base (port): update to 1.4.5; add patch php ereg_replace deprecated, mysqli usage instead of deprecated one; add license; patches from #42857

  • 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 128368 2014-11-20 03:49:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                base
7version             1.4.5
8categories          security
9maintainers         nomaintainer
10description         Basic Analysis and Security Engine - Snort web frontend
11long_description    Basic Analysis and Security Engine - based on the ACID \
12                    project. It provides a web front-end to query and analyze \
13                    the alerts from SNORT.
14platforms           darwin
15license             GPL-2
16homepage            http://base.professionallyevil.com
17master_sites        sourceforge:secureideas
18
19checksums           rmd160  e66552039a806d09db40f1e7f363b2cd68cde064 \
20                    sha256  23910f5277ceb43398442074e444182941bf7f6da85efd84ecdd0cf62c4b8935
21
22depends_run         port:gd2 \
23                    port:adodb \
24                    port:pear-Mail port:pear-Mail_Mime port:pear-Image_Graph \
25                    port:pear-Image_Canvas port:pear-Image_Color port:pear-Numbers_Roman
26
27## http://sourceforge.net/p/secureideas/patches/27/
28## +mysql support through mysqli extension
29patchfiles         patch-base.diff
30
31use_configure       no
32build               {}
33
34set basedir ${prefix}/share/${name}
35set docsdir ${prefix}/share/doc/${name}
36
37destroot {
38    xinstall -m 755 -d ${destroot}${basedir}
39
40    foreach file [glob -directory ${worksrcpath}/ *] {
41        copy ${file} ${destroot}${basedir}/
42    }
43
44    reinplace "s|\$DBlib_path = '';|\$DBlib_path = '${prefix}/share/adodb5';|g" ${destroot}${basedir}/base_conf.php.dist
45}
46
47post-activate {
48    ## Not sure if needed. If the file exists, wizard says you need to delete it
49    if ![file exists ${basedir}/base_conf.php ] {
50        copy ${basedir}/base_conf.php.dist ${basedir}/base_conf.php
51    }
52}
53
54notes "
55Read the files under ${prefix}/share/base/docs, especially README and INSTALL.
56
57Note that this software is installed under ${prefix}/share/base
58
59This version was released in 2010 and the authors consider it BETA;
60you may want to consider other software options.
61"
62
63livecheck.regex   ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.