From 8802e9775940bf8a9c03dc9f13d523545d250c9d Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 16:58:39 +0100 Subject: [PATCH 1/6] Testing newer fprint ebuild --- sys-auth/fprintd/Manifest | 2 + sys-auth/fprintd/fprintd-0.8.0.ebuild | 63 +++++++++++++++++++ sys-auth/libfprint/Manifest | 6 ++ .../files/libfprint-0.5.0-automake-1.13.patch | 24 +++++++ .../libfprint-0.5.0-support-147e_2020.patch | 48 ++++++++++++++ .../libfprint-0.6.0-fix-udev-rules.patch | 23 +++++++ .../libfprint-0.8.0-fix-udev-rules.patch | 23 +++++++ sys-auth/libfprint/libfprint-0.7.0.ebuild | 58 +++++++++++++++++ 8 files changed, 247 insertions(+) create mode 100644 sys-auth/fprintd/Manifest create mode 100644 sys-auth/fprintd/fprintd-0.8.0.ebuild create mode 100644 sys-auth/libfprint/Manifest create mode 100644 sys-auth/libfprint/files/libfprint-0.5.0-automake-1.13.patch create mode 100644 sys-auth/libfprint/files/libfprint-0.5.0-support-147e_2020.patch create mode 100644 sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch create mode 100644 sys-auth/libfprint/files/libfprint-0.8.0-fix-udev-rules.patch create mode 100644 sys-auth/libfprint/libfprint-0.7.0.ebuild diff --git a/sys-auth/fprintd/Manifest b/sys-auth/fprintd/Manifest new file mode 100644 index 0000000..ce9b57b --- /dev/null +++ b/sys-auth/fprintd/Manifest @@ -0,0 +1,2 @@ +DIST fprintd-0.8.0.tar.bz2 73740 BLAKE2B 3d8f9e16b9895c0cf0a3fb5a7a121c3ceb9eb4883f9523400224f52d8c5d1525ce09aaef87a86ddd2b908810ab03fe78e976ee349730b8136545a6158a83a16d SHA512 5750395ba9c55ca68f05ad2842b5919debe57479cd773a627e65efad7303f58b85b9f73cf663479d8bbfd42f40542d6c0d862dcc6aa24d2acba60e74c0062f8e +EBUILD fprintd-0.8.0.ebuild 1517 BLAKE2B b2da7cefc22cd6a78cf2a2541451614887b91cfb1b6df6b01a0ccb0443f0aed518219609de09d0c243506718fabd6a535945788961b68f239ac0a2d14a4f73f6 SHA512 278a8e6c01a32ffe906b3ee4a89ee579f2ee3b2ab914358bc434fab8f35883e0cd9310b9618add7d58f5b6719e82def1e9edf15e287d88a2c1a81cbf389b299c diff --git a/sys-auth/fprintd/fprintd-0.8.0.ebuild b/sys-auth/fprintd/fprintd-0.8.0.ebuild new file mode 100644 index 0000000..23d5ec0 --- /dev/null +++ b/sys-auth/fprintd/fprintd-0.8.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools pam systemd versionator + +DESCRIPTION="D-Bus service to access fingerprint readers" +HOMEPAGE="https://cgit.freedesktop.org/libfprint/fprintd/" +MY_PV="V_$(replace_all_version_separators _)" +SRC_URI="https://cgit.freedesktop.org/libfprint/${PN}/snapshot/${MY_PV}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc pam static-libs" + +RDEPEND="dev-libs/dbus-glib + dev-libs/glib:2 + sys-auth/libfprint + sys-auth/polkit + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + dev-util/gtk-doc + dev-util/gtk-doc-am + dev-util/intltool + doc? ( dev-libs/libxml2 dev-libs/libxslt )" + +S=${WORKDIR}/${MY_PV} + +src_prepare() { + eautoreconf +} + +src_configure() { + econf --disable-silent-rules \ + $(use_enable pam) \ + $(use_enable static-libs static) \ + $(use_enable doc gtk-doc-html) \ + $(systemd_with_unitdir) +} + +src_install() { + emake DESTDIR="${D}" install \ + pammoddir=$(getpam_mod_dir) + + keepdir /var/lib/fprint + + find "${D}" -name "*.la" -delete || die + + dodoc AUTHORS NEWS README{,.transifex} TODO + newdoc pam/README README.pam_fprintd + if use doc ; then + insinto /usr/share/doc/${PF}/html + doins doc/{fprintd-docs,version}.xml + insinto /usr/share/doc/${PF}/html/dbus + doins doc/dbus/net.reactivated.Fprint.{Device,Manager}.ref.xml + fi +} + +pkg_postinst() { + elog "Please take a look at README.pam_fprintd for integration docs." +} diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest new file mode 100644 index 0000000..340482f --- /dev/null +++ b/sys-auth/libfprint/Manifest @@ -0,0 +1,6 @@ +AUX libfprint-0.5.0-automake-1.13.patch 797 BLAKE2B f84501e22e85efd9e9992bfbbe89191d86dd8353efe821f457f13090ff9e19ae2899dc8ab934d26b532270ed1054daa9e6e42519dee52ea16b5ba66aea486b0e SHA512 76e059f076348beb720e4f7bf8802b101aaf1d281429cdeb8f54ca67c23a1bf198b0220e4ff67421005cc8797c310f624265d5c91e9160fd78a2a3cf9ef4a39e +AUX libfprint-0.5.0-support-147e_2020.patch 1443 BLAKE2B 77e57f424d5727d00baa82b1d50f145dbf7e464af7739d2ed8fbdf4dab367e575f8d10d9623f960f0d00689ab5619f56ed124e1a2f3f479f23faae3da7e671a3 SHA512 e8e47563fc09f5ac018a52577db4998c259884a9251b6c7c2709d4e214a1ebe5820b92739da0b1cac88114545d450409454e882591a59fd27ca981172682af9e +AUX libfprint-0.6.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d +AUX libfprint-0.8.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d +DIST libfprint-0.7.0.tar.bz2 333063 BLAKE2B 30b8c098c73dfa131117aedceffc4192c2182c6fac51fa1dbc5b37d120250e2072a9725e3ad721168bfe68ff400ea310e5fedcbd9a4cfb1f53a018b4b6e4c707 SHA512 edad540af00f551d50c63dd0a29d15566cb3c04ada452080bca8f24b2fc49b31ecf5867b850269e267e6cdd0fc9eb1c80e8b8c2043b2a8ae4c8ec76a6de897d3 +EBUILD libfprint-0.7.0.ebuild 1218 BLAKE2B e18bd9163c3efaeae41f5ab638b98ff76757bccca7f340efeff4cf2f99531792e65be8939d3bb3d7ec6f9d690ee3a5ebaaa218abe1af012a81fd6dd8aa334b43 SHA512 308cef32fc50644531d832dd1a380896686d9f1e0e7e361b4c3dd35adde20b611f24e235fe4c07330ae1142ef057a6917ed44f0819ef70989660f1158b6d4fa9 diff --git a/sys-auth/libfprint/files/libfprint-0.5.0-automake-1.13.patch b/sys-auth/libfprint/files/libfprint-0.5.0-automake-1.13.patch new file mode 100644 index 0000000..e82082a --- /dev/null +++ b/sys-auth/libfprint/files/libfprint-0.5.0-automake-1.13.patch @@ -0,0 +1,24 @@ +From 43eca622cd49b58c87157e1ff1a2fcfdfba0934e Mon Sep 17 00:00:00 2001 +From: Vasily Khoruzhick +Date: Sun, 13 Jan 2013 13:42:13 +0000 +Subject: configure.ac: Use AC_CONFIG_HEADERS + +AM_CONFIG_HEADER is obsolete, use AC_CONFIG_HEADERS instead of it. + +https://bugs.freedesktop.org/show_bug.cgi?id=59320 +--- +diff --git a/configure.ac b/configure.ac +index 6737256..978ef0d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2,7 +2,7 @@ AC_INIT([libfprint], [0.5.0]) + AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz check-news]) + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_SRCDIR([libfprint/core.c]) +-AM_CONFIG_HEADER([config.h]) ++AC_CONFIG_HEADERS([config.h]) + + # Enable silent build when available (Automake 1.11) + m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +-- +cgit v0.9.0.2-2-gbebe diff --git a/sys-auth/libfprint/files/libfprint-0.5.0-support-147e_2020.patch b/sys-auth/libfprint/files/libfprint-0.5.0-support-147e_2020.patch new file mode 100644 index 0000000..98f72ae --- /dev/null +++ b/sys-auth/libfprint/files/libfprint-0.5.0-support-147e_2020.patch @@ -0,0 +1,48 @@ +From 3b3679c900f6739f7067f8d720e15d548bb39be9 Mon Sep 17 00:00:00 2001 +From: Vasily Khoruzhick +Date: Sun, 13 Jan 2013 13:43:38 +0000 +Subject: upeke2: Add support for 147e:2020 ID + +https://bugs.freedesktop.org/show_bug.cgi?id=59320 +--- +diff --git a/libfprint/drivers/upeke2.c b/libfprint/drivers/upeke2.c +index ed8f43d..a7db54d 100644 +--- a/libfprint/drivers/upeke2.c ++++ b/libfprint/drivers/upeke2.c +@@ -46,6 +46,11 @@ + #define MSG_READ_BUF_SIZE 0x40 + #define MAX_DATA_IN_READ_BUF (MSG_READ_BUF_SIZE - 9) + ++enum { ++ UPEKE2_2016, ++ UPEKE2_2020, ++}; ++ + struct upeke2_dev { + gboolean enroll_passed; + gboolean first_verify_iteration; +@@ -848,8 +853,10 @@ static struct fpi_ssm *deinitsm_new(struct fp_dev *dev) + + static int discover(struct libusb_device_descriptor *dsc, uint32_t *devtype) + { +- /* Revision 2 is what we're interested in */ +- if (dsc->bcdDevice == 2) ++ if (dsc->idProduct == 0x2016 && dsc->bcdDevice == 2) ++ return 1; ++ ++ if (dsc->idProduct == 0x2020 && dsc->bcdDevice == 1) + return 1; + + return 0; +@@ -1453,7 +1460,8 @@ static int verify_stop(struct fp_dev *dev, gboolean iterating) + } + + static const struct usb_id id_table[] = { +- { .vendor = 0x147e, .product = 0x2016 }, ++ { .vendor = 0x147e, .product = 0x2016, .driver_data = UPEKE2_2016 }, ++ { .vendor = 0x147e, .product = 0x2020, .driver_data = UPEKE2_2020 }, + { 0, 0, 0, }, /* terminating entry */ + }; + +-- +cgit v0.9.0.2-2-gbebe diff --git a/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch b/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch new file mode 100644 index 0000000..128ac8c --- /dev/null +++ b/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch @@ -0,0 +1,23 @@ +Remove spurious \n to fix udev rule generation + +Steven Newbury : +libfprint generates 60-fprint-autosuspend.rules for all supported devices, +however there's a spurious \n before the ', MODE="0666"' which results in it +appearing on a new line after the match criteria. At least on current +systemd/udev this results in MODE="0666" being applied unconditionally to all +device nodes. This is an extremely serious security problem and effectively +gives root access to all users simply by having the ebuild emerged. + +https://bugs.gentoo.org/562218 + +--- a/libfprint/fprint-list-udev-rules.c ++++ b/libfprint/fprint-list-udev-rules.c +@@ -74,7 +74,7 @@ + if (num_printed == 0) + printf ("# %s\n", driver->full_name); + +- printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n, MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); ++ printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\", MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); + printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name); + num_printed++; + } diff --git a/sys-auth/libfprint/files/libfprint-0.8.0-fix-udev-rules.patch b/sys-auth/libfprint/files/libfprint-0.8.0-fix-udev-rules.patch new file mode 100644 index 0000000..128ac8c --- /dev/null +++ b/sys-auth/libfprint/files/libfprint-0.8.0-fix-udev-rules.patch @@ -0,0 +1,23 @@ +Remove spurious \n to fix udev rule generation + +Steven Newbury : +libfprint generates 60-fprint-autosuspend.rules for all supported devices, +however there's a spurious \n before the ', MODE="0666"' which results in it +appearing on a new line after the match criteria. At least on current +systemd/udev this results in MODE="0666" being applied unconditionally to all +device nodes. This is an extremely serious security problem and effectively +gives root access to all users simply by having the ebuild emerged. + +https://bugs.gentoo.org/562218 + +--- a/libfprint/fprint-list-udev-rules.c ++++ b/libfprint/fprint-list-udev-rules.c +@@ -74,7 +74,7 @@ + if (num_printed == 0) + printf ("# %s\n", driver->full_name); + +- printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n, MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); ++ printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\", MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); + printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name); + num_printed++; + } diff --git a/sys-auth/libfprint/libfprint-0.7.0.ebuild b/sys-auth/libfprint/libfprint-0.7.0.ebuild new file mode 100644 index 0000000..2b594ee --- /dev/null +++ b/sys-auth/libfprint/libfprint-0.7.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils udev vcs-snapshot + +MY_PV="V_${PV//./_}" +DESCRIPTION="library to add support for consumer fingerprint readers" +HOMEPAGE="https://cgit.freedesktop.org/libfprint/libfprint/" +SRC_URI="https://cgit.freedesktop.org/${PN}/${PN}/snapshot/${MY_PV}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86" +IUSE="debug static-libs vanilla" + +RDEPEND="virtual/libusb:1 + dev-libs/glib:2 + dev-libs/nss + x11-libs/pixman" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-fix-udev-rules.patch" +) + +src_prepare() { + if ! use vanilla ; then + eapply "${WORKDIR}"/${P}_vfs0050.patch + fi + + default + + # upeke2 and fdu2000 were missing from all_drivers. + sed -e '/^all_drivers=/s:"$: upeke2 fdu2000":' \ + -i configure.ac || die + + eautoreconf +} + +src_configure() { + econf \ + --with-drivers=all \ + $(use_enable debug debug-log) \ + $(use_enable static-libs static) \ + -enable-udev-rules \ + --with-udev-rules-dir=$(get_udevdir)/rules.d +} + +src_install() { + default + + prune_libtool_files + + dodoc AUTHORS HACKING NEWS README THANKS TODO +} From bda6efa9ba8c45fb6b98d3b66b4a7ecde91de741 Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 17:48:17 +0100 Subject: [PATCH 2/6] Add missing patch just in case. --- .../libfprint-0.7.0-fix-udev-rules.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys-auth/libfprint/files/libfprint-0.7.0-fix-udev-rules.patch diff --git a/sys-auth/libfprint/files/libfprint-0.7.0-fix-udev-rules.patch b/sys-auth/libfprint/files/libfprint-0.7.0-fix-udev-rules.patch new file mode 100644 index 0000000..128ac8c --- /dev/null +++ b/sys-auth/libfprint/files/libfprint-0.7.0-fix-udev-rules.patch @@ -0,0 +1,23 @@ +Remove spurious \n to fix udev rule generation + +Steven Newbury : +libfprint generates 60-fprint-autosuspend.rules for all supported devices, +however there's a spurious \n before the ', MODE="0666"' which results in it +appearing on a new line after the match criteria. At least on current +systemd/udev this results in MODE="0666" being applied unconditionally to all +device nodes. This is an extremely serious security problem and effectively +gives root access to all users simply by having the ebuild emerged. + +https://bugs.gentoo.org/562218 + +--- a/libfprint/fprint-list-udev-rules.c ++++ b/libfprint/fprint-list-udev-rules.c +@@ -74,7 +74,7 @@ + if (num_printed == 0) + printf ("# %s\n", driver->full_name); + +- printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n, MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); ++ printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\", MODE=\"0666\"\n", driver->id_table[i].vendor, driver->id_table[i].product); + printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name); + num_printed++; + } From 88b82efa2a3b72bd3379360b3531ff380f0ea46c Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 20:11:02 +0100 Subject: [PATCH 3/6] Updated digest in manifest --- sys-auth/libfprint/Manifest | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest index 340482f..e435700 100644 --- a/sys-auth/libfprint/Manifest +++ b/sys-auth/libfprint/Manifest @@ -1,6 +1,7 @@ AUX libfprint-0.5.0-automake-1.13.patch 797 BLAKE2B f84501e22e85efd9e9992bfbbe89191d86dd8353efe821f457f13090ff9e19ae2899dc8ab934d26b532270ed1054daa9e6e42519dee52ea16b5ba66aea486b0e SHA512 76e059f076348beb720e4f7bf8802b101aaf1d281429cdeb8f54ca67c23a1bf198b0220e4ff67421005cc8797c310f624265d5c91e9160fd78a2a3cf9ef4a39e AUX libfprint-0.5.0-support-147e_2020.patch 1443 BLAKE2B 77e57f424d5727d00baa82b1d50f145dbf7e464af7739d2ed8fbdf4dab367e575f8d10d9623f960f0d00689ab5619f56ed124e1a2f3f479f23faae3da7e671a3 SHA512 e8e47563fc09f5ac018a52577db4998c259884a9251b6c7c2709d4e214a1ebe5820b92739da0b1cac88114545d450409454e882591a59fd27ca981172682af9e AUX libfprint-0.6.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d +AUX libfprint-0.7.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d AUX libfprint-0.8.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d DIST libfprint-0.7.0.tar.bz2 333063 BLAKE2B 30b8c098c73dfa131117aedceffc4192c2182c6fac51fa1dbc5b37d120250e2072a9725e3ad721168bfe68ff400ea310e5fedcbd9a4cfb1f53a018b4b6e4c707 SHA512 edad540af00f551d50c63dd0a29d15566cb3c04ada452080bca8f24b2fc49b31ecf5867b850269e267e6cdd0fc9eb1c80e8b8c2043b2a8ae4c8ec76a6de897d3 EBUILD libfprint-0.7.0.ebuild 1218 BLAKE2B e18bd9163c3efaeae41f5ab638b98ff76757bccca7f340efeff4cf2f99531792e65be8939d3bb3d7ec6f9d690ee3a5ebaaa218abe1af012a81fd6dd8aa334b43 SHA512 308cef32fc50644531d832dd1a380896686d9f1e0e7e361b4c3dd35adde20b611f24e235fe4c07330ae1142ef057a6917ed44f0819ef70989660f1158b6d4fa9 From 5f010a1cf1524226c564254ec73ba01b3d5bfcaf Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 20:15:35 +0100 Subject: [PATCH 4/6] Updated digest in manifest --- sys-auth/libfprint/libfprint-0.7.0.ebuild | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys-auth/libfprint/libfprint-0.7.0.ebuild b/sys-auth/libfprint/libfprint-0.7.0.ebuild index 2b594ee..03a5cff 100644 --- a/sys-auth/libfprint/libfprint-0.7.0.ebuild +++ b/sys-auth/libfprint/libfprint-0.7.0.ebuild @@ -22,20 +22,20 @@ RDEPEND="virtual/libusb:1 DEPEND="${RDEPEND} virtual/pkgconfig" -PATCHES=( - "${FILESDIR}/${P}-fix-udev-rules.patch" -) +#PATCHES=( +# "${FILESDIR}/${P}-fix-udev-rules.patch" +#) src_prepare() { if ! use vanilla ; then - eapply "${WORKDIR}"/${P}_vfs0050.patch + #eapply "${WORKDIR}"/${P}_vfs0050.patch fi default # upeke2 and fdu2000 were missing from all_drivers. - sed -e '/^all_drivers=/s:"$: upeke2 fdu2000":' \ - -i configure.ac || die +# sed -e '/^all_drivers=/s:"$: upeke2 fdu2000":' \ +# -i configure.ac || die eautoreconf } From 8fa8e675289a40e356f0beb4977eb1641a99d3ae Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 20:18:36 +0100 Subject: [PATCH 5/6] Updated digest in manifest, fixed ebuild again (Warn: removed some custom patches) --- sys-auth/libfprint/Manifest | 2 +- sys-auth/libfprint/libfprint-0.7.0.ebuild | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest index e435700..5086638 100644 --- a/sys-auth/libfprint/Manifest +++ b/sys-auth/libfprint/Manifest @@ -4,4 +4,4 @@ AUX libfprint-0.6.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c548254 AUX libfprint-0.7.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d AUX libfprint-0.8.0-fix-udev-rules.patch 1436 BLAKE2B 0e1d31c33ba0a1462e4c5482545802a253fad032a2148debe1be9a99452257e15c3a84df7ff74c5834718aeaa404a154a23f0f8cce634bc568a6f60b6327f4b7 SHA512 b3b191814e0decccaa6e6b1edad70db23e756c319e512f0f236a62845de41ba1982b510f3b0edd699202ba8de9f56afa68a9fef000ac88a61c1ae9d8d5d8a55d DIST libfprint-0.7.0.tar.bz2 333063 BLAKE2B 30b8c098c73dfa131117aedceffc4192c2182c6fac51fa1dbc5b37d120250e2072a9725e3ad721168bfe68ff400ea310e5fedcbd9a4cfb1f53a018b4b6e4c707 SHA512 edad540af00f551d50c63dd0a29d15566cb3c04ada452080bca8f24b2fc49b31ecf5867b850269e267e6cdd0fc9eb1c80e8b8c2043b2a8ae4c8ec76a6de897d3 -EBUILD libfprint-0.7.0.ebuild 1218 BLAKE2B e18bd9163c3efaeae41f5ab638b98ff76757bccca7f340efeff4cf2f99531792e65be8939d3bb3d7ec6f9d690ee3a5ebaaa218abe1af012a81fd6dd8aa334b43 SHA512 308cef32fc50644531d832dd1a380896686d9f1e0e7e361b4c3dd35adde20b611f24e235fe4c07330ae1142ef057a6917ed44f0819ef70989660f1158b6d4fa9 +EBUILD libfprint-0.7.0.ebuild 1227 BLAKE2B b87ef2e127e9f84ca33391cc980c354aa2dd08120f43e819364ce8658d7413096bc03a699d831cd126c61b70ecbef31a9d628954163754833da27c4fc974cd2a SHA512 c55d9d783c5d1fd14eed091efcddc00e1d9084cd21fc79148018e4b84575ed8c6672fa5f98a8d0fc96253da5aec60eaa9061f71ba66a34eed54cfe6d380f5c4b diff --git a/sys-auth/libfprint/libfprint-0.7.0.ebuild b/sys-auth/libfprint/libfprint-0.7.0.ebuild index 03a5cff..52c3c7e 100644 --- a/sys-auth/libfprint/libfprint-0.7.0.ebuild +++ b/sys-auth/libfprint/libfprint-0.7.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://cgit.freedesktop.org/${PN}/${PN}/snapshot/${MY_PV}.tar.bz2 -> $ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86" -IUSE="debug static-libs vanilla" +IUSE="debug static-libs" #vanilla RDEPEND="virtual/libusb:1 dev-libs/glib:2 @@ -27,9 +27,9 @@ DEPEND="${RDEPEND} #) src_prepare() { - if ! use vanilla ; then +# if ! use vanilla ; then #eapply "${WORKDIR}"/${P}_vfs0050.patch - fi +# fi default From 2c8f08abcc8ff1d447cca4a0a184dfe363f087bb Mon Sep 17 00:00:00 2001 From: kuratsune Date: Thu, 22 Mar 2018 20:48:30 +0100 Subject: [PATCH 6/6] Test, trying to get the pam module working... --- sys-auth/fprintd/Manifest | 2 +- sys-auth/fprintd/fprintd-0.8.0.ebuild | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-auth/fprintd/Manifest b/sys-auth/fprintd/Manifest index ce9b57b..49ceee9 100644 --- a/sys-auth/fprintd/Manifest +++ b/sys-auth/fprintd/Manifest @@ -1,2 +1,2 @@ DIST fprintd-0.8.0.tar.bz2 73740 BLAKE2B 3d8f9e16b9895c0cf0a3fb5a7a121c3ceb9eb4883f9523400224f52d8c5d1525ce09aaef87a86ddd2b908810ab03fe78e976ee349730b8136545a6158a83a16d SHA512 5750395ba9c55ca68f05ad2842b5919debe57479cd773a627e65efad7303f58b85b9f73cf663479d8bbfd42f40542d6c0d862dcc6aa24d2acba60e74c0062f8e -EBUILD fprintd-0.8.0.ebuild 1517 BLAKE2B b2da7cefc22cd6a78cf2a2541451614887b91cfb1b6df6b01a0ccb0443f0aed518219609de09d0c243506718fabd6a535945788961b68f239ac0a2d14a4f73f6 SHA512 278a8e6c01a32ffe906b3ee4a89ee579f2ee3b2ab914358bc434fab8f35883e0cd9310b9618add7d58f5b6719e82def1e9edf15e287d88a2c1a81cbf389b299c +EBUILD fprintd-0.8.0.ebuild 1565 BLAKE2B 63046d9cf6372cac0751e09736871542e3d41ed0bb5a2aa64fb64352cef67db259cb7c91623919b74ac414c8f1242a896677251a49c5ad6fb23dfb3cbb76b2c6 SHA512 934ab2d5efbac6835ac484331602f5e35ebce661327dfe6177a941895f0f6b08bb559e6b87b91bb3088713f749b90f66be1d48d05944b2fdde4530ae7756bd00 diff --git a/sys-auth/fprintd/fprintd-0.8.0.ebuild b/sys-auth/fprintd/fprintd-0.8.0.ebuild index 23d5ec0..385f907 100644 --- a/sys-auth/fprintd/fprintd-0.8.0.ebuild +++ b/sys-auth/fprintd/fprintd-0.8.0.ebuild @@ -44,6 +44,7 @@ src_install() { emake DESTDIR="${D}" install \ pammoddir=$(getpam_mod_dir) + dopammod "$(getpam_mod_dir)/pam_fprintd.so" keepdir /var/lib/fprint find "${D}" -name "*.la" -delete || die