Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/thinkfinger/, sys-auth/thinkfinger/files/
Date: Sat, 29 Aug 2020 12:30:39
Message-Id: 1598704203.be32513821ebdc64d042d843c4d1849e19c3ff63.soap@gentoo
1 commit: be32513821ebdc64d042d843c4d1849e19c3ff63
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 12:30:03 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 12:30:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be325138
7
8 sys-auth/thinkfinger: Port to EAPI 7 and GLEP 81
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 .../thinkfinger/files/0.3-carriagereturn.patch | 4 +-
14 .../files/0.3-direct_set_config_usb_hello.patch | 6 +--
15 .../thinkfinger/files/0.3-send-sync-event.patch | 4 +-
16 sys-auth/thinkfinger/files/0.3-tftoolgroup.patch | 4 +-
17 sys-auth/thinkfinger/thinkfinger-0.3-r3.ebuild | 48 +++++++++++-----------
18 5 files changed, 33 insertions(+), 33 deletions(-)
19
20 diff --git a/sys-auth/thinkfinger/files/0.3-carriagereturn.patch b/sys-auth/thinkfinger/files/0.3-carriagereturn.patch
21 index 731f1531947..528731e27d9 100644
22 --- a/sys-auth/thinkfinger/files/0.3-carriagereturn.patch
23 +++ b/sys-auth/thinkfinger/files/0.3-carriagereturn.patch
24 @@ -1,5 +1,5 @@
25 ---- pam/pam_thinkfinger-uinput.c 2007-02-27 17:52:50.000000000 +0100
26 -+++ pam/pam_thinkfinger-uinput.c 2009-02-17 13:56:02.013033249 +0100
27 +--- a/pam/pam_thinkfinger-uinput.c
28 ++++ b/pam/pam_thinkfinger-uinput.c
29 @@ -95,6 +95,7 @@
30 /* our single key keyboard */
31 i = ioctl (*fd, UI_SET_EVBIT, EV_KEY) < 0;
32
33 diff --git a/sys-auth/thinkfinger/files/0.3-direct_set_config_usb_hello.patch b/sys-auth/thinkfinger/files/0.3-direct_set_config_usb_hello.patch
34 index 06723ad1306..2de27ab459a 100644
35 --- a/sys-auth/thinkfinger/files/0.3-direct_set_config_usb_hello.patch
36 +++ b/sys-auth/thinkfinger/files/0.3-direct_set_config_usb_hello.patch
37 @@ -1,7 +1,5 @@
38 -Index: libthinkfinger/libthinkfinger.c
39 -===================================================================
40 ---- libthinkfinger/libthinkfinger.c (revision 118)
41 -+++ libthinkfinger/libthinkfinger.c (working copy)
42 +--- a/libthinkfinger/libthinkfinger.c
43 ++++ b/libthinkfinger/libthinkfinger.c
44 @@ -265,18 +265,7 @@
45 int retval = -1;
46 char dummy[] = "\x10";
47
48 diff --git a/sys-auth/thinkfinger/files/0.3-send-sync-event.patch b/sys-auth/thinkfinger/files/0.3-send-sync-event.patch
49 index 39e0edb27ba..0fbba6e9c2a 100644
50 --- a/sys-auth/thinkfinger/files/0.3-send-sync-event.patch
51 +++ b/sys-auth/thinkfinger/files/0.3-send-sync-event.patch
52 @@ -1,5 +1,5 @@
53 ---- pam/pam_thinkfinger-uinput.c 2009-12-27 18:42:26.000000000 +0100
54 -+++ pam/pam_thinkfinger-uinput.c 2009-12-27 18:41:55.000000000 +0100
55 +--- a/pam/pam_thinkfinger-uinput.c
56 ++++ b/pam/pam_thinkfinger-uinput.c
57 @@ -34,27 +34,40 @@
58 int uinput_cr (int *fd)
59 {
60
61 diff --git a/sys-auth/thinkfinger/files/0.3-tftoolgroup.patch b/sys-auth/thinkfinger/files/0.3-tftoolgroup.patch
62 index 169b7cefe28..251c6357b17 100644
63 --- a/sys-auth/thinkfinger/files/0.3-tftoolgroup.patch
64 +++ b/sys-auth/thinkfinger/files/0.3-tftoolgroup.patch
65 @@ -1,5 +1,5 @@
66 ---- tf-tool/tf-tool.c 2007-03-30 11:00:45.000000000 +0200
67 -+++ tf-tool/tf-tool.c 2009-02-18 14:57:24.316197097 +0100
68 +--- a/tf-tool/tf-tool.c
69 ++++ b/tf-tool/tf-tool.c
70 @@ -26,6 +26,9 @@
71 #include <errno.h>
72 #include <libgen.h>
73
74 diff --git a/sys-auth/thinkfinger/thinkfinger-0.3-r3.ebuild b/sys-auth/thinkfinger/thinkfinger-0.3-r3.ebuild
75 index 730d8745e2c..5148727daa4 100644
76 --- a/sys-auth/thinkfinger/thinkfinger-0.3-r3.ebuild
77 +++ b/sys-auth/thinkfinger/thinkfinger-0.3-r3.ebuild
78 @@ -1,9 +1,9 @@
79 -# Copyright 1999-2019 Gentoo Authors
80 +# Copyright 1999-2020 Gentoo Authors
81 # Distributed under the terms of the GNU General Public License v2
82
83 -EAPI="4"
84 +EAPI=7
85
86 -inherit autotools-utils user linux-info pam
87 +inherit linux-info pam
88
89 DESCRIPTION="Support for the UPEK/SGS Thomson fingerprint reader, common in Thinkpads"
90 HOMEPAGE="http://thinkfinger.sourceforge.net/"
91 @@ -12,13 +12,15 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
92 LICENSE="GPL-2"
93 SLOT="0"
94 KEYWORDS="~amd64 ~x86"
95 -IUSE="debug pam static-libs"
96 +IUSE="debug pam"
97
98 -RDEPEND="virtual/libusb:0
99 +DEPEND="
100 + virtual/libusb:0
101 pam? ( sys-libs/pam )"
102 -DEPEND="${RDEPEND}
103 - sys-devel/libtool
104 - virtual/pkgconfig"
105 +RDEPEND="
106 + ${DEPEND}
107 + acct-group/fingerprint"
108 +BDEPEND="virtual/pkgconfig"
109
110 PATCHES=(
111 "${FILESDIR}"/${PV}-direct_set_config_usb_hello.patch
112 @@ -29,7 +31,7 @@ PATCHES=(
113 )
114
115 pkg_setup() {
116 - if use pam ; then
117 + if use pam; then
118 CONFIG_CHECK="~INPUT_UINPUT"
119 ERROR_CFG="Your kernel needs uinput for the pam module to work"
120 check_extra_config
121 @@ -37,43 +39,43 @@ pkg_setup() {
122 }
123
124 src_configure() {
125 - local myeconfargs=(
126 + econf \
127 + --disable-static \
128 $(use_enable pam) \
129 $(use_enable debug usb-debug) \
130 - "--with-securedir=$(getpam_mod_dir)"
131 - )
132 - autotools-utils_src_configure
133 + --with-securedir="$(getpam_mod_dir)"
134 +
135 + rm README.in || die
136 }
137
138 src_install() {
139 - DOCS=( AUTHORS ChangeLog NEWS README )
140 - autotools-utils_src_install
141 + default
142
143 keepdir /etc/pam_thinkfinger
144 insinto /lib/udev/rules.d
145 doins "${FILESDIR}"/60-thinkfinger.rules
146 -}
147
148 -pkg_preinst() {
149 - enewgroup fingerprint
150 + # no static archives
151 + find "${ED}" -name '*.la' -delete || die
152 }
153
154 pkg_postinst() {
155 fowners root:fingerprint /etc/pam_thinkfinger
156 fperms 710 /etc/pam_thinkfinger
157 +
158 elog "Use tf-tool --acquire to take a finger print"
159 elog "tf-tool will write the finger print file to /tmp/test.bir"
160 - elog ""
161 - if use pam ; then
162 + elog
163 +
164 + if use pam; then
165 elog "To add a fingerprint to PAM, use tf-tool --add-user USERNAME"
166 - elog ""
167 + elog
168 elog "Add the following to /etc/pam.d/system-auth after pam_env.so"
169 elog "auth sufficient pam_thinkfinger.so"
170 - elog ""
171 + elog
172 elog "Your system-auth should look similar to:"
173 elog "auth required pam_env.so"
174 elog "auth sufficient pam_thinkfinger.so"
175 elog "auth sufficient pam_unix.so try_first_pass likeauth nullok"
176 - elog ""
177 fi
178 }