source: trunk/dports/security/tripwire/Portfile @ 110622

Last change on this file since 110622 was 110622, checked in by ryandesign@…, 6 years ago

tripwire: update to 2.4.2.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 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 110622 2013-09-02 23:49:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                tripwire
7version             2.4.2.2
8categories          security
9license             GPL-2+
10platforms           darwin
11maintainers         nomaintainer
12
13description         integrity assurance and intrusion detection tool
14
15long_description    Tripwire software is a tool that checks to see what \
16                    has changed on your system. The program monitors key \
17                    attributes of files that should not change, \
18                    including binary signature, size, expected change of \
19                    size, etc.  Tripwire is originally known as an \
20                    intrusion detection tool, but can be used for many \
21                    other purposes such as integrity assurance, change \
22                    management, policy compliance and more.
23
24homepage            http://sourceforge.net/projects/tripwire/
25master_sites        sourceforge:tripwire/tripwire-src/tripwire-${version}
26use_bzip2           yes
27distname            ${distname}-src
28
29checksums           rmd160  00a307f7efae7c441a7f62e38850ead053158f6a \
30                    sha256  e09a7bdca9302e704cc62067399e0b584488f825b0e58c82ad6d54cd2e899fad
31
32depends_lib         port:openssl
33
34use_autoreconf      yes
35
36pre-patch {
37    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
38}
39
40patchfiles          patch-Makefile.am    \
41                    patch-platform.h     \
42                    patch-aclocal.m4     \
43                    patch-configure.ac.diff \
44                    patch-install.cfg    \
45                    patch-install.sh     \
46                    patch-src_cryptlib_algebra.h \
47                    patch-src_core_archive.cpp \
48                    patch-src_fco_fcospec.cpp
49
50pre-configure {
51    system -W ${worksrcpath} aclocal
52}
53
54configure.args      --sysconfdir="${prefix}/etc/${name}"
55
56# Installation locations
57set bindir          "${prefix}/sbin"
58set sysconfdir      "${prefix}/etc/${name}"
59set vardbdir        "${prefix}/var/db/${name}"
60set docdir          "${prefix}/share/doc/${name}"
61if {[variant_exists anacron] && [variant_isset anacron]} {
62    set crondir     "${prefix}/etc/cron.daily"
63} else {
64    set crondir     "${docdir}"
65}
66
67destroot.keepdirs   ${destroot}${vardbdir}/report
68
69post-destroot {
70    # Install setup script for post installation configuration
71    xinstall -m 0744 ${filespath}/twsetup.sh.in \
72        ${destroot}${sysconfdir}/twsetup.sh
73    # Install quickstart guide
74    xinstall -d -m 0755 ${destroot}${docdir}
75    xinstall -m 0644 ${filespath}/quickstart.gif \
76        ${destroot}${docdir}/quickstart.gif
77    xinstall -m 0644 ${filespath}/quickstart.txt.in \
78        ${destroot}${docdir}/quickstart.txt
79    # Install daily cron job entry (requires anacron)
80    xinstall -d -m 0755 ${destroot}${crondir}
81    xinstall -m 0744 ${filespath}/${name}-check.in \
82        ${destroot}${crondir}/${name}-check
83    # Configure paths in various files
84    reinplace "s|@PREFIX@|${prefix}|g" \
85        ${destroot}${sysconfdir}/twsetup.sh \
86        ${destroot}${crondir}/${name}-check \
87        ${destroot}${docdir}/quickstart.txt
88    reinplace "s|@BINDIR@|${bindir}|g" \
89        ${destroot}${sysconfdir}/twsetup.sh \
90        ${destroot}${crondir}/${name}-check \
91        ${destroot}${docdir}/quickstart.txt
92    reinplace "s|@SYSCONFDIR@|${sysconfdir}|g" \
93        ${destroot}${sysconfdir}/twsetup.sh \
94        ${destroot}${crondir}/${name}-check \
95        ${destroot}${docdir}/quickstart.txt
96    reinplace "s|@VARDBDIR@|${vardbdir}|g" \
97        ${destroot}${sysconfdir}/twsetup.sh \
98        ${destroot}${crondir}/${name}-check \
99        ${destroot}${docdir}/quickstart.txt
100    reinplace "s|@DOCDIR@|${docdir}|g" \
101        ${destroot}${sysconfdir}/twsetup.sh \
102        ${destroot}${crondir}/${name}-check \
103        ${destroot}${docdir}/quickstart.txt
104}
105
106#variant anacron {
107#    depends_run     bin:anacron:anacron
108#}
109
110notes "
111Please read the quick start guide located at:
112
113${prefix}/share/doc/${name}/quickstart.txt
114
115for post installation configuration instructions and general usage information.
116"
117
118livecheck.regex     [suffix ${name}-(\[0-9.\]+)-src]
Note: See TracBrowser for help on using the repository browser.