From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 874AF15801B for ; Fri, 7 Apr 2023 20:06:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3BD2E0821; Fri, 7 Apr 2023 20:06:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A97A7E0821 for ; Fri, 7 Apr 2023 20:06:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D684F335CCD for ; Fri, 7 Apr 2023 20:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E15399A for ; Fri, 7 Apr 2023 20:06:24 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1680897931.d46d69d05ef2a6943273609254e575111b4c3a97.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mktwpol/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/mktwpol/mktwpol-1.0.1-r1.ebuild X-VCS-Directories: app-admin/mktwpol/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: d46d69d05ef2a6943273609254e575111b4c3a97 X-VCS-Branch: master Date: Fri, 7 Apr 2023 20:06:24 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 19672cd0-294a-4ef9-8e42-a7230a466619 X-Archives-Hash: 80436c421799509f6584c0963845e050 commit: d46d69d05ef2a6943273609254e575111b4c3a97 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sat Mar 25 11:29:33 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Fri Apr 7 20:05:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46d69d0 app-admin/mktwpol: EAPI8 bump Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/30339 Signed-off-by: Conrad Kostecki gentoo.org> app-admin/mktwpol/mktwpol-1.0.1-r1.ebuild | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/app-admin/mktwpol/mktwpol-1.0.1-r1.ebuild b/app-admin/mktwpol/mktwpol-1.0.1-r1.ebuild new file mode 100644 index 000000000000..a4a15455f6d9 --- /dev/null +++ b/app-admin/mktwpol/mktwpol-1.0.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Bash scripts to install tripwire and generate tripwire policy files" +HOMEPAGE="https://sourceforge.net/projects/mktwpol" +SRC_URI="mirror://sourceforge/mktwpol/${P}.tar.gz" +S=${WORKDIR}/${P} + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND="app-admin/tripwire" + +src_prepare() { + default + sed -i \ + -e 's:/usr/local:/usr:' \ + -e "s|^docdir.*|docdir = \"${EPREFIX}/usr/share/doc/${PF}\"|g" \ + Makefile || die +} + +pkg_preinst() { + # one elog message for new/first installation + # different elog message when updating + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "To facilitate a new installation and setup of tripwire:" + elog " - Run: \`twsetup.sh\`" + elog + elog "To update tripwire database as packages are added or deleted:" + elog " - Run: \`mktwpol.sh -u\`" + elog + elog "Mktwpol is packaged with multiple policy-generating rules files." + elog "A default \"rules file\" is installed in /etc/tripwire" + elog "Alternatives are available in /usr/share/doc/${PF}" + elog + elog "mktwpol.sh uses the policy-generating rules file with the" + elog "most recent date. To use an alternative \"rules file\"," + elog "copy it from /usr/share/doc/${PF} to /etc/tripwire," + elog " uncompress it, and \`touch\` it." + elog + elog "Read /usr/share/doc/${PF}/README for more tips." + elog + else + elog + elog "Version bump: mktwpol policy-generating rules have changed." + elog "Run \`mktwpol.sh -u\` to update tripwire policy and database." + elog + elog "Alternative policy-generating rules are in /usr/share/doc/${PF}" + elog "To use an alternative policy-generating rules file," + elog "copy it to /etc/tripwire, uncompress and \`touch\` it." + elog + fi +}