diff options
| -rw-r--r-- | debian/changelog | 9 | ||||
| -rwxr-xr-x | debian/itzks-systems-smartboard.postinst | 10 | ||||
| -rwxr-xr-x | debian/itzks-systems-smartboard.postrm | 34 | ||||
| -rw-r--r-- | etc/schroot/chroot.d/precise-i386-smartboard-ITZkS | 2 | 
4 files changed, 53 insertions, 2 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# diff --git a/etc/schroot/chroot.d/precise-i386-smartboard-ITZkS b/etc/schroot/chroot.d/precise-i386-smartboard-ITZkS index f61334d..ee1b6f8 100644 --- a/etc/schroot/chroot.d/precise-i386-smartboard-ITZkS +++ b/etc/schroot/chroot.d/precise-i386-smartboard-ITZkS @@ -3,7 +3,7 @@ type=directory  command-prefix=linux32  description=Ubuntu precise/i386 with SMART Notebook  directory=/srv/schroot/precise-i386-smartboard-ITZkS -groups=root,teachers,admins,sudo +groups=root,teachers,itzks-smartboard,admins,sudo  root-groups=root,admins,sudo  profile=slxdesktop.ITZkS  personality=linux32 | 
