diff options
author | Oskari Pirhonen <xxc3ncoredxx@gmail.com> | 2021-10-16 19:15:32 -0500 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-10-25 15:23:42 +0300 |
commit | d43816853ece46e89c9fbfa27ada6aefe7132813 (patch) | |
tree | 05f2b8403727a6473922db6ebef1d2a63689b286 /app-misc/physlock/physlock-13-r2.ebuild | |
parent | sys-devel/gdb: drop 10.1, 10.2 (diff) | |
download | gentoo-d43816853ece46e89c9fbfa27ada6aefe7132813.tar.gz gentoo-d43816853ece46e89c9fbfa27ada6aefe7132813.tar.bz2 gentoo-d43816853ece46e89c9fbfa27ada6aefe7132813.zip |
app-misc/physlock: Add patch to set PAM_TTY
Add the patch to set PAM_TTY as recommended by juippis on the gentoo-dev
mailing list on 2021-10-16.
Closes: https://bugs.gentoo.org/774729
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22608
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-misc/physlock/physlock-13-r2.ebuild')
-rw-r--r-- | app-misc/physlock/physlock-13-r2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/physlock/physlock-13-r2.ebuild b/app-misc/physlock/physlock-13-r2.ebuild new file mode 100644 index 000000000000..0ae63dfa9ec5 --- /dev/null +++ b/app-misc/physlock/physlock-13-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021 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 ) +" + +PATCHES=( + "${FILESDIR}/${PN}-13-Set-PAM_TTY.patch" +) + +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} +} |