x11-misc/xsecurelock: new package, add 1.9.0

Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
Daichi Yamamoto
2024-04-19 08:53:47 +09:00
parent b3dd9ae5e2
commit 4c55623244
3 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST xsecurelock-1.9.0.tar.gz 222849 BLAKE2B 2284e47ae7dcb193e0cc004b1adeafb560ede89c5c6fbf15eef4f2f9b6b098123e0420726ab05cec3b99e55578e4ef5b206faef9a90a5f73fc26e1606458cd52 SHA512 23a3c0ac6302bf9550f26fd7a16034dc19899d2523e2211040332cc7ffd14927b9b6af7fdd577ab65e2a5f5c7d0b2b7156b1e2812d40bb4dc0d2ca04c6fc53cc

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>dev@dyama.net</email>
<name>Daichi Yamamoto</name>
</maintainer>
<use>
<flag name="mplayer">Install the saver_mplayer module</flag>
<flag name="mpv">Install the saver_mpv module</flag>
<flag name="xscreensaver">Install the saver_xscreensaver module</flag>
</use>
<upstream>
<remote-id type="github">google/xsecurelock</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,67 @@
# Copyright 2024 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/xsecurelock/releases/download/v${PV}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mplayer mpv xscreensaver"
DEPEND="
dev-libs/libbsd
media-libs/fontconfig
sys-libs/pam
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXft
x11-libs/libXmu
x11-libs/libXrandr
mplayer? ( media-video/mplayer )
mpv? ( media-video/mpv )
xscreensaver? ( x11-misc/xscreensaver )
"
RDEPEND="${DEPEND}
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-pamtester
--without-pandoc
--with-pam-service-name=system-auth
)
use mplayer || myeconfargs+=( --without-mplayer )
use mpv || myeconfargs+=( --without-mpv )
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[@]}"
}