Commit a128df82 authored by gnastyle's avatar gnastyle

fingerprint-gui: imported FS1601

parent d6e0b6ad
pkgname=fingerprint-gui
pkgver=1.08
pkgrel=1
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/"
license=('GPL')
depends=('libfprint' 'libfakekey' 'polkit-qt4' 'qca' 'libusb')
source=("http://ullrich-online.cc/nview/Appliance/fingerprint/download/${pkgname}-${pkgver}.tar.gz")
install="${pkgname}.install"
sha1sums=('45ea54aa1bf875160a4bc547e8bcca5e156099a0')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
qmake PREFIX=/usr LIB=/usr/lib
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}/" install
install -Dm644 "CHANGELOG" "COPYING" "${pkgdir}/usr/share/doc/${pkgname}/"
install -dm770 "${pkgdir}/var/upek_data"
install -Dm644 "upek/upek.cfg" "${pkgdir}/etc/"
install -Dm644 "upek/91-fingerprint-gui-upek.rules" "${pkgdir}/etc/udev/rules.d/"
install -Dm644 upek/lib64/libbsapi.so.* "${pkgdir}/usr/lib/"
}
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 {} \;
# icon update
update-desktop-database -q
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_remove() {
getent group plugdev &> /dev/null && groupdel plugdev > /dev/null
update-desktop-database -q
xdg-icon-resource forceupdate --theme hicolor &> /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