From d72a7c2605599a540a2d111b860f7f453660014b Mon Sep 17 00:00:00 2001 From: haarp Date: Thu, 1 Dec 2022 01:33:28 +0100 Subject: Update xsecurelock Signed-off-by: haarp --- x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild | 72 +++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild (limited to 'x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild') diff --git a/x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild b/x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild new file mode 100644 index 0000000..b80a9d0 --- /dev/null +++ b/x11-misc/xsecurelock/xsecurelock-1.8.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="X11 screen lock utility with security in mind" +HOMEPAGE="https://github.com/google/xsecurelock" +SRC_URI="https://github.com/google/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mpv xscreensaver" + +RDEPEND=" + dev-libs/libbsd + media-libs/fontconfig + media-libs/freetype + sys-apps/util-linux + sys-libs/pam + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXft + x11-libs/libXmu + x11-libs/libXrandr + x11-libs/libXScrnSaver + xscreensaver? ( x11-misc/xscreensaver ) + mpv? ( media-video/mpv ) +" +DEPEND="${RDEPEND} + x11-base/xorg-proto +" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --prefix="${EPREFIX}"/usr + --with-default-auth-module=auth_x11 + --with-default-authproto-module=authproto_pam + --without-htpasswd + --without-mplayer + --without-pamtester + --without-pandoc + --with-pam-service-name=system-auth + ) + if ! use mpv; then + myeconfargs+=( + --without-mpv + ) + fi + if use xscreensaver; then + myeconfargs+=( + --with-default-saver-module=saver_xscreensaver + --with-xscreensaver="${EPREFIX}"/usr/$(get_libdir)/misc/xscreensaver + ) + else + myeconfargs+=( + --with-default-saver-module=saver_blank + --without-xscreensaver + ) + fi + econf "${myeconfargs[@]}" +} -- cgit v1.2.3-65-gdbad