mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
x11-misc/xsecurelock: new package, add 1.9.0
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
1
x11-misc/xsecurelock/Manifest
Normal file
1
x11-misc/xsecurelock/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST xsecurelock-1.9.0.tar.gz 222849 BLAKE2B 2284e47ae7dcb193e0cc004b1adeafb560ede89c5c6fbf15eef4f2f9b6b098123e0420726ab05cec3b99e55578e4ef5b206faef9a90a5f73fc26e1606458cd52 SHA512 23a3c0ac6302bf9550f26fd7a16034dc19899d2523e2211040332cc7ffd14927b9b6af7fdd577ab65e2a5f5c7d0b2b7156b1e2812d40bb4dc0d2ca04c6fc53cc
|
||||
16
x11-misc/xsecurelock/metadata.xml
Normal file
16
x11-misc/xsecurelock/metadata.xml
Normal 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>
|
||||
67
x11-misc/xsecurelock/xsecurelock-1.9.0.ebuild
Normal file
67
x11-misc/xsecurelock/xsecurelock-1.9.0.ebuild
Normal 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[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user