From 5f26c60425e4af823124b3978ede1bbc9243ecb3 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 25 Jul 2019 15:44:01 +0200 Subject: [PATCH] x11-misc/xsecurelock: add to portage Closes: https://bugs.gentoo.org/687070 Signed-off-by: Gergely Nagy --- x11-misc/xsecurelock/Manifest | 1 + x11-misc/xsecurelock/metadata.xml | 16 +++++ x11-misc/xsecurelock/xsecurelock-1.6.0.ebuild | 68 +++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 x11-misc/xsecurelock/Manifest create mode 100644 x11-misc/xsecurelock/metadata.xml create mode 100644 x11-misc/xsecurelock/xsecurelock-1.6.0.ebuild diff --git a/x11-misc/xsecurelock/Manifest b/x11-misc/xsecurelock/Manifest new file mode 100644 index 0000000000..c21a40e7eb --- /dev/null +++ b/x11-misc/xsecurelock/Manifest @@ -0,0 +1 @@ +DIST xsecurelock-1.6.0.tar.gz 211727 BLAKE2B b06bb69832538c3227f7370937390ef8cfffa2e6aca2609e30276237f872fd8ff61406df03c40320578b9659cd7dcd14cb0fc7148b5220ae3b65307d7eed637e SHA512 8b0335f0b15769a898188591114846797715639d360113cd0803fc3052853a013c4811cabd538dc28448ddc20f52e12283cfc23ce3d6ec2ffa2b5a2e36287046 diff --git a/x11-misc/xsecurelock/metadata.xml b/x11-misc/xsecurelock/metadata.xml new file mode 100644 index 0000000000..e554fb4b34 --- /dev/null +++ b/x11-misc/xsecurelock/metadata.xml @@ -0,0 +1,16 @@ + + + + + ngg@ngg.hu + Gergely Nagy + + + proxy-maint@gentoo.org + Proxy Maintainers + + + google/xsecurelock + https://github.com/google/xsecurelock/issues + + diff --git a/x11-misc/xsecurelock/xsecurelock-1.6.0.ebuild b/x11-misc/xsecurelock/xsecurelock-1.6.0.ebuild new file mode 100644 index 0000000000..46470745ae --- /dev/null +++ b/x11-misc/xsecurelock/xsecurelock-1.6.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.23.0