Commit db8067d1 authored by Francesco Marinucci's avatar Francesco Marinucci

[testing] fingerprint-gui: switch to pacman hooks #73

parent f0ac7ac7
Pipeline #1528 failed with stages
in 1 minute and 35 seconds
pkgname=fingerprint-gui
pkgver=1.09
pkgrel=2
pkgrel=3
pkgdesc="Application for fingerprint-based authentication, automatically support UPEK fingerprint readers with non-free library"
arch=('x86_64')
url="http://www.ullrich-online.cc/fingerprint/"
......@@ -10,26 +10,25 @@ optdepends=('libusb: for libbsapi')
source=("https://github.com/maksbotan/${pkgname}/archive/v${pkgver}-qt5.tar.gz"
"fingerprint-gui-udev-path.patch"
"fingerprint-gui-udev-0050.patch")
install="${pkgname}.install"
sha1sums=('41649cfa5cb42f4ae5327095da0585425a6b3dd0'
'f75eec87ab45d0fd6a2bcf3a6282ac19843c5380'
'a9afa47bab503fa9f6798940a12365058b997b96')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}-qt5"
patch -p1 -i "${srcdir}/fingerprint-gui-udev-path.patch"
patch -p1 -i "${srcdir}/fingerprint-gui-udev-0050.patch"
cd $pkgname-$pkgver-qt5
patch -p1 -i ../fingerprint-gui-udev-path.patch
patch -p1 -i ../fingerprint-gui-udev-0050.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}-qt5"
cd $pkgname-$pkgver-qt5
qmake-qt5 PREFIX=/usr LIB=/usr/lib QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-qt5"
make INSTALL_ROOT="${pkgdir}/" install
cd $pkgname-$pkgver-qt5
make INSTALL_ROOT=$pkgdir install
make INSTALL_ROOT="${pkgdir}/" upek-rules
make INSTALL_ROOT="${pkgdir}/" upek-cfg
......
post_install() {
post_upgrade
# Re-initialize the UPEK device
if [[ `which udevadm` ]]; then
for ID in 2015 2016; do
udevadm trigger --subsystem-match=usb --attr-match=idVendor=0483 --attr-match=idProduct=$ID
done
for ID in 2015 2016 1000 1001 3000; do
udevadm trigger --subsystem-match=usb --attr-match=idVendor=147e --attr-match=idProduct=$ID
done
fi
}
post_upgrade() {
ldconfig
cat << EOF
Please make sure your user is a member of "plugdev" group if you use UPEK
non-free library:
"sudo gpasswd -a USERNAME plugdev"
and modify your PAM configuration
(e.g., /etc/pam.d/{login,su,sudo,gdm}).
fingerprint-polkit-agent conflicts with files in /etc/xdg/autostart that must
be removed:
"polkit-gnome-authentication-agent-1.desktop" and
"polkit-kde-authentication-agent-1.desktop".
Add "debug" switch to fingerprint-gui, you can see the debug log in
/var/log/auth.log
Make sure that directory "/var/lib/fingerprint-gui" and all its subdirectories
are owned by root.root with mode 755 and all files in these directories are also
owned by root.root with mode 600.
Refer to "Manual_en.html" and "CHANGELOG" for more information.
EOF
# plugdev group changes
getent group plugdev &> /dev/null || groupadd -r plugdev > /dev/null
chown -R root.plugdev "/var/upek_data"
chown root.plugdev "/etc/upek.cfg"
# fingerprint data changes
chown -R root.root "/var/lib/fingerprint-gui"
find "/var/lib/fingerprint-gui" -type d -exec chmod 755 {} \;
find "/var/lib/fingerprint-gui" -type f -exec chmod 600 {} \;
}
post_remove() {
getent group plugdev &> /dev/null && groupdel plugdev > /dev/null
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment