Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/tripwire/
Date: Mon, 02 Oct 2017 16:03:20
Message-Id: 1506960188.cfb9e83296e04dc411bd70772cf4bbd4f3db3da3.nimiux@gentoo
1 commit: cfb9e83296e04dc411bd70772cf4bbd4f3db3da3
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 2 16:03:08 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 2 16:03:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfb9e832
7
8 app-admin/tripwire: Bumps version to 2.4.3.6
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.1
11
12 app-admin/tripwire/Manifest | 1 +
13 app-admin/tripwire/tripwire-2.4.3.6.ebuild | 79 ++++++++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/app-admin/tripwire/Manifest b/app-admin/tripwire/Manifest
17 index 87dc336ce3a..a6180f4acb9 100644
18 --- a/app-admin/tripwire/Manifest
19 +++ b/app-admin/tripwire/Manifest
20 @@ -1 +1,2 @@
21 DIST tripwire-2.4.3.5.tar.gz 965014 SHA256 4bb0b400d8f5d7f8762ffb87a683f113f8c77186689cc63b8cedbbc628c9c33b SHA512 7aef0e7d38f4b6966a806a4e556636c7b2477f4ea5451e89f1749c1535a489c2f490ea13898edff5d7786acf572f77d04430115b8ddd4c6a03c38382feb45269 WHIRLPOOL f5f06d2f509e8047ede81226d3179f253e32aae4193817ab1000dd843f4b9810f6aacc6cd9c0bdc8a0c6835fdb11f79c85838a3b799d8c6565861d43dd433a99
22 +DIST tripwire-2.4.3.6.tar.gz 1001145 SHA256 f55fe6805f2c159bd67fa3761ba52df95b2a7d0bdd06196847564bac00dd5606 SHA512 4757827b908fd56a014de81609be9cfdf3631d34cbc02214ac800bf6d9c413d85d812bc3211f9dc32ceee97e1f13decd955037a0cbbaf2f8e3020699492bd9bf WHIRLPOOL 0dad2b00a6e868179c1538ec48859a03857fa5bc62dcb9eb3240e11e10cd7ebf4de1fe85802c08abbf1ff1efca0768dcd63ff8088914f53f32cbf7fda20ec706
23
24 diff --git a/app-admin/tripwire/tripwire-2.4.3.6.ebuild b/app-admin/tripwire/tripwire-2.4.3.6.ebuild
25 new file mode 100644
26 index 00000000000..ec2cc9bc418
27 --- /dev/null
28 +++ b/app-admin/tripwire/tripwire-2.4.3.6.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit autotools eutils flag-o-matic
36 +
37 +DESCRIPTION="Open Source File Integrity Checker and IDS"
38 +HOMEPAGE="http://www.tripwire.org/"
39 +SRC_URI="https://github.com/Tripwire/tripwire-open-source/archive/${PV}.tar.gz -> ${PF}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
44 +IUSE="libressl selinux ssl static +tools"
45 +
46 +DEPEND="sys-devel/automake
47 + sys-devel/autoconf
48 + ssl? (
49 + !libressl? ( dev-libs/openssl:0= )
50 + libressl? ( dev-libs/libressl:0= )
51 + )"
52 +RDEPEND="virtual/cron
53 + virtual/mta
54 + selinux? ( sec-policy/selinux-tripwire )
55 + ssl? ( dev-libs/openssl )"
56 +PDEPEND="tools? ( app-admin/mktwpol )"
57 +
58 +S="${WORKDIR}/tripwire-open-source-${PV}"
59 +
60 +src_prepare() {
61 + default
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + # tripwire can be sensitive to compiler optimisation.
67 + # see #32613, #45823, and others.
68 + # -taviso@g.o
69 + strip-flags
70 + append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
71 + econf $(use_enable ssl openssl) $(use_enable static)
72 +}
73 +
74 +src_install() {
75 + dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
76 + doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
77 + dodir /etc/tripwire /var/lib/tripwire{,/report}
78 + keepdir /var/lib/tripwire{,/report}
79 +
80 + exeinto /etc/cron.daily
81 + doexe "${FILESDIR}"/tripwire
82 +
83 + dodoc ChangeLog policy/policyguide.txt TRADEMARK \
84 + "${FILESDIR}"/tripwire.txt
85 +
86 + insinto /etc/tripwire
87 + doins "${FILESDIR}"/twcfg.txt policy/twpol-GENERIC.txt
88 +
89 + fperms 750 /etc/cron.daily/tripwire
90 +}
91 +
92 +pkg_postinst() {
93 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
94 + elog "Tripwire needs to be configured before its first run. You can"
95 + elog "do this by manually editing the twpol-GENERIC.txt file shipped with"
96 + elog "the package to suit your needs. A quickstart guide is provided"
97 + elog "in tripwire.txt file to help you with this."
98 + elog "To configure tripwire automatically, you can use the twsetup.sh"
99 + elog "script provided by the app-admin/mktwpol package. This package is"
100 + elog "installed for you by the \"tools\" USE flag (which is enabled by"
101 + elog "default."
102 +else
103 + elog "Maintenance of tripwire policy files as packages are added"
104 + elog "and deleted from your system can be automated by the mktwpol.sh"
105 + elog "script provided by the app-admin/mktwpol package. This package"
106 + elog "is installed for you if you append \"tools\" to your USE flags"
107 + fi
108 +}