From e68f1feeba702895816accba5c81a6a445a0524e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 10 Jun 2013 05:42:08 +0200 Subject: Added quassel-light/ --- .SRCINFO | 31 +++++++++++++++++++++++++++++++ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ quassel.conf | 2 ++ quassel.install | 26 ++++++++++++++++++++++++++ quassel.service | 12 ++++++++++++ 5 files changed, 123 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 quassel.conf create mode 100644 quassel.install create mode 100644 quassel.service diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..8d87c71 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 15:01:03 UTC 2015 +pkgbase = quassel-light + pkgdesc = Modern, cross-platform, distributed IRC client; built with few dependencies + pkgver = 0.8.0 + pkgrel = 4 + url = http://quassel-irc.org/ + install = quassel.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = automoc4 + depends = qt4 + optdepends = qca-ossl + provides = quassel + provides = quasselcore + provides = quasselclient + conflicts = quassel + conflicts = quasselcore + conflicts = quasselclient + backup = etc/conf.d/quassel + source = http://quassel-irc.org/pub/quassel-0.8.0.tar.bz2 + source = quassel.service + source = quassel.conf + sha256sums = a3515bd18e2b100eb9a72480e76b1faefaa5e84cdb236b6af1f05b477a1e9071 + sha256sums = 91a1aaae47d41c11aa418dd560039ddbbfb659e02b86379d8c4789c5ada362d3 + sha256sums = f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8 + +pkgname = quassel-light + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f13f185 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Johannes Löthberg +# Contributor: Gaetan Bisson + +pkgname=quassel-light +pkgver=0.8.0 +pkgrel=4 +pkgdesc="Modern, cross-platform, distributed IRC client; built with few dependencies" +arch=('i686' 'x86_64') +url="http://quassel-irc.org/" +license=('GPL') +depends=('qt4') +optdepends=('qca-ossl') +makedepends=('cmake' 'automoc4') +provides=('quassel' 'quasselcore' 'quasselclient') +conflicts=('quassel' 'quasselcore' 'quasselclient') +install=quassel.install +backup=(etc/conf.d/quassel) +source=("http://quassel-irc.org/pub/quassel-$pkgver.tar.bz2" + 'quassel.service' + 'quassel.conf') +sha256sums=('a3515bd18e2b100eb9a72480e76b1faefaa5e84cdb236b6af1f05b477a1e9071' + '91a1aaae47d41c11aa418dd560039ddbbfb659e02b86379d8c4789c5ada362d3' + 'f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8') + + +build() { + [[ ! -d build ]] && mkdir build + cd build + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr/ \ + -DWITH_KDE=OFF \ + -DWITH_WEBKIT=OFF \ + -DWITH_PHONON=OFF \ + -DWITH_LIBINDICATE=OFF \ + -DCMAKE_BUILD_TYPE="Release" \ + ../quassel-${pkgver}/ \ + -Wno-dev \ + + make +} + +package() { + cd build + + make DESTDIR="${pkgdir}" install + + install -Dm644 "${srcdir}"/quassel.service \ + "${pkgdir}"/usr/lib/systemd/system/quassel.service + install -Dm644 "${srcdir}"/quassel.conf \ + "${pkgdir}"/etc/conf.d/quassel +} diff --git a/quassel.conf b/quassel.conf new file mode 100644 index 0000000..6b667d8 --- /dev/null +++ b/quassel.conf @@ -0,0 +1,2 @@ +QUASSEL_USER=quassel +LISTEN=127.0.0.1 diff --git a/quassel.install b/quassel.install new file mode 100644 index 0000000..488466b --- /dev/null +++ b/quassel.install @@ -0,0 +1,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 < - 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 + systemctl stop quassel.service + post_install + ) || true +} + +pre_remove() { + systemctl stop quassel.service +} + +post_remove() { + userdel quassel +} diff --git a/quassel.service b/quassel.service new file mode 100644 index 0000000..eff0188 --- /dev/null +++ b/quassel.service @@ -0,0 +1,12 @@ +[Unit] +Description=Quassel core service +After=network.target + +[Service] +Type=simple +User=quassel +Group=quassel +ExecStart=/usr/bin/quasselcore --configdir=/var/lib/quassel --listen=0.0.0.0 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-70-g09d2