summaryrefslogtreecommitdiff
path: root/community/quassel/quassel.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/quassel/quassel.install')
-rw-r--r--community/quassel/quassel.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/quassel/quassel.install b/community/quassel/quassel.install
new file mode 100644
index 000000000..5cd29276b
--- /dev/null
+++ b/community/quassel/quassel.install
@@ -0,0 +1,21 @@
+post_install() {
+ useradd -r -s /bin/sh -d /var/lib/quassel quassel
+ mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel
+# xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ [ `vercmp $2 0.5.2-1` -le 0 ] && (
+ cat <<EOF
+
+==> - quasselcore now runs as the quassel user
+==> - quasselcore now listens to port 127.0.0.1 by default
+==> - both of above are configurable: /etc/conf.d/quassel
+EOF
+ post_install
+ ) || true
+}
+
+post_remove() {
+ userdel quassel
+}