Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37401684
en ru br
Репозитории ALT
S:1.94.2-alt1
5.1: 0.1-alt2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: fprintd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: fprintd-0.8.0.patch
Скачать


 .gear/rules                                        |   5 +
 .../tags/4ab3d3034044b08c5da7d23e500cc4cd39d4107d  |   6 ++
 .gear/tags/list                                    |   1 +
 fprintd-0.4.1-alt-build.patch                      |  13 +++
 fprintd-0.4.1-alt-pam_docs.patch                   |  14 +++
 fprintd.spec                                       | 113 +++++++++++++++++++++
 src/device.xml                                     |  13 +++
 system-auth-fprintd                                |   7 ++
 8 files changed, 172 insertions(+)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..69671d6
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,5 @@
+copy: *.patch
+copy: system-auth-fprintd
+tar: v@version@:.
+diff: v@version@:. . name=@name@-@version@.patch
+
diff --git a/.gear/tags/4ab3d3034044b08c5da7d23e500cc4cd39d4107d b/.gear/tags/4ab3d3034044b08c5da7d23e500cc4cd39d4107d
new file mode 100644
index 0000000..a85e5de
--- /dev/null
+++ b/.gear/tags/4ab3d3034044b08c5da7d23e500cc4cd39d4107d
@@ -0,0 +1,6 @@
+object 8eba30992053d045bed534546586bb4f79ff8814
+type commit
+tag v0.8.0
+tagger Alexey Shabalin <shaba@altlinux.ru> 1521241396 +0300
+
+v0.8.0
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..6426c00
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+4ab3d3034044b08c5da7d23e500cc4cd39d4107d v0.8.0
diff --git a/fprintd-0.4.1-alt-build.patch b/fprintd-0.4.1-alt-build.patch
new file mode 100644
index 0000000..3c0b797
--- /dev/null
+++ b/fprintd-0.4.1-alt-build.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.am b/Makefile.am
+index 67d3899..c2c08c1 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -4,8 +4,6 @@ EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
+ 
+ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+ 
+-all: check create-pot
+-
+ check: check-translations
+ 
+ create-pot:
diff --git a/fprintd-0.4.1-alt-pam_docs.patch b/fprintd-0.4.1-alt-pam_docs.patch
new file mode 100644
index 0000000..8706717
--- /dev/null
+++ b/fprintd-0.4.1-alt-pam_docs.patch
@@ -0,0 +1,14 @@
+diff --git a/pam/README b/pam/README
+index 9174deb..77603d4 100644
+--- a/pam/README
++++ b/pam/README
+@@ -14,6 +14,9 @@ Options:
+ * You can add the "debug" option on the pam configuration file line above,
+   this will log more information from PAM to the file specified in your
+   syslog configuration (/var/log/secure by default on Fedora)
++* You can redefine number of maximum tries of finger enrollment and
++  authorization timeout in pam configuration file using next options:
++  "max_tries=<num>" and "timeout=<num>". Default is 3 and 30 respectively.
+ 
+ Known issues:
+ * pam_fprintd does not support identifying the user itself as
diff --git a/fprintd.spec b/fprintd.spec
new file mode 100644
index 0000000..90e1f0d
--- /dev/null
+++ b/fprintd.spec
@@ -0,0 +1,113 @@
+%define _localstatedir %{_var}
+
+Name: fprintd
+Version: 0.8.0
+Release: alt1
+Summary: D-Bus service for Fingerprint reader access
+Group: System/Servers
+Url: https://www.freedesktop.org/wiki/Software/fprint/fprintd
+License: GPLv2+
+
+Source: %name-%version.tar
+Source1: system-auth-fprintd
+Patch: %name-%version.patch
+Patch1: %name-0.4.1-alt-build.patch
+Patch3: %name-0.4.1-alt-pam_docs.patch
+
+BuildRequires: libdbus-glib-devel
+BuildRequires: pkgconfig(libfprint) > 0.1.0
+BuildRequires: pkgconfig(glib-2.0) pkgconfig(dbus-glib-1)
+BuildRequires: pkgconfig(gmodule-2.0) pkgconfig(polkit-gobject-1) >= 0.91 pkgconfig(gio-2.0) >= 2.26
+BuildRequires: libpam0-devel
+BuildRequires: gtk-doc intltool
+BuildRequires: /usr/bin/pod2man /usr/bin/xmllint /usr/bin/xsltproc docbook-dtds
+BuildRequires: pkgconfig(systemd)
+
+%description
+D-Bus service to access fingerprint readers.
+
+%package -n pam_fprintd
+Summary: PAM module for fingerprint authentication
+Provides: pam_fprint
+Obsoletes: pam_fprint <= 0.2
+Group: System/Base
+
+%description -n pam_fprintd
+PAM module that uses the fprintd D-Bus service for fingerprint
+authentication.
+
+%package devel
+Summary: Development files for %name
+Requires: %name = %version-%release
+Group: Development/Other
+BuildArch: noarch
+
+%description devel
+Development documentation for fprintd, the D-Bus service for
+fingerprint readers access.
+
+%prep
+%setup -q
+%patch -p1
+%patch1 -p1
+%patch3 -p1
+
+%build
+%autoreconf
+%configure \
+	--libdir=/%_lib \
+	--libexecdir=%_prefix/libexec \
+	--enable-gtk-doc \
+	--enable-pam \
+	--with-systemdsystemunitdir=%_unitdir \
+	--disable-static
+%make_build
+
+%install
+%makeinstall_std
+mkdir -p %buildroot%_sysconfdir/pam.d
+cp system-auth-fprintd %buildroot%_sysconfdir/pam.d
+mkdir -p %buildroot%_localstatedir/lib/fprint
+rm -fv %buildroot/%_lib/security/pam_fprintd.{a,la,so.*}
+%find_lang %name
+
+%files -f %name.lang
+%doc README COPYING AUTHORS TODO
+%config(noreplace) %_sysconfdir/fprintd.conf
+%_sysconfdir/pam.d/system-auth-fprintd
+%_sysconfdir/dbus-1/system.d/net.reactivated.Fprint.conf
+%_bindir/fprintd-*
+%_prefix/libexec/fprintd
+%_unitdir/fprintd.service
+%_datadir/dbus-1/system-services/net.reactivated.Fprint.service
+%_datadir/polkit-1/actions/net.reactivated.fprint.device.policy
+%dir %_localstatedir/lib/fprint
+%_man1dir/fprintd.1*
+
+%files -n pam_fprintd
+%doc pam/README
+/%_lib/security/pam_fprintd.so
+
+%files devel
+%_datadir/gtk-doc/html/fprintd
+%_datadir/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
+%_datadir/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
+
+%changelog
+* Sat Mar 17 2018 Alexey Shabalin <shaba@altlinux.ru> 0.8.0-alt1
+- 0.8.0
+
+* Thu Mar 15 2018 Igor Vlasenko <viy@altlinux.ru> 0.4.1-alt1.1
+- NMU: added URL
+
+* Fri Oct 26 2012 Ivan Ovcherenko <asdus@altlinux.org> 0.4.1-alt1
+- 0.4.1 with git updates (closes: #27851)
+
+* Mon Aug 17 2009 Valery Inozemtsev <shrek@altlinux.ru> 0.1-alt3
+- ported to PolicyKit 1
+
+* Wed May 27 2009 Valery Inozemtsev <shrek@altlinux.ru> 0.1-alt2
+- pam_fprintd: fixed obsoletes
+
+* Wed May 27 2009 Valery Inozemtsev <shrek@altlinux.ru> 0.1-alt1
+- initial release
diff --git a/src/device.xml b/src/device.xml
index 99912ad..a385366 100644
--- a/src/device.xml
+++ b/src/device.xml
@@ -189,6 +189,12 @@
 						</doc:definition>
 					</doc:item>
 					<doc:item>
+						<doc:term>verify-disconnected</doc:term>
+						<doc:definition>
+							The device was disconnected during the verification, no other actions should be taken, and you shouldn't use the device any more.
+						</doc:definition>
+					</doc:item>
+					<doc:item>
 						<doc:term>verify-unknown-error</doc:term>
 						<doc:definition>
 							An unknown error occurred (usually a driver problem), <doc:ref type="method" to="Device.VerifyStop">Device.VerifyStop</doc:ref> should now be called.
@@ -253,6 +259,13 @@
 						</doc:definition>
 					</doc:item>
 					<doc:item>
+						<doc:term>enroll-disconnected</doc:term>
+						<doc:definition>
+							The device was disconnected during the enrollment, no other actions should be taken, and you shouldn't use the device any more.
+
+						</doc:definition>
+					</doc:item>
+					<doc:item>
 						<doc:term>enroll-unknown-error</doc:term>
 						<doc:definition>
 							An unknown error occurred (usually a driver problem), <doc:ref type="method" to="Device.EnrollStop">Device.EnrollStop</doc:ref> should now be called.
diff --git a/system-auth-fprintd b/system-auth-fprintd
new file mode 100644
index 0000000..84f07c2
--- /dev/null
+++ b/system-auth-fprintd
@@ -0,0 +1,7 @@
+#%PAM-1.0
+auth		[success=1 default=ignore]	pam_fprintd.so max_tries=3 timeout=30
+auth		substack	system-auth-local
+auth		required	pam_permit.so
+account		include		system-auth-local
+password	include		system-auth-local
+session		include		system-auth-local
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin