Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Packages
desktop
Commits
a128df82
Commit
a128df82
authored
Jul 31, 2016
by
gnastyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fingerprint-gui: imported FS1601
parent
d6e0b6ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
fingerprint-gui/PKGBUILD
fingerprint-gui/PKGBUILD
+28
-0
fingerprint-gui/fingerprint-gui.install
fingerprint-gui/fingerprint-gui.install
+56
-0
No files found.
fingerprint-gui/PKGBUILD
0 → 100644
View file @
a128df82
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/"
}
fingerprint-gui/fingerprint-gui.install
0 → 100644
View file @
a128df82
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
=
04
83
--
attr
-
match
=
idProduct
=
$ID
done
for
ID
in
2015
2016
1000
1001
3000
;
do
udevadm
trigger
--
subsystem
-
match
=
usb
--
attr
-
match
=
idVendor
=
147
e
--
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment