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 8E1CC138334 for ; Wed, 27 Mar 2019 10:36:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90FB6E0828; Wed, 27 Mar 2019 10:36:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 4E1D5E0828 for ; Wed, 27 Mar 2019 10:36:49 +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 C9AFE335D01 for ; Wed, 27 Mar 2019 10:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF712570 for ; Wed, 27 Mar 2019 10:36:44 +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: <1553682981.c331ef08681f503d237142fd2cf687e9bd99e024.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/cgmanager/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/cgmanager/Manifest app-admin/cgmanager/cgmanager-0.42.ebuild X-VCS-Directories: app-admin/cgmanager/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c331ef08681f503d237142fd2cf687e9bd99e024 X-VCS-Branch: master Date: Wed, 27 Mar 2019 10:36:44 +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: 02714787-7479-4a68-b2aa-c2ca5a1d66f7 X-Archives-Hash: e8ab8c87ac18f8232a844ce6b19b538f commit: c331ef08681f503d237142fd2cf687e9bd99e024 Author: Jason Zaman gentoo org> AuthorDate: Tue Mar 26 13:55:40 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Mar 27 10:36:21 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c331ef08 app-admin/cgmanager: bump 0.42 Signed-off-by: Jason Zaman gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 app-admin/cgmanager/Manifest | 1 + app-admin/cgmanager/cgmanager-0.42.ebuild | 49 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/app-admin/cgmanager/Manifest b/app-admin/cgmanager/Manifest index dbee2bb05d0..e4950e78879 100644 --- a/app-admin/cgmanager/Manifest +++ b/app-admin/cgmanager/Manifest @@ -1 +1,2 @@ DIST cgmanager-0.41.tar.gz 461805 BLAKE2B 22c779953d637012694c19490da9d3707b9e2a935f910d192fd1e6a44c27e933e93b6ae516399991924175a9e8e05fd650cf3117d3e7bde034a20bc083ebaa09 SHA512 e8ba64665a21d987cd835580c2b6bafbcb05e22ce7f6216762d04840957c2cd21fb571360e0206ae9143656beed88ff3396eb1f644052c05189093a665a705fd +DIST cgmanager-0.42.tar.gz 467980 BLAKE2B 70df5ebda230773f3a2a4ed6f784e591126769122533182821b0fe2c157f9bd7b9fd58a3bb104b0ef089320b167d3136c379d760ea6c65dab0c88f46d41596cb SHA512 d92113a6748084f1c0708f75c8bdf5de484d534bf00f664a5288902be887c2a1c7cf3d91afaab3331f0d573a86fbc6edb2fa1d37c070250cf53e0621213d7d74 diff --git a/app-admin/cgmanager/cgmanager-0.42.ebuild b/app-admin/cgmanager/cgmanager-0.42.ebuild new file mode 100644 index 00000000000..ec194ccee43 --- /dev/null +++ b/app-admin/cgmanager/cgmanager-0.42.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools pam + +DESCRIPTION="Control Group manager daemon" +HOMEPAGE="https://linuxcontainers.org/cgmanager/introduction/" +SRC_URI="https://linuxcontainers.org/downloads/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="pam selinux" + +RDEPEND="sys-libs/libnih[dbus] + sys-apps/dbus + selinux? ( sec-policy/selinux-cgmanager )" +DEPEND="${RDEPEND}" + +src_prepare() { + eapply_user + + # systemd expects files in /sbin but we will have them in /usr/sbin + pushd config/init/systemd > /dev/null || die + sed -i -e "s@sbin@usr/&@" {${PN},cgproxy}.service || \ + die "Failed to fix paths in systemd service files" + popd > /dev/null || die + + eautoreconf +} + +src_configure() { + econf \ + --with-distro=gentoo \ + --with-pamdir="$(usex pam $(getpam_mod_dir) none)" \ + --with-init-script=systemd +} + +src_install () { + default + + # I see no reason to have the tests in the filesystem. Drop them + rm -r "${D}"/usr/share/${PN}/tests || die "Failed to remove ${PN} tests" + + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + newinitd "${FILESDIR}"/cgproxy.initd-r1 cgproxy +}