From 9c7977e3d8fe2ff0c253e6b4f58eca15150fb71e Mon Sep 17 00:00:00 2001 From: stinobook <51697064+stinobook@users.noreply.github.com> Date: Tue, 18 Jun 2019 15:36:51 +0200 Subject: [PATCH 1/6] Update PKGBUILD edited the version number, source url to new version and updated the sha sum for the new version. hopefully this is all that is needed to be edited. tested and worked for me --- archlinux/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index f1c58a6..e100771 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: boltgolt # Maintainer: Kelley McChesney pkgname=howdy -pkgver=2.5.0 +pkgver=2.5.1 pkgrel=1 pkgdesc="Windows Hello for Linux" arch=('x86_64') @@ -25,11 +25,11 @@ makedepends=( 'python-pip' ) backup=('usr/lib/security/howdy/config.ini') -source=("https://github.com/boltgolt/howdy/archive/v2.5.0.tar.gz" +source=("https://github.com/boltgolt/howdy/archive/v2.5.1.tar.gz" "https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz" "https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-fedora.patch" "https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-gcc8.patch") -sha256sums=('a42c278f05866a6a616e8f5dd8349e35769063a229c236e680e566c5a6580334' +sha256sums=('596c8d947422e6d419746784f900a4af931a6fc647e1324913c6ce66a146bf82' '0ef4dda35da14088afb1640266415730a6e0274bea934917beb5aca90318f853' 'acb9d1b5cf7cad73d5524334b7954431bb9b90f960980378c538907e468c34b5' '02dd9a4d8ec921ff9a2408183f290f08102e3f9e0151786ae7220a4d550bfe24') From 597ad99b6cf7ebf26609ffc15de2fd0de192b9e7 Mon Sep 17 00:00:00 2001 From: "Dmitriy O. Afanasyev" Date: Sat, 6 Jul 2019 18:46:29 +0300 Subject: [PATCH 2/6] Create howd.spec for openSUSE rpm package --- opensuse/howdy.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 opensuse/howdy.spec diff --git a/opensuse/howdy.spec b/opensuse/howdy.spec new file mode 100644 index 0000000..525ef92 --- /dev/null +++ b/opensuse/howdy.spec @@ -0,0 +1,70 @@ +# +# spec file for package howdy +# +# Copyright (c) 2019 Dmitriy O. Afanasyev, . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +Name: howdy +Version: 2.5.1 +Release: 0 +Summary: Windows Hello™ style authentication for Linux +License: MIT +Url: https://github.com/boltgolt/%{name} +Group: System/Base +Source: https://github.com/boltgolt/%{name}/archive/v%{version}.tar.gz + +BuildRequires: wget +Requires: python3-opencv +Requires: ffmpeg-4 +Requires: libv4l2-0 +Requires: pam-python +Requires: python3-dlib + +#TODO: pre and post install steps, auto conf /etc/pam.d + +%description +Windows Hello™ style authentication for Linux. Use your built-in IR emitters and camera in combination with face recognition to prove who you are. + +%prep +%setup -q -n v%{version} + +%build +## nothing to build + +%install +mkdir -p %{buildroot}%{_libdir}/security/%{name} +rm -fr src/*~ +cp -pr src/* %{buildroot}%{_libdir}/security/%{name} + +# Facial recognition model preinstalled manualy (before packaging), need to delete some files +rm -fr %{buildroot}%{_libdir}/security/%{name}/dlib-data/{Readme.md,install.sh,.gitignore} + +#Add bash completion +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions +install -Dm 644 autocomplete/%{name} %{buildroot}%{_datadir}/bash-completion/completions + +# Create an executable +mkdir -p %{buildroot}%{_bindir} +chmod +x %{buildroot}%{_libdir}/security/%{name}/cli.py +ln -s %{_libdir}/security/%{name}/cli.py %{buildroot}%{_bindir}/%{name} + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%dir %{_libdir}/security +%{_libdir}/security/%{name} +%{_datadir}/bash-completion/completions/%{name} +%config(noreplace) %{_libdir}/security/%{name}/config.ini + +%changelog +* Sun May 12 2019 Dmitriy O. Afanasyev - 2.5.1 +- Initial packaging From 571faf85ad19712536532758a95272736a91c8ee Mon Sep 17 00:00:00 2001 From: "Dmitriy O. Afanasyev" Date: Sat, 6 Jul 2019 19:13:07 +0300 Subject: [PATCH 3/6] Fix misspell in howdy.spec for openSUSE rpm --- opensuse/howdy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensuse/howdy.spec b/opensuse/howdy.spec index 525ef92..e449153 100644 --- a/opensuse/howdy.spec +++ b/opensuse/howdy.spec @@ -44,7 +44,7 @@ mkdir -p %{buildroot}%{_libdir}/security/%{name} rm -fr src/*~ cp -pr src/* %{buildroot}%{_libdir}/security/%{name} -# Facial recognition model preinstalled manualy (before packaging), need to delete some files +# Facial recognition model preinstalled manually (before packaging), need to delete some files rm -fr %{buildroot}%{_libdir}/security/%{name}/dlib-data/{Readme.md,install.sh,.gitignore} #Add bash completion From f912f3a539b7991f083e79e7439f4a581aadcf99 Mon Sep 17 00:00:00 2001 From: boltgolt Date: Fri, 2 Aug 2019 12:03:32 +0200 Subject: [PATCH 4/6] Added openSUSE to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 96dd124..11c7665 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ This will guide you through the installation. Download the .deb file from the [Releases page](https://github.com/boltgolt/howdy/releases) and install with gdebi. ### Arch Linux +_Maintainer wanted._ Install the `howdy` package from the AUR. For AUR installation instructions, take a look at this [wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages). @@ -57,6 +58,11 @@ sudo dnf copr enable luya/howdy sudo dnf install howdy ``` +### openSUSE +_Maintainer: [@dmafanasyev](https://github.com/dmafanasyev)_ + +Go to the [openSUSE wiki page](https://en.opensuse.org/SDB:Facial_authentication) for detailed installation instructions. + ## Setup After installation, Howdy needs needs to learn what you look like so it can recognise you later. Run `sudo howdy add` to add a face model. From 4becea7dbec7fb434134a39bf9d70c368a28c5ee Mon Sep 17 00:00:00 2001 From: Takuro Onoue Date: Fri, 30 Aug 2019 13:52:08 +0900 Subject: [PATCH 5/6] Update .SRCINFO updpkgsums && mksrcinfo --- archlinux/.SRCINFO | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archlinux/.SRCINFO b/archlinux/.SRCINFO index 8002aed..484a94b 100644 --- a/archlinux/.SRCINFO +++ b/archlinux/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = howdy pkgdesc = Windows Hello for Linux - pkgver = 2.5.0 + pkgver = 2.5.1 pkgrel = 1 url = https://github.com/boltgolt/howdy arch = x86_64 @@ -19,11 +19,11 @@ pkgbase = howdy depends = python-click depends = python-numpy backup = usr/lib/security/howdy/config.ini - source = https://github.com/boltgolt/howdy/archive/v2.5.0.tar.gz + source = https://github.com/boltgolt/howdy/archive/v2.5.1.tar.gz source = https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz source = https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-fedora.patch source = https://sourceforge.net/p/pam-python/tickets/_discuss/thread/5dc8cfd5/5839/attachment/pam-python-1.0.6-gcc8.patch - sha256sums = a42c278f05866a6a616e8f5dd8349e35769063a229c236e680e566c5a6580334 + sha256sums = 596c8d947422e6d419746784f900a4af931a6fc647e1324913c6ce66a146bf82 sha256sums = 0ef4dda35da14088afb1640266415730a6e0274bea934917beb5aca90318f853 sha256sums = acb9d1b5cf7cad73d5524334b7954431bb9b90f960980378c538907e468c34b5 sha256sums = 02dd9a4d8ec921ff9a2408183f290f08102e3f9e0151786ae7220a4d550bfe24 From 983ab0a9d0e408046601b644d83b09ee02875d17 Mon Sep 17 00:00:00 2001 From: ajayTDM <35770004+Ajayneethikannan@users.noreply.github.com> Date: Sat, 28 Sep 2019 15:28:30 +0530 Subject: [PATCH 6/6] Fix small typo in compare.py --- src/compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compare.py b/src/compare.py index 98c6b72..6f71606 100644 --- a/src/compare.py +++ b/src/compare.py @@ -94,7 +94,7 @@ config.read(PATH + "/config.ini") # Get all config values needed use_cnn = config.getboolean("core", "use_cnn", fallback=False) -timeout = config.getint("video", "timout", fallback=5) +timeout = config.getint("video", "timeout", fallback=5) dark_threshold = config.getfloat("video", "dark_threshold", fallback=50.0) video_certainty = config.getfloat("video", "certainty", fallback=3.5) / 10 end_report = config.getboolean("debug", "end_report", fallback=False)