summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-06-06 13:18:43 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-06-06 13:18:53 +0200
commitba9ef85dca385b4fc4dede8ed1a89ef50621f234 (patch)
treeab76a3064f2ab97af271f6d2d57ff6e1b2c4746c /testing
parent910cb8841fe514721c086758fe238d1fa67e229b (diff)
downloadaports-ba9ef85dca385b4fc4dede8ed1a89ef50621f234.tar.bz2
aports-ba9ef85dca385b4fc4dede8ed1a89ef50621f234.tar.xz
testing/quassel: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/quassel/APKBUILD63
-rw-r--r--testing/quassel/quassel-core.defaultd10
-rw-r--r--testing/quassel/quassel-core.initd42
-rw-r--r--testing/quassel/quassel-core.pre-install5
4 files changed, 120 insertions, 0 deletions
diff --git a/testing/quassel/APKBUILD b/testing/quassel/APKBUILD
new file mode 100644
index 000000000..349b26929
--- /dev/null
+++ b/testing/quassel/APKBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Yves Schumann <yves@eisfair.org>
+
+pkgname=quassel
+pkgver=0.9.0
+pkgrel=0
+url="http://www.quassel-irc.org/"
+pkgdesc="Distributed IRC client - metapackage"
+arch="all"
+license="GPL"
+makedepends="qt-dev cmake"
+subpackages="$pkgname-core"
+source="http://www.quassel-irc.org/pub/quassel-$pkgver.tar.bz2
+ $pkgname-core.defaultd
+ $pkgname-core.initd"
+
+build() {
+ cd "$srcdir"
+ mkdir core
+
+ cd core
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr/ \
+ -DWITH_KDE=0 \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DWITH_OPENSSL=ON \
+ -DWANT_CORE=ON \
+ -DWANT_MONO=OFF \
+ -DWANT_QTCLIENT=OFF \
+ -DWITH_DBUS=OFF \
+ -DWITH_OXYGEN=OFF \
+ -DWITH_PHONON=OFF \
+ -DWITH_WEBKIT=OFF \
+ -DCMAKE_BUILD_TYPE="Release" \
+ ../quassel-$pkgver/ || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir" && return 0
+}
+
+core() {
+ pkgdesc="Core component of distributed IRC client"
+ install="quassel-core.pre-install"
+
+ cd "$srcdir"/core
+ make DESTDIR="$subpkgdir" install
+ rm -r "$subpkgdir"/usr/share
+
+ install -Dm0644 "$srcdir"/$subpkgname.defaultd \
+ "$subpkgdir"/etc/conf.d/quassel-core || return 1
+ install -Dm0755 ${srcdir}/$subpkgname.initd \
+ "$subpkgdir"/etc/init.d/quassel-core || return 1
+}
+
+md5sums="29b843f18d703abfadb8fc729ca1df11 quassel-0.9.0.tar.bz2
+560e396db1e85d641c15eb6b15cbae74 quassel-core.defaultd
+5d4d6dee89961fb2108727b56b8bf75d quassel-core.initd"
+sha256sums="2e3fe06ae3731c829aa3c2f6bb5320619bad264c831f322985c3aa3fe58b6027 quassel-0.9.0.tar.bz2
+9e916cefd6a1be7218249410490ce07c8a98ba8f96b2c3c16b3ee3f1222dbd51 quassel-core.defaultd
+6ad0a474f3978980a3337e6b523b88c6dd81850b6b7f0538cbe86d36345f1605 quassel-core.initd"
+sha512sums="5f0b54c7c0e839d30ec5cc1c76f115f60aef35c53b2ed1cc69cb856413e0b381bfa3b56d6a9b60d8a118d216930adb52856d39b1bbd4c96e8c0f3809756f6f21 quassel-0.9.0.tar.bz2
+6f8120cf08b676a896a63e370d9c0e16db72cf2a9b1a8db52f5ce3b983ce38a7d157d6346282158fd0d440048aad00bb3c57d6b5c81a0ab5a92918b11d15aa6d quassel-core.defaultd
+f761d881973af0151b4e39419b972d8e9c5e9f43d3ae52d64fefc1fd631c397fee5a929b7d559705d2fbf53bd2adff943451d8402059e3ac6893b3b9fe72d979 quassel-core.initd"
diff --git a/testing/quassel/quassel-core.defaultd b/testing/quassel/quassel-core.defaultd
new file mode 100644
index 000000000..7835da37c
--- /dev/null
+++ b/testing/quassel/quassel-core.defaultd
@@ -0,0 +1,10 @@
+# Quasselcore default configuration
+
+QUASSEL_CORE_PORT='4242'
+
+QUASSEL_CORE_LOG_FILE=/var/log/quassel/quasselcore.log
+QUASSEL_CORE_LOG_LEVEL='info'
+
+QUASSEL_CORE_DATADIR=/usr/local/quasselcore
+
+QUASSEL_CORE_DAEMON_OPTS=''
diff --git a/testing/quassel/quassel-core.initd b/testing/quassel/quassel-core.initd
new file mode 100644
index 000000000..b86660081
--- /dev/null
+++ b/testing/quassel/quassel-core.initd
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# quasselcore init.d file for alpine linux.
+
+QUASSEL_CONFIG=/etc/config.d/quassel-core
+DAEMON=/usr/bin/quassel-core
+ACCOUNT=quassel
+PID=/var/run/quassel-core.pid
+
+# Load defaults
+. /etc/default.d/quassel-core
+
+# Load specific configuration
+if [ -e ${QUASSEL_CONFIG} ] ; then
+ . ${QUASSEL_CONFIG}
+fi
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting quasselcore"
+ start-stop-daemon --start \
+ --pidfile ${PID} \
+ --make-pidfile \
+ --background \
+ --user ${ACCOUNT} \
+ --exec ${DAEMON} -- \
+ --logfile=${QUASSEL_CORE_LOG_FILE} \
+ --loglevel=${QUASSEL_CORE_LOG_LEVEL} \
+ --configdir=${QUASSEL_CORE_DATADIR} \
+ --port=${QUASSEL_CORE_PORT} \
+ ${QUASSEL_CORE_DAEMON_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping quasselcore"
+ start-stop-daemon --stop --pidfile ${PID}
+ eend $?
+}
diff --git a/testing/quassel/quassel-core.pre-install b/testing/quassel/quassel-core.pre-install
new file mode 100644
index 000000000..6d63d02d5
--- /dev/null
+++ b/testing/quassel/quassel-core.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+adduser -S -h /usr/lib/quassel -s /bin/false -D quassel 2>/dev/null
+
+exit 0