system/fprintd: Add official patches.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Fabio Bas 2023-03-11 22:11:26 +07:00 committed by Willy Sudiarto Raharjo
parent 6c329d8604
commit bfc0613d5f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 9 deletions

View file

@ -5,5 +5,13 @@ fingerprint authentication to OSes, desktop environments and
applications.
It also includes small command-line utilities if your desktop
environment does not integrate support.
A PAM module to implement user login (pam_fprintd) is unavailable on
Slackware since it requires systemd.
A PAM module to implement user login (pam_fprintd) is available.
To enable it add these lines on top of /etc/pam.d/sddm:
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so
And /etc/pam.d/kde:
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fprintd
VERSION=${VERSION:-1.94.2}
SRCVERSION=v${VERSION}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -77,18 +77,26 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Disable tests since tehy require various python modules
sed '154,158 {s/^/#/}' -i meson.build
sed '204,205 {s/^/#/}' -i meson.build
sed -e "/subdir('tests')/ s/^#*/#/" -i meson.build
# Patches
if [ -d $CWD/patches ]; then
for file in $CWD/patches/*.patch ; do
if [ -f $file ]; then
cat $file | patch -p1 --verbose || exit 1
fi
done
fi
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson .. \
meson setup .. \
-Dman=true \
-Dgtk_doc=false \
-Dsystemd=false \
-Dpam=false \
-Dlibsystemd=libelogind \
-Dpam=true \
-Dpam_modules_dir=/lib${LIBDIRSUFFIX}/security \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \