diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-05-30 19:14:16 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-05-30 19:16:51 -0300 |
commit | 173d4ffded6f1533fab32eaafc110221b1d174b5 (patch) | |
tree | 47f942521a41471f9feeed77499edc0f8ba58438 /pcr/python-steamcontroller-git/steamcontroller.install | |
parent | 995e49de54e373f027e7557f6dfdf865ea310520 (diff) |
python-steamcontroller-git: add new package to [pcr] - Packaging request #985 -> https://labs.parabola.nu/issues/985
Diffstat (limited to 'pcr/python-steamcontroller-git/steamcontroller.install')
-rw-r--r-- | pcr/python-steamcontroller-git/steamcontroller.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/python-steamcontroller-git/steamcontroller.install b/pcr/python-steamcontroller-git/steamcontroller.install new file mode 100644 index 000000000..9b03e18d7 --- /dev/null +++ b/pcr/python-steamcontroller-git/steamcontroller.install @@ -0,0 +1,24 @@ +__GROUP="games" +post_install() { + getent group ${__GROUP} >> /dev/null || /usr/sbin/groupadd ${__GROUP} || return 1 + /bin/cat <<EOF +==> Please add all users that will be running Steam to the "${__GROUP}" group +EOF + udevadm control --reload + /bin/cat <<EOF +==> Install either "steam" or "steamcontroller-udev" for the udev rules. +==> You can use the controller in xbox360 mode or desktop mode + $ sc-xbox.py start +==> or + $ sc-desktop.py start +EOF +} + +post_upgrade() { + post_install +} + +post_remove() { + getent group $__{GROUP} &>/dev/null && /usr/sbin/groupdel ${__GROUP} +} + |