1 |
commit: 6c01df4c7a902271246dd2dd521044029d2cbd13 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 01:21:06 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 01:21:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c01df4c |
7 |
|
8 |
app-admin/tripwire: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild | 85 +++++++++++++++++++++++++++ |
13 |
1 file changed, 85 insertions(+) |
14 |
|
15 |
diff --git a/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild b/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..7345b9c |
18 |
--- /dev/null |
19 |
+++ b/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild |
20 |
@@ -0,0 +1,85 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit autotools eutils flag-o-matic |
28 |
+ |
29 |
+DESCRIPTION="Open Source File Integrity Checker and IDS" |
30 |
+HOMEPAGE="http://www.tripwire.org/" |
31 |
+SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
36 |
+IUSE="libressl ssl static +tools" |
37 |
+ |
38 |
+DEPEND="sys-devel/automake |
39 |
+ sys-devel/autoconf |
40 |
+ ssl? ( |
41 |
+ !libressl? ( dev-libs/openssl:0 ) |
42 |
+ libressl? ( dev-libs/libressl ) |
43 |
+ )" |
44 |
+RDEPEND="virtual/cron |
45 |
+ virtual/mta |
46 |
+ ssl? ( dev-libs/openssl )" |
47 |
+PDEPEND="tools? ( app-admin/mktwpol )" |
48 |
+ |
49 |
+S="${WORKDIR}"/tripwire-"${PV}"-src |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ epatch "${FILESDIR}"/"${P}"-fix-configure.patch |
53 |
+ epatch "${FILESDIR}"/"${P}"-buildnum.patch |
54 |
+ epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch |
55 |
+ epatch "${FILESDIR}"/"${PN}"-twpol-GENERIC.patch |
56 |
+ epatch "${FILESDIR}"/"${P}"-exception-shadowing.patch |
57 |
+ |
58 |
+ mv configure.in configure.ac || die |
59 |
+ eautoreconf |
60 |
+} |
61 |
+ |
62 |
+src_configure() { |
63 |
+ # tripwire can be sensitive to compiler optimisation. |
64 |
+ # see #32613, #45823, and others. |
65 |
+ # -taviso@g.o |
66 |
+ strip-flags |
67 |
+ append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing |
68 |
+ econf $(use_enable ssl openssl) $(use_enable static) |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint} |
73 |
+ doman "${S}"/man/man{4/*.4,5/*.5,8/*.8} |
74 |
+ dodir /etc/tripwire /var/lib/tripwire{,/report} |
75 |
+ keepdir /var/lib/tripwire{,/report} |
76 |
+ |
77 |
+ exeinto /etc/cron.daily |
78 |
+ doexe "${FILESDIR}"/tripwire |
79 |
+ |
80 |
+ dodoc ChangeLog policy/policyguide.txt TRADEMARK \ |
81 |
+ "${FILESDIR}"/tripwire.txt |
82 |
+ |
83 |
+ insinto /etc/tripwire |
84 |
+ doins "${FILESDIR}"/twcfg.txt policy/twpol-GENERIC.txt |
85 |
+ |
86 |
+ fperms 750 /etc/cron.daily/tripwire |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
91 |
+ elog "Tripwire needs to be configured before its first run. You can" |
92 |
+ elog "do this by manually editing the twpol-GENERIC.txt file shipped with" |
93 |
+ elog "the package to suit your needs. A quickstart guide is provided" |
94 |
+ elog "in tripwire.txt file to help you with this." |
95 |
+ elog "To configure tripwire automatically, you can use the twsetup.sh" |
96 |
+ elog "script provided by the app-admin/mktwpol package. This package is" |
97 |
+ elog "installed for you by the \"tools\" USE flag (which is enabled by" |
98 |
+ elog "default." |
99 |
+else |
100 |
+ elog "Maintenance of tripwire policy files as packages are added" |
101 |
+ elog "and deleted from your system can be automated by the mktwpol.sh" |
102 |
+ elog "script provided by the app-admin/mktwpol package. This package" |
103 |
+ elog "is installed for you if you append \"tools\" to your USE flags" |
104 |
+ fi |
105 |
+} |