/[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.7 - (show annotations) (download)
Wed Aug 5 14:50:47 2015 UTC (6 months ago) by nimiux
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key F253DB15)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/tripwire/tripwire-2.4.2.2-r1.ebuild,v 1.6 2013/09/03 15:01:35 nimiux Exp $
4
5 EAPI=5
6
7 inherit autotools eutils flag-o-matic
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 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
17 IUSE="ssl static"
18
19 DEPEND="sys-devel/automake
20 sys-devel/autoconf
21 ssl? ( dev-libs/openssl )"
22 RDEPEND="virtual/cron
23 virtual/mta
24 ssl? ( dev-libs/openssl )"
25
26 S="${WORKDIR}"/tripwire-"${PV}"-src
27
28 src_prepare() {
29 epatch "${FILESDIR}"/"${P}"-fix-configure.patch
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-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
42 chmod +x configure || die
43 econf $(use_enable ssl openssl) $(use_enable static)
44 }
45
46 src_install() {
47 dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
48 doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
49 dodir /etc/tripwire /var/lib/tripwire{,/report}
50 keepdir /var/lib/tripwire{,/report}
51
52 exeinto /etc/cron.daily
53 doexe "${FILESDIR}"/tripwire.cron
54
55 dodoc ChangeLog policy/policyguide.txt TRADEMARK \
56 "${FILESDIR}"/tripwire.txt
57
58 insinto /etc/tripwire
59 doins "${WORKDIR}"/twpol.txt "${FILESDIR}"/twcfg.txt
60
61 exeinto /etc/tripwire
62 doexe "${FILESDIR}"/twinstall.sh
63
64 fperms 755 /etc/tripwire/twinstall.sh /etc/cron.daily/tripwire.cron
65 }
66
67 pkg_postinst() {
68 elog "After installing this package, you should check the policy"
69 elog "file (twpol.txt) shipped with the package to see if it"
70 elog "suits your needs, and modify it accordingly."
71 elog
72 elog "Check bug #34662 to find a bash script which generates a"
73 elog "policy file from the Gentoo packages installed in your system."
74 elog
75 elog "Once the policy file is ready, you can run the"
76 elog "\"/etc/tripwire/twinstall.sh\" script to generate the "
77 elog "cryptographic keys, and \"tripwire --init\" to initialize"
78 elog "the Tripwire's database."
79 elog
80 elog "A quickstart guide is included with the documentation."
81 elog
82 }

  ViewVC Help
Powered by ViewVC 1.1.20