diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 9 | ||||
-rwxr-xr-x | debian/itzks-systems-smartboard.postinst | 10 | ||||
-rwxr-xr-x | debian/itzks-systems-smartboard.postrm | 34 |
3 files changed, 52 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 8a823fa..e3a6ba5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +itzks-systems (2015.03.03.1) UNRELEASED; urgency=medium + + * itzks-systems-smartboard: + - Provide itzks-smartboard system group so that we are able + to grant smartboard access to local users without having to + put them into the sudo group. + + -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 03 Mar 2015 06:16:14 +0100 + itzks-systems (2015.02.18.2) unstable; urgency=medium * itzks-systems-smartboard: diff --git a/debian/itzks-systems-smartboard.postinst b/debian/itzks-systems-smartboard.postinst index 1a7686d..e49f1d1 100755 --- a/debian/itzks-systems-smartboard.postinst +++ b/debian/itzks-systems-smartboard.postinst @@ -140,13 +140,21 @@ case "$1" in update-mime-database /usr/share/mime fi + + # setup itzks-smartboard group + if ! getent group itzks-smartboard 1>/dev/null 2>/dev/null; then + echo "Creating itzks-smartboard group." 1>&2 + addgroup --system itzks-smartboard + else + echo "Group itzks-smartboard already exists." 1>&2 + fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) - echo "postinst called with unknown argument \`$1'" >&2 + echo "postinst called with unknown argument \`$1'" 1>&2 exit 1 ;; esac diff --git a/debian/itzks-systems-smartboard.postrm b/debian/itzks-systems-smartboard.postrm new file mode 100755 index 0000000..46a110f --- /dev/null +++ b/debian/itzks-systems-smartboard.postrm @@ -0,0 +1,34 @@ +#! /bin/sh +# postrm script for itzks-systems-smartboard +# +# see: dh_installdeb(1) +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> +# for details, see /usr/share/doc/packaging-manual/ + +set -e + +case "$1" in + purge) + getent group itzks-smartboard 1>/dev/null 2>/dev/null && delgroup itzks-smartboard + + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" 1>&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# |