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 6589F138359 for ; Sat, 11 Jul 2020 08:18:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97D03E079E; Sat, 11 Jul 2020 08:18:52 +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 7FA1CE079E for ; Sat, 11 Jul 2020 08:18:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8CFAE34ED70 for ; Sat, 11 Jul 2020 08:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 377FA2CD for ; Sat, 11 Jul 2020 08:18:50 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1594455517.6d4cf4dbe1e99ecf5cc13e65d41cf7445455a8b3.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/physlock/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/physlock/physlock-13-r1.ebuild X-VCS-Directories: app-misc/physlock/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 6d4cf4dbe1e99ecf5cc13e65d41cf7445455a8b3 X-VCS-Branch: master Date: Sat, 11 Jul 2020 08:18:50 +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: 22c5fc5b-bcd7-4519-89ac-ab57fb8e3329 X-Archives-Hash: d8353ef2160240c247797e66536f6d08 commit: 6d4cf4dbe1e99ecf5cc13e65d41cf7445455a8b3 Author: toshokan shojigate net> AuthorDate: Thu Jul 9 15:43:30 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 11 08:18:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d4cf4db app-misc/physlock: Use upstream PAM config Following the recommendation at https://github.com/muennich/physlock/commit/66957ee48384dd2e0fa6477b8276e9f6b3842bc5 Also more closely follow the configuration format the build system expects. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Closes: https://bugs.gentoo.org/731824 Signed-off-by: Jason Pizzuco shojigate.net> Closes: https://github.com/gentoo/gentoo/pull/16649 Signed-off-by: Joonas Niilola gentoo.org> app-misc/physlock/physlock-13-r1.ebuild | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/app-misc/physlock/physlock-13-r1.ebuild b/app-misc/physlock/physlock-13-r1.ebuild new file mode 100644 index 00000000000..b817bc5f566 --- /dev/null +++ b/app-misc/physlock/physlock-13-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs pam + +DESCRIPTION="Lightweight Linux console locking tool" +HOMEPAGE="https://github.com/muennich/physlock" +SRC_URI="https://github.com/muennich/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +IUSE="elogind systemd" +REQUIRED_USE="?? ( elogind systemd )" + +RDEPEND="sys-libs/pam" +DEPEND="${RDEPEND} + elogind? ( sys-auth/elogind ) + systemd? ( sys-apps/systemd ) +" + +pkg_setup() { + export MY_CONF="HAVE_SYSTEMD=$(usex systemd 1 0) HAVE_ELOGIND=$(usex elogind 1 0)" +} + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake ${MY_CONF} +} + +src_install() { + emake ${MY_CONF} DESTDIR="${D}" PREFIX=/usr install + newpamd physlock.pam ${PN} +}