source: trunk/dports/security/aide/Portfile @ 124875

Last change on this file since 124875 was 124875, checked in by jmr@…, 3 years ago

aide: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 124875 2014-08-30 02:33:55Z jmr@macports.org $
2
3PortSystem        1.0
4
5name            aide
6version         0.15.1
7categories      security
8license         GPL-2+
9maintainers     nomaintainer
10description     Advanced Intrusion Detection Environment
11long_description        AIDE (Advanced Intrusion Detection Environment) \
12        is a free replacement for Tripwire. It does the same things as \
13        the semi-free Tripwire and more. \
14        It creates a database from the regular expression rules that it \
15        finds from the config file. Once this database is initialized it \
16        can be used to verify the integrity of the files. It has several \
17        message digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that \
18        are used to check the integrity of the file. More algorithms can \
19        be added with relative ease. All of the usual file attributes can \
20        also be checked for inconsistencies. It can read databases from \
21        older or newer versions. See the manual pages within the distribution \
22        for further info. There is also a beginning of a manual.
23homepage          http://aide.sourceforge.net/
24master_sites      sourceforge:project/aide/aide/${version}
25platforms         darwin
26checksums         md5 d0b72535ff68b93a648e4d08b0ed7f07 \
27                  sha1 c5998c04a223416142323fa1bd18db0936099827 \
28                  rmd160 80ea88b1c1496bcca57d2d1cdeecdcdfca0fa5cf
29configure.args  --mandir=${prefix}/share/man \
30                --with-mhash --with-zlib \
31                --with-locale --disable-static
32
33depends_build     port:bison
34depends_lib       port:mhash \
35                  port:gettext
36
37patchfiles        patch-Makefile.in.diff patch-src-Makefile.in.diff \
38                        patch-doc-aide.conf.diff patch-doc-aide-check.cron.diff
39post-patch {
40        reinplace "s|@@LOCALEDIR@@|${prefix}/share/locale|g" \
41                ${worksrcpath}/Makefile.in ${worksrcpath}/src/Makefile.in
42        reinplace "s|%%PREFIX%%|${prefix}|g" \
43                ${worksrcpath}/doc/aide-check.cron ${worksrcpath}/doc/aide.conf
44}
45
46post-destroot {
47        file mkdir ${destroot}${prefix}/share/doc/${name}-${version}
48        file mkdir ${destroot}${prefix}/etc/${name}
49        file mkdir ${destroot}${prefix}/libexec/${name}
50
51        system "install -bC ${worksrcpath}/doc/aide.conf \
52                ${destroot}${prefix}/share/doc/${name}-${version}/"
53        system "install -bC ${worksrcpath}/doc/manual.html \
54                ${destroot}${prefix}/share/doc/${name}-${version}/"
55        system "install -bC ${worksrcpath}/doc/aide.conf \
56                ${destroot}${prefix}/etc/${name}/"
57        system "install -bC ${worksrcpath}/doc/aide-check.cron \
58                ${destroot}${prefix}/libexec/${name}/"
59}
60
61platform darwin {
62    # darwin doesn't have or need off64_t and friends
63    configure.args-append --disable-lfs
64}
Note: See TracBrowser for help on using the repository browser.