From 16c61c3cbb35d8516f8fd6e78f5675f4d55c90e9 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.3.3.ebuild | 59 +++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 x11-misc/xsecurelock/Manifest create mode 100644 x11-misc/xsecurelock/metadata.xml create mode 100644 x11-misc/xsecurelock/xsecurelock-1.3.3.ebuild diff --git a/x11-misc/xsecurelock/Manifest b/x11-misc/xsecurelock/Manifest new file mode 100644 index 000000000..c9d7cf14c --- /dev/null +++ b/x11-misc/xsecurelock/Manifest @@ -0,0 +1 @@ +DIST xsecurelock-1.3.3.tar.gz 207862 BLAKE2B 506642b3a8983cd9421b18bd23cde0c9a5b4fb37d18a9f417cad117e1e94fe04ad92082123f5f4072b6f9b3c91450aaec17ceef66f5998f281e5204ec548f572 SHA512 7d31c6ca4421627caf4a79e7d6b39791a4a2fcd817ff0810dbdcc49d2b5ca138400b3ebae5ea662651e80e78fb110dc85c439749cf47545dce06319ed21df3c3 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.3.3.ebuild b/x11-misc/xsecurelock/xsecurelock-1.3.3.ebuild new file mode 100644 index 000000000..da04197bc --- /dev/null +++ b/x11-misc/xsecurelock/xsecurelock-1.3.3.ebuild @@ -0,0 +1,59 @@ +# 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=" + 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_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