Made howdy-gtk debian package
This commit is contained in:
parent
d154c56566
commit
2c28c94353
14 changed files with 67 additions and 4 deletions
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -10,7 +10,7 @@ Package: howdy
|
||||||
Homepage: https://github.com/boltgolt/howdy
|
Homepage: https://github.com/boltgolt/howdy
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, libopencv-dev, cmake
|
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, libopencv-dev, cmake
|
||||||
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, streamer
|
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, streamer, howdy-gtk
|
||||||
Suggests: nvidia-cuda-dev (>= 7.5)
|
Suggests: nvidia-cuda-dev (>= 7.5)
|
||||||
Description: Howdy: Windows Hello style authentication for Linux.
|
Description: Howdy: Windows Hello style authentication for Linux.
|
||||||
Use your built-in IR emitters and camera in combination with face recognition
|
Use your built-in IR emitters and camera in combination with face recognition
|
||||||
|
|
|
||||||
5
howdy-gtk/debian/changelog
Normal file
5
howdy-gtk/debian/changelog
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
howdy-gtk (0.0.1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Initial testing release with sticky authentication ui
|
||||||
|
|
||||||
|
-- boltgolt <boltgolt@gmail.com> Thu, 03 Dec 2020 00:08:49 +0200
|
||||||
1
howdy-gtk/debian/compat
Normal file
1
howdy-gtk/debian/compat
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
10
|
||||||
13
howdy-gtk/debian/control
Normal file
13
howdy-gtk/debian/control
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
Source: howdy-gtk
|
||||||
|
Section: misc
|
||||||
|
Priority: optional
|
||||||
|
Standards-Version: 3.9.7
|
||||||
|
Build-Depends: python, dh-python, devscripts, dh-make, debhelper, fakeroot
|
||||||
|
Maintainer: boltgolt <boltgolt@gmail.com>
|
||||||
|
Vcs-Git: https://github.com/boltgolt/howdy
|
||||||
|
|
||||||
|
Package: howdy-gtk
|
||||||
|
Homepage: https://github.com/boltgolt/howdy
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python-gtk2, cmake
|
||||||
|
Description: Optional UI package for Howdy, written in Gtk
|
||||||
21
howdy-gtk/debian/copyright
Normal file
21
howdy-gtk/debian/copyright
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 boltgolt
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
1
howdy-gtk/debian/howdy-gtk.links
Normal file
1
howdy-gtk/debian/howdy-gtk.links
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/howdy-gtk/authsticky.py /usr/bin/howdy-gtk-auth
|
||||||
2
howdy-gtk/debian/howdy-gtk.lintian-overrides
Normal file
2
howdy-gtk/debian/howdy-gtk.lintian-overrides
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# W: Don't require ugly linebreaks in last 5 chars
|
||||||
|
howdy: debian-changelog-line-too-long
|
||||||
1
howdy-gtk/debian/install
Normal file
1
howdy-gtk/debian/install
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
src/. /usr/lib/howdy-gtk
|
||||||
8
howdy-gtk/debian/rules
Executable file
8
howdy-gtk/debian/rules
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
DH_VERBOSE = 1
|
||||||
|
|
||||||
|
DPKG_EXPORT_BUILDFLAGS = 1
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
1
howdy-gtk/debian/source/format
Normal file
1
howdy-gtk/debian/source/format
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
||||||
8
howdy-gtk/debian/source/options
Normal file
8
howdy-gtk/debian/source/options
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
tar-ignore = ".git"
|
||||||
|
tar-ignore = ".gitignore"
|
||||||
|
tar-ignore = ".github"
|
||||||
|
tar-ignore = "README.md"
|
||||||
|
tar-ignore = ".travis.yml"
|
||||||
|
tar-ignore = "fedora"
|
||||||
|
tar-ignore = "opensuse"
|
||||||
|
tar-ignore = "archlinux"
|
||||||
4
howdy-gtk/authsticky.py → howdy-gtk/src/authsticky.py
Normal file → Executable file
4
howdy-gtk/authsticky.py → howdy-gtk/src/authsticky.py
Normal file → Executable file
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# Shows a floating window when authenticating
|
# Shows a floating window when authenticating
|
||||||
import cairo
|
import cairo
|
||||||
import gi
|
import gi
|
||||||
|
|
@ -77,7 +79,7 @@ class StickyWindow(gtk.Window):
|
||||||
|
|
||||||
dir = os.path.dirname(os.path.abspath(__file__))
|
dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
image_surface = cairo.ImageSurface.create_from_png(dir + "/logo.png")
|
image_surface = cairo.ImageSurface.create_from_png("/usr/lib/howdy-gtk/logo.png")
|
||||||
ratio = float(windowHeight - 20) / float(image_surface.get_height())
|
ratio = float(windowHeight - 20) / float(image_surface.get_height())
|
||||||
|
|
||||||
ctx.translate(15, 10)
|
ctx.translate(15, 10)
|
||||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
|
@ -115,7 +115,7 @@ pose_predictor = None
|
||||||
face_encoder = None
|
face_encoder = None
|
||||||
|
|
||||||
# Start the auth ui
|
# Start the auth ui
|
||||||
gtk_proc = subprocess.Popen(["python3", "-u", "../howdy-gtk/authsticky.py"], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
gtk_proc = subprocess.Popen(["howdy-gtk-auth"], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
# Write to the stdin to redraw ui
|
# Write to the stdin to redraw ui
|
||||||
send_to_ui("M", "Starting up...")
|
send_to_ui("M", "Starting up...")
|
||||||
|
|
||||||
|
|
@ -202,7 +202,7 @@ while True:
|
||||||
frames += 1
|
frames += 1
|
||||||
|
|
||||||
# Form a string to let the user know we're real busy
|
# Form a string to let the user know we're real busy
|
||||||
ui_subtext = "Scanned " + str(valid_frames) + " frames"
|
ui_subtext = "Scanned " + str(valid_frames - dark_tries) + " frames"
|
||||||
if (dark_tries > 1):
|
if (dark_tries > 1):
|
||||||
ui_subtext += " (skipped " + str(dark_tries) + " dark frames)"
|
ui_subtext += " (skipped " + str(dark_tries) + " dark frames)"
|
||||||
# Show it in the ui as subtext
|
# Show it in the ui as subtext
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue