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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 99C45138334 for ; Mon, 2 Dec 2019 14:50:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 132C5E087D; Mon, 2 Dec 2019 14:50:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4A4FE086B for ; Mon, 2 Dec 2019 14:50:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B92534D6BF for ; Mon, 2 Dec 2019 14:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 266EA8D0 for ; Mon, 2 Dec 2019 14:50:40 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1575298152.651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/checkpolicy/Manifest sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild X-VCS-Directories: sys-apps/checkpolicy/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3 X-VCS-Branch: master Date: Mon, 2 Dec 2019 14:50:40 +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: ec3c4393-5b68-4082-a6f5-5c2731b14dab X-Archives-Hash: 922dc3c17794558d45c8afc2aee89196 commit: 651813d1ed7f9b3e976c9dbaf0b142f328d0c4e3 Author: Jason Zaman gentoo org> AuthorDate: Fri Nov 29 10:26:49 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Dec 2 14:49:12 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=651813d1 sys-apps/checkpolicy: bump to 3.0_rc2 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Jason Zaman gentoo.org> sys-apps/checkpolicy/Manifest | 1 + sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild | 57 +++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest index a7b7c7fc513..44e147b4d29 100644 --- a/sys-apps/checkpolicy/Manifest +++ b/sys-apps/checkpolicy/Manifest @@ -1,2 +1,3 @@ DIST checkpolicy-2.8.tar.gz 66243 BLAKE2B cd4b5ead13606df9888260a15d982eb43d59c659a6f021a18c598657b2a07de5e70a9eacee6528855f26256d26b27bd8bec27b95a7366cf2e44ba5d426369582 SHA512 d1a52dffefcc8f9f879214290f01beb5f4978f1764ab6378ee03a62ef924206b9a6f6a512001ae556034ababcd3a0043d455f5aef66b5629a4f152cd2c9f0b7a DIST checkpolicy-2.9.tar.gz 68735 BLAKE2B 092b7b67ea952be6a829529249f0b209c31245490f263b248cb0208d9f1f4ec922522791c6555c0b913b56b8a0037bfde54a3511940f0be287f13e3a193c8f26 SHA512 8dafdd871c5fd32023883149c74891279c386cc87d70cbfc6f0a8dcb0406f17f1158f9078c1b35892a0f0edcb6b5208a031594ab80898eec016ad765ad046e03 +DIST checkpolicy-3.0-rc2.tar.gz 69077 BLAKE2B 4cc068103d3c0caf90362173cc4b5e3b17a60c32207d08f30ec23f351115ffdb0708c369cc42d0e8d07ce8d60eb4c24877fa5e22cc13de8a774de5f32d81820e SHA512 9dd0620755ad9e075f6ce059795717f27fc873014f419fcd68af12f1af9abe0121319b903e64b0a90f9a388826f0ab7e39c1f35a661bd5abfb5b91332e568edc diff --git a/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild b/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild new file mode 100644 index 00000000000..7bb6707b415 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-3.0_rc2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_P="${P//_/-}" +MY_RELEASEDATE="20191122" + +SEPOL_VER="${PV}" +SEMNG_VER="${PV}" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" + S="${WORKDIR}/${MY_P}/${PN}" +else + SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug" + +DEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + YACC="bison -y" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + install + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy." +}