From 50730fd8c6611f29fdd311a73f9a44231c0b6d1c Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Mon, 2 May 2022 23:43:12 +0200 Subject: [PATCH] some cleanup of debianization --- debian/control | 4 +++- debian/copyright | 20 ++++++++++++++++++++ debian/postinst | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 537b220..a8ba49b 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,8 @@ Build-Depends: debhelper-compat (= 12), Package: python3-gps303 Architecture: all Section: python -Depends: ${misc:Depends}, +Depends: adduser, + ${misc:Depends}, ${python3:Depends} Description: Suite of modules to collect reports from xz303 GPS trackers + Consists of collector, storagae, lookaside, and termconfig diff --git a/debian/copyright b/debian/copyright index 7c3c203..7f40f04 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1 +1,21 @@ Licese: MIT + +Copyright (c) 2022 Eugene Crosser + +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/postinst b/debian/postinst index 59483bd..668ac08 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,5 +1,6 @@ #!/bin/sh +set -e adduser --system --group --home /var/lib/gps303 gps303 #DEBHELPER# -- 2.39.2