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

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

tripwire: fix livecheck

  • 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 110618 2013-09-02 23:36:58Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                tripwire
7version             2.4.1.2
8revision            2
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}-src
27use_bzip2           yes
28distname            ${distname}-src
29
30checksums           md5     8a1147c278b528ed593023912c4b649a
31
32depends_lib         port:openssl
33
34use_autoreconf      yes
35
36patchfiles          patch-Makefile.am    \
37                    patch-platform.h     \
38                    patch-aclocal.m4     \
39                    patch-configure.in   \
40                    patch-configure      \
41                    patch-install.cfg    \
42                    patch-install.sh     \
43                    patch-src_cryptlib_algebra.h \
44                    patch-src_core_archive.cpp \
45                    patch-src_fco_fcospec.cpp
46
47post-patch {
48    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
49    file attributes ${worksrcpath}/configure -permissions +x
50}
51
52pre-configure {
53    system "cd ${worksrcpath} && aclocal"
54}
55
56configure.args      --sysconfdir="${prefix}/etc/${name}" \
57                    --mandir="${prefix}/share/man"
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_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     [suffix ${name}-(\[0-9.\]+)-src]
Note: See TracBrowser for help on using the repository browser.