/[gentoo-x86]/app-admin/tripwire/tripwire-2.4.2.2-r1.ebuild
Gentoo

Contents of /app-admin/tripwire/tripwire-2.4.2.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Wed Aug 15 14:12:16 2012 UTC (2 years, 1 month ago) by blueness
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable ppc, bug #428840

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 nimiux 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.4 # $Header: /var/cvsroot/gentoo-x86/app-admin/tripwire/tripwire-2.4.2.2-r1.ebuild,v 1.3 2012/08/03 13:25:02 ago Exp $
4 nimiux 1.1
5     EAPI=4
6    
7     inherit eutils flag-o-matic autotools
8    
9     DESCRIPTION="Open Source File Integrity Checker and IDS"
10     HOMEPAGE="http://www.tripwire.org/"
11     SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2
12     mirror://gentoo/twpol.txt.gz"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16 blueness 1.4 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
17 nimiux 1.1 IUSE="ssl static"
18    
19     DEPEND="sys-devel/automake
20     sys-devel/autoconf
21     dev-util/patchutils
22     ssl? ( dev-libs/openssl )"
23     RDEPEND="virtual/cron
24     virtual/mta
25     ssl? ( dev-libs/openssl )"
26    
27     S="${WORKDIR}"/tripwire-"${PV}"-src
28    
29     src_prepare() {
30     epatch "${FILESDIR}"/"${P}"-buildnum.patch
31     epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch
32    
33     eautoreconf
34     }
35    
36     src_configure() {
37     # tripwire can be sensitive to compiler optimisation.
38     # see #32613, #45823, and others.
39     # -taviso@gentoo.org
40     strip-flags
41     append-flags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
42     einfo "Done."
43     chmod +x configure
44     econf $(use_enable ssl openssl) $(use_enable static)
45     }
46    
47     src_install() {
48     dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
49     doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
50     dodir /etc/tripwire /var/lib/tripwire{,/report}
51     keepdir /var/lib/tripwire{,/report}
52    
53     exeinto /etc/cron.daily
54     doexe "${FILESDIR}"/tripwire.cron
55    
56     dodoc ChangeLog policy/policyguide.txt TRADEMARK \
57     "${FILESDIR}"/tripwire.txt
58    
59     insinto /etc/tripwire
60     doins "${WORKDIR}"/twpol.txt "${FILESDIR}"/twcfg.txt
61    
62     exeinto /etc/tripwire
63     doexe "${FILESDIR}"/twinstall.sh
64    
65     fperms 755 /etc/tripwire/twinstall.sh /etc/cron.daily/tripwire.cron
66     }
67    
68     pkg_postinst() {
69     elog "After installing this package, you should check the policy"
70     elog "file (twpol.txt) shipped with the package to see if it"
71     elog "suits your needs, and modify it accordingly."
72     elog
73     elog "Check bug #34662 to find a bash script which generates a"
74     elog "policy file from the Gentoo packages installed in your system."
75     elog
76     elog "Once the policy file is ready, you can run the"
77     elog "\"/etc/tripwire/twinstall.sh\" script to generate the "
78     elog "cryptographic keys, and \"tripwire --init\" to initialize"
79     elog "the Tripwire's database."
80     elog
81     elog "A quickstart guide is included with the documentation."
82     elog
83     }

  ViewVC Help
Powered by ViewVC 1.1.20