summarylogtreecommitdiffstats
path: root/roccat-tools.install
diff options
context:
space:
mode:
authorAaron Mueller2014-03-06 19:31:29 +0100
committerAaron Mueller2014-03-06 19:31:29 +0100
commitcd728d41ce2e9a9110abaa6690e5cc43ea3b1996 (patch)
tree4ac156099ba8b83a70be59b6af3d39ee2f62acb2 /roccat-tools.install
downloadaur-cd728d41ce2e9a9110abaa6690e5cc43ea3b1996.tar.gz
Move all packages to version control
Diffstat (limited to 'roccat-tools.install')
-rwxr-xr-xroccat-tools.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/roccat-tools.install b/roccat-tools.install
new file mode 100755
index 00000000000..5b15313315e
--- /dev/null
+++ b/roccat-tools.install
@@ -0,0 +1,29 @@
+post_install() {
+ ldconfig
+ touch --no-create /usr/share/icons/hicolor
+
+ groupadd --force roccat
+
+ mkdir --parents /var/lib/roccat
+ chown root:roccat /var/lib/roccat
+ chmod 2770 /var/lib/roccat
+
+ udevadm control --reload-rules
+}
+
+post_upgrade() {
+ ldconfig
+ touch --no-create /usr/share/icons/hicolor
+ udevadm control --reload-rules
+}
+
+post_remove() {
+ ldconfig
+ udevadm control --reload-rules
+
+ # If there are some configuration files in this dir, we get an error, which
+ # is good because we don't want to remove the user configs.
+ rm -r /var/lib/roccat
+
+ groupdel roccat
+}