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

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

tripwire: force configure.cxx_stdlib libstdc++ (#43654)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 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 128249 2014-11-17 11:09:34Z 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# https://github.com/steakknife/tripwire/issues/1
57configure.cxx_stdlib libstdc++
58
59# Installation locations
60set bindir          "${prefix}/sbin"
61set sysconfdir      "${prefix}/etc/${name}"
62set vardbdir        "${prefix}/var/db/${name}"
63set docdir          "${prefix}/share/doc/${name}"
64if {[variant_exists anacron] && [variant_isset anacron]} {
65    set crondir     "${prefix}/etc/cron.daily"
66} else {
67    set crondir     "${docdir}"
68}
69
70destroot.keepdirs   ${destroot}${vardbdir}/report
71
72post-destroot {
73    # Install setup script for post installation configuration
74    xinstall -m 0744 ${filespath}/twsetup.sh.in \
75        ${destroot}${sysconfdir}/twsetup.sh
76    # Install quickstart guide
77    xinstall -d -m 0755 ${destroot}${docdir}
78    xinstall -m 0644 ${filespath}/quickstart.gif \
79        ${destroot}${docdir}/quickstart.gif
80    xinstall -m 0644 ${filespath}/quickstart.txt.in \
81        ${destroot}${docdir}/quickstart.txt
82    # Install daily cron job entry (requires anacron)
83    xinstall -d -m 0755 ${destroot}${crondir}
84    xinstall -m 0744 ${filespath}/${name}-check.in \
85        ${destroot}${crondir}/${name}-check
86    # Configure paths in various files
87    reinplace "s|@PREFIX@|${prefix}|g" \
88        ${destroot}${sysconfdir}/twsetup.sh \
89        ${destroot}${crondir}/${name}-check \
90        ${destroot}${docdir}/quickstart.txt
91    reinplace "s|@BINDIR@|${bindir}|g" \
92        ${destroot}${sysconfdir}/twsetup.sh \
93        ${destroot}${crondir}/${name}-check \
94        ${destroot}${docdir}/quickstart.txt
95    reinplace "s|@SYSCONFDIR@|${sysconfdir}|g" \
96        ${destroot}${sysconfdir}/twsetup.sh \
97        ${destroot}${crondir}/${name}-check \
98        ${destroot}${docdir}/quickstart.txt
99    reinplace "s|@VARDBDIR@|${vardbdir}|g" \
100        ${destroot}${sysconfdir}/twsetup.sh \
101        ${destroot}${crondir}/${name}-check \
102        ${destroot}${docdir}/quickstart.txt
103    reinplace "s|@DOCDIR@|${docdir}|g" \
104        ${destroot}${sysconfdir}/twsetup.sh \
105        ${destroot}${crondir}/${name}-check \
106        ${destroot}${docdir}/quickstart.txt
107}
108
109#variant anacron {
110#    depends_run     bin:anacron:anacron
111#}
112
113notes "
114Please read the quick start guide located at:
115
116${prefix}/share/doc/${name}/quickstart.txt
117
118for post installation configuration instructions and general usage information.
119"
120
121livecheck.regex     ${name}-(\[0-9.\]+)-src${extract.suffix}
Note: See TracBrowser for help on using the repository browser.