source: trunk/dports/security/tripwire/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

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