summaryrefslogtreecommitdiff
path: root/community/quassel/quassel.install
blob: 289ecc63f7e8532c3710a63ae6651468a760479e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
    /etc/rc.d/quassel stop
    post_install
  ) || true
}

pre_remove() {
  /etc/rc.d/quassel stop
}

post_remove() {
  userdel quassel
}