From fa2256c21fc4638190a48679dabcd8cad8e072e8 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.7.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.7.0.ebuild diff --git a/x11-misc/xsecurelock/Manifest b/x11-misc/xsecurelock/Manifest new file mode 100644 index 0000000000..ecb8b18382 --- /dev/null +++ b/x11-misc/xsecurelock/Manifest @@ -0,0 +1 @@ +DIST xsecurelock-1.7.0.tar.gz 219377 BLAKE2B 0f8db60fcb3efab101f026142b72687d61a084b000e9978d159f3d9a9d22be539591ca2a80b01ae3419315cc09dac1cb6d0002884f3c854f02882952e901ff6d SHA512 b3b5404199bed7f0470072c9341227536f8ebe593f288b4ffdb5f4e90e3854952bae150d449cca6628e255c05640b625b56f10266362c119d46d21d51e8880a6 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.7.0.ebuild b/x11-misc/xsecurelock/xsecurelock-1.7.0.ebuild new file mode 100644 index 0000000000..d204d6ba92 --- /dev/null +++ b/x11-misc/xsecurelock/xsecurelock-1.7.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 + 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 + --without-xf86misc + --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.26.2