From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 734CD1384B4 for ; Sat, 26 Dec 2015 01:14:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97A87E07A0; Sat, 26 Dec 2015 01:14:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E1C6E07A0 for ; Sat, 26 Dec 2015 01:14:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0EE7340739 for ; Sat, 26 Dec 2015 01:14:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CFBCC6F for ; Sat, 26 Dec 2015 01:14:13 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1451092866.6c01df4c7a902271246dd2dd521044029d2cbd13.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/tripwire/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild X-VCS-Directories: app-admin/tripwire/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 6c01df4c7a902271246dd2dd521044029d2cbd13 X-VCS-Branch: master Date: Sat, 26 Dec 2015 01:14:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f7c6ee30-6760-4caa-9494-fc2bdf8ac0d2 X-Archives-Hash: 570667911ac6a1c12bf644bfd1702037 commit: 6c01df4c7a902271246dd2dd521044029d2cbd13 Author: Anthony G. Basile gentoo org> AuthorDate: Sat Dec 26 01:21:06 2015 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sat Dec 26 01:21:06 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c01df4c app-admin/tripwire: add libressl support Package-Manager: portage-2.2.24 app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild | 85 +++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild b/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild new file mode 100644 index 0000000..7345b9c --- /dev/null +++ b/app-admin/tripwire/tripwire-2.4.2.2-r4.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils flag-o-matic + +DESCRIPTION="Open Source File Integrity Checker and IDS" +HOMEPAGE="http://www.tripwire.org/" +SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="libressl ssl static +tools" + +DEPEND="sys-devel/automake + sys-devel/autoconf + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" +RDEPEND="virtual/cron + virtual/mta + ssl? ( dev-libs/openssl )" +PDEPEND="tools? ( app-admin/mktwpol )" + +S="${WORKDIR}"/tripwire-"${PV}"-src + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-fix-configure.patch + epatch "${FILESDIR}"/"${P}"-buildnum.patch + epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch + epatch "${FILESDIR}"/"${PN}"-twpol-GENERIC.patch + epatch "${FILESDIR}"/"${P}"-exception-shadowing.patch + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + # tripwire can be sensitive to compiler optimisation. + # see #32613, #45823, and others. + # -taviso@gentoo.org + strip-flags + append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing + econf $(use_enable ssl openssl) $(use_enable static) +} + +src_install() { + dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint} + doman "${S}"/man/man{4/*.4,5/*.5,8/*.8} + dodir /etc/tripwire /var/lib/tripwire{,/report} + keepdir /var/lib/tripwire{,/report} + + exeinto /etc/cron.daily + doexe "${FILESDIR}"/tripwire + + dodoc ChangeLog policy/policyguide.txt TRADEMARK \ + "${FILESDIR}"/tripwire.txt + + insinto /etc/tripwire + doins "${FILESDIR}"/twcfg.txt policy/twpol-GENERIC.txt + + fperms 750 /etc/cron.daily/tripwire +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "Tripwire needs to be configured before its first run. You can" + elog "do this by manually editing the twpol-GENERIC.txt file shipped with" + elog "the package to suit your needs. A quickstart guide is provided" + elog "in tripwire.txt file to help you with this." + elog "To configure tripwire automatically, you can use the twsetup.sh" + elog "script provided by the app-admin/mktwpol package. This package is" + elog "installed for you by the \"tools\" USE flag (which is enabled by" + elog "default." +else + elog "Maintenance of tripwire policy files as packages are added" + elog "and deleted from your system can be automated by the mktwpol.sh" + elog "script provided by the app-admin/mktwpol package. This package" + elog "is installed for you if you append \"tools\" to your USE flags" + fi +}