From aed1f69b5389f3420638787b220f8360c91042a9 Mon Sep 17 00:00:00 2001 From: boltgolt Date: Thu, 5 Apr 2018 23:19:52 +0200 Subject: [PATCH] A lot of tries to get debuild -us -uc to work --- .travis.yml | 7 ++++--- debian/changelog | 2 +- debian/compat | 1 + debian/control | 7 +++++-- debian/copyright | 21 +++++++++++++++++++++ debian/rules | 21 ++++++++++++++++++++- debian/source/format | 1 + debian/source/options | 6 ++++++ 8 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 debian/compat create mode 100644 debian/copyright create mode 100644 debian/source/format create mode 100644 debian/source/options diff --git a/.travis.yml b/.travis.yml index 64f3f22..89fdb96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,13 @@ language: python sudo: required before_install: - - ln -s ./debian ./DEBIAN - - dpkg-deb --build . ./build.deb + - git clone https://github.com/Boltgolt/howdy.git /tmp/howdy_build + - cd /tmp/howdy_build + - dpkg-buildpackage -rfakeroot -d -us -uc -S install: sudo apt-get install ./build.deb script: howdy help notifications: - email: false + email: false diff --git a/debian/changelog b/debian/changelog index a77d55a..055c6a5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -howdy (2.0.0) UNRELEASED; urgency=middle +howdy (2.0.0) UNRELEASED; urgency=low * Initial release. diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control index c8facbf..7aefc59 100644 --- a/debian/control +++ b/debian/control @@ -1,10 +1,13 @@ Source: howdy Section: unknown Priority: optional +Standards-Version: 3 +Build-Depends: python, dh-python Maintainer: boltgolt -Homepage: https://github.com/Boltgolt/howdy +Vcs-Git: https://github.com/Boltgolt/howdy + Package: howdy -Version: 2.0.0 +Homepage: https://github.com/Boltgolt/howdy Architecture: all Depends: git, python3, python3-pip, python3-dev, python3-setuptools, build-essential, libpam-python, fswebcam, libopencv-dev, python-opencv, cmake Description: Windows Helloâ„¢ style authentication for Ubuntu. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..54f078c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 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. diff --git a/debian/rules b/debian/rules index 1a24852..5e3a4f9 100755 --- a/debian/rules +++ b/debian/rules @@ -1 +1,20 @@ -#!/bin/sh +#!/usr/bin/make -f +DH_VERBOSE = 1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +%: + dh $@ + +clean: + echo "ok" + +build: + echo "ok" + +binary: + dh binary + mkdir ./debian/howdy/lib + mkdir ./debian/howdy/lib/security + cp -R bin ./debian/howdy/lib/security/howdy/ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..593ee7b --- /dev/null +++ b/debian/source/options @@ -0,0 +1,6 @@ +tar-ignore = ".git" +tar-ignore = "models" +tar-ignore = ".gitignore" +tar-ignore = "README.md" +tar-ignore = "LICENSE" +tar-ignore = ".travis.yml"