From cda46a75791729f6017f4397324c2d704c64ab50 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 25 Apr 2020 18:27:50 +0200 Subject: [PATCH] Debian packaging improvements - Build binary on "any" architecture - Binary depends on adduser - Improve postinst script Signed-off-by: Tormod Volden --- distributions/debian/control | 3 ++- distributions/debian/postinst | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/distributions/debian/control b/distributions/debian/control index f344b6be..c84207cb 100644 --- a/distributions/debian/control +++ b/distributions/debian/control @@ -17,10 +17,11 @@ Vcs-Git: git://github.com/corrados/jamulus.git Vcs-Browser: https://github.com/corrados/jamulus Package: jamulus -Architecture: i386 amd64 armhf +Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, + adduser, jackd, qt5-default, qtchooser, diff --git a/distributions/debian/postinst b/distributions/debian/postinst index 5518b02e..3bfa9024 100644 --- a/distributions/debian/postinst +++ b/distributions/debian/postinst @@ -1,2 +1,9 @@ -#!/bin/bash -adduser --system jamulus +#!/bin/sh + +set -e + +# dh_sysuser can be used in newer distro releases + +adduser --system --quiet jamulus + +#DEBHELPER#