From a08e482cd6f40dcb985bb9ac32a63b4cc0bfcc30 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 31 May 2019 15:05:54 +0200 Subject: [PATCH] x11-misc/xsecurelock: add to portage Signed-off-by: Gergely Nagy --- x11-misc/xsecurelock/Manifest | 1 + x11-misc/xsecurelock/metadata.xml | 11 +++ x11-misc/xsecurelock/xsecurelock-1.4.0.ebuild | 68 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 x11-misc/xsecurelock/Manifest create mode 100644 x11-misc/xsecurelock/metadata.xml create mode 100644 x11-misc/xsecurelock/xsecurelock-1.4.0.ebuild diff --git a/x11-misc/xsecurelock/Manifest b/x11-misc/xsecurelock/Manifest new file mode 100644 index 000000000..6ce96f925 --- /dev/null +++ b/x11-misc/xsecurelock/Manifest @@ -0,0 +1 @@ +DIST xsecurelock-1.4.0.tar.gz 213054 BLAKE2B 1083c9b390bb1249a2465f12005f2f8c7244c8ee19383f8e325b68fec1ca77b0160ef54bc880bac3ae80dbfafbfdc463867f7097d846c229c4d5a4f61217c9fe SHA512 67e3212c0ee160c769011ec62b314b68ba1e6cc1e87d427d088ce23a8b9c285f91a7315631133c714ab6d0cc6d35764dc160c65f2d3b104890f9bb99a1bf8456 diff --git a/x11-misc/xsecurelock/metadata.xml b/x11-misc/xsecurelock/metadata.xml new file mode 100644 index 000000000..b669b24df --- /dev/null +++ b/x11-misc/xsecurelock/metadata.xml @@ -0,0 +1,11 @@ + + + + + desktop-misc@gentoo.org + Gentoo Desktop Miscellaneous Project + + + google/xsecurelock + + diff --git a/x11-misc/xsecurelock/xsecurelock-1.4.0.ebuild b/x11-misc/xsecurelock/xsecurelock-1.4.0.ebuild new file mode 100644 index 000000000..46470745a --- /dev/null +++ b/x11-misc/xsecurelock/xsecurelock-1.4.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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="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 + x11-libs/libXxf86misc + xscreensaver? ( x11-misc/xscreensaver ) +" +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-mpv + --without-pamtester + --without-pandoc + --with-pam-service-name=system-auth + ) + 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[@]}" +} -- 2.21.0