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

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

aide: fix reinplace targets (#21920), switch to port: deps

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