aboutsummaryrefslogtreecommitdiffstats
path: root/main/atheme-iris
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-26 13:00:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-26 13:13:58 +0000
commite7604ea2ccc65d83e89be57314112c2c4662d9bd (patch)
treea5a0f1e7bf8e689c2da455bcf0153789dced5ac8 /main/atheme-iris
parent6c9c1be49d60d503b0da39ab0fa0a5b5325d524c (diff)
downloadaports-e7604ea2ccc65d83e89be57314112c2c4662d9bd.tar.bz2
aports-e7604ea2ccc65d83e89be57314112c2c4662d9bd.tar.xz
main/atheme-iris: moved from testing
Diffstat (limited to 'main/atheme-iris')
-rw-r--r--main/atheme-iris/APKBUILD53
-rw-r--r--main/atheme-iris/atheme-iris.confd5
-rwxr-xr-xmain/atheme-iris/atheme-iris.initd39
-rw-r--r--main/atheme-iris/atheme-iris.post-install8
-rw-r--r--main/atheme-iris/atheme-iris.pre-install4
5 files changed, 109 insertions, 0 deletions
diff --git a/main/atheme-iris/APKBUILD b/main/atheme-iris/APKBUILD
new file mode 100644
index 0000000000..d9f3932b64
--- /dev/null
+++ b/main/atheme-iris/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=atheme-iris
+pkgver=0_git20130321
+pkgrel=0
+pkgdesc="AJAX IRC client. It is a drop-in replacement for qwebirc."
+url="http://www.atheme.net/iris.html"
+arch="noarch"
+license="GPL"
+depends="py-twisted py-twisted-names py-twisted-mail py-twisted-web \
+ py-twisted-words py-simplejson py-openssl py-zope-interface"
+depends_dev=""
+makedepends="$depends_dev python-dev"
+install="$pkgname.post-install $pkgname.pre-install"
+subpackages=""
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.initd
+ $pkgname.confd"
+pkgusers="iris"
+pkggroups="iris"
+_builddir="$srcdir"/$pkgname-$pkgver
+giturl="git://github.com/atheme/iris.git"
+disturl="dev.alpinelinux.org:/archive/$pkgname"
+build() {
+ cd "$_builddir"
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p $pkgdir/etc/$pkgname
+ mkdir -p $pkgdir/var/lib/$pkgname
+ mkdir -p $pkgdir/var/log/$pkgname
+ mkdir -p $pkgdir/etc/conf.d
+ mkdir -p $pkgdir/etc/init.d
+ cp "$srcdir"/$pkgname.confd $pkgdir/etc/conf.d/$pkgname
+ cp "$srcdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname
+ cp -r * $pkgdir/var/lib/$pkgname
+ cp iris.conf.example $pkgdir/etc/$pkgname/iris.conf
+ ln -s /etc/$pkgname/iris.conf $pkgdir/var/lib/$pkgname/iris.conf
+ chown iris:iris $pkgdir/var/log/$pkgname
+ chown -R iris:iris $pkgdir/var/lib/$pkgname
+}
+
+md5sums="585542134f78c4d3575c631abc97084e atheme-iris-0_git20130321.tar.gz
+5b2081f374dcfa4e84f0c6c0474bad45 atheme-iris.initd
+a62994955210ba7d0b8dcbd293b853c4 atheme-iris.confd"
+sha256sums="b3221414513d9ceca7176a60b952e2f63d0d390f995de763b8664655c47429d1 atheme-iris-0_git20130321.tar.gz
+9c62c3a6750743e483dc6a62f1767a08f2d9fd48bdf203fa6ee80b1aeedf1b1a atheme-iris.initd
+869cfcac43bcb4f27f57e9f25afab45797adcd70996296f6885e08bbdb82c6f0 atheme-iris.confd"
+sha512sums="643fbee939ae4e3aee95488b252470d8dddc6f69839c9b7e44dccc3ae157b60a112a65192a1600c636fa183674a3c932f016201c557101d3ecdc2243bf5fdc74 atheme-iris-0_git20130321.tar.gz
+2139610a9926fca15ecc04c9bf4354f6d950408fa7b3fc0b42ce1e707bb6eed1fb55c2c5c2b41a7c0fd35f91b5dbfedd47ff324c0eca84f8f240eb4474a7100b atheme-iris.initd
+c8ba5df2b1174a0c694e82a8f8b595f10caed6ca03c9667c596bb004151ed66023dd75eecce1948408620bcaef270a7e097754966580085745a5bae14590a1ec atheme-iris.confd"
diff --git a/main/atheme-iris/atheme-iris.confd b/main/atheme-iris/atheme-iris.confd
new file mode 100644
index 0000000000..d7815c99dc
--- /dev/null
+++ b/main/atheme-iris/atheme-iris.confd
@@ -0,0 +1,5 @@
+PORT="9090"
+IP="0.0.0.0"
+ARGS="-p ${PORT} -i ${IP} -s"
+#Uncomment if you want logging to file: beware of amount of logs!
+#ARGS="$ARGS -l var/log/atheme-iris/atheme-iris.log"
diff --git a/main/atheme-iris/atheme-iris.initd b/main/atheme-iris/atheme-iris.initd
new file mode 100755
index 0000000000..4ac1708463
--- /dev/null
+++ b/main/atheme-iris/atheme-iris.initd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 2013 Alpine Linux
+# Distributed under the terms of the GNU General Public License v2
+
+extra_stopped_commands="compile"
+
+: ${SVCHOME:=/var/lib/$SVCNAME}
+: ${pidfile:=/var/run/${SVCNAME%%.*}/${SVCNAME#*.}.pid}
+
+depend() {
+ use net
+ need localmount
+}
+compile() {
+ ebegin "Compiling configuration for ${SVCNAME}"
+ cd ${SVCHOME}
+ ./clean.py
+ ./compile.py
+ eend $?
+}
+
+start() {
+ compile || return 1
+ checkpath --directory --owner iris ${pidfile%/*}
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --exec ${SVCHOME}/run.py \
+ --pidfile $pidfile \
+ --chdir $SVCHOME \
+ --user iris:iris \
+ --background \
+ --stdout /dev/null \
+ --stderr /dev/null \
+ --wait 500 \
+ -- \
+ -P $pidfile \
+ $ARGS
+
+ eend $?
+}
diff --git a/main/atheme-iris/atheme-iris.post-install b/main/atheme-iris/atheme-iris.post-install
new file mode 100644
index 0000000000..18a6f7a6e1
--- /dev/null
+++ b/main/atheme-iris/atheme-iris.post-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+echo "************************************************************************************************"
+echo "***** Before starting atheme-iris, you need to: *****"
+echo "***** *****"
+echo "***** 1 - Modify /etc/atheme-iris/iris.conf *****"
+echo "***** 2 - make a symlink from /etc/atheme-iris/iris.conf to /var/lib/atheme-iris/iris.conf *****"
+echo "***** 3 - Run /etc/init.d/atheme-iris setup *****"
+echo "************************************************************************************************"
diff --git a/main/atheme-iris/atheme-iris.pre-install b/main/atheme-iris/atheme-iris.pre-install
new file mode 100644
index 0000000000..ce32243397
--- /dev/null
+++ b/main/atheme-iris/atheme-iris.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+adduser -H -h /usr/share/webapps/atheme-iris -g iris -D -s /bin/false iris >/dev/null
+exit 0
+