Debian package updates
This commit is contained in:
parent
1c5dab4e1c
commit
8bedd5f2c0
4 changed files with 57 additions and 73 deletions
|
|
@ -9,7 +9,7 @@ Vcs-Git: https://github.com/boltgolt/howdy
|
||||||
Package: howdy
|
Package: howdy
|
||||||
Homepage: https://github.com/boltgolt/howdy
|
Homepage: https://github.com/boltgolt/howdy
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libopencv-dev, cmake
|
Depends: ${misc:Depends}, libc6, libgcc-s1, libpam0g, libstdc++6, curl | wget, python3, python3-pip, python3-dev, python3-setuptools, python3-numpy, python-opencv, libopencv-dev, cmake
|
||||||
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, howdy-gtk
|
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev, 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.
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,9 @@ def col(id):
|
||||||
# Create shorthand for subprocess creation
|
# Create shorthand for subprocess creation
|
||||||
sc = subprocess.call
|
sc = subprocess.call
|
||||||
|
|
||||||
# We're not in fresh configuration mode so don't continue the setup
|
# If the package is being upgraded
|
||||||
if not os.path.exists("/tmp/howdy_picked_device"):
|
if "upgrade" in sys.argv:
|
||||||
# Check if we have an older config we can restore
|
# If preinst has made a config backup
|
||||||
if len(sys.argv) > 2:
|
|
||||||
if os.path.exists("/tmp/howdy_config_backup_v" + sys.argv[2] + ".ini"):
|
if os.path.exists("/tmp/howdy_config_backup_v" + sys.argv[2] + ".ini"):
|
||||||
# Get the config parser
|
# Get the config parser
|
||||||
import configparser
|
import configparser
|
||||||
|
|
@ -101,23 +100,8 @@ if not os.path.exists("/tmp/howdy_picked_device"):
|
||||||
with open("/lib/security/howdy/config.ini", "w") as configfile:
|
with open("/lib/security/howdy/config.ini", "w") as configfile:
|
||||||
newConf.write(configfile)
|
newConf.write(configfile)
|
||||||
|
|
||||||
# Install dlib data files if needed
|
|
||||||
if not os.path.exists("/lib/security/howdy/dlib-data/shape_predictor_5_face_landmarks.dat"):
|
|
||||||
print("Attempting installation of missing data files")
|
|
||||||
handleStatus(subprocess.call(["./install.sh"], shell=True, cwd="/lib/security/howdy/dlib-data"))
|
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
log("Upgrading pip to the latest version")
|
|
||||||
|
|
||||||
# Update pip
|
|
||||||
handleStatus(sc(["pip3", "install", "--upgrade", "pip"]))
|
|
||||||
|
|
||||||
log("Upgrading numpy to the latest version")
|
|
||||||
|
|
||||||
# Update numpy
|
|
||||||
handleStatus(subprocess.call(["pip3", "install", "--upgrade", "numpy"]))
|
|
||||||
|
|
||||||
log("Downloading and unpacking data files")
|
log("Downloading and unpacking data files")
|
||||||
|
|
||||||
# Run the bash script to download and unpack the .dat files needed
|
# Run the bash script to download and unpack the .dat files needed
|
||||||
|
|
@ -193,10 +177,6 @@ rmtree(DLIB_DIR)
|
||||||
|
|
||||||
print("Temporary dlib files removed")
|
print("Temporary dlib files removed")
|
||||||
|
|
||||||
log("Installing OpenCV")
|
|
||||||
|
|
||||||
handleStatus(subprocess.call(["pip3", "install", "--no-cache-dir", "opencv-python"]))
|
|
||||||
|
|
||||||
log("Configuring howdy")
|
log("Configuring howdy")
|
||||||
|
|
||||||
# Manually change the camera id to the one picked
|
# Manually change the camera id to the one picked
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,7 @@ build:
|
||||||
clean:
|
clean:
|
||||||
# Delete mason build directory
|
# Delete mason build directory
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
# Force remove temp debian build directory
|
||||||
|
rm -rf ./debian/howdy
|
||||||
|
# Make sure subprojects get pulled locally
|
||||||
|
meson subprojects download --sourcedir src/pam
|
||||||
|
|
|
||||||
2
howdy/src/pam/.gitignore
vendored
2
howdy/src/pam/.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
subprojects/*/
|
subprojects/inih/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue