diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-05-27 20:44:56 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-05-27 20:44:56 +0000 |
commit | 0869f63689d9d7fb8ac57e8deeec48756e9b24cf (patch) | |
tree | 224d43573ba6f28fd5c7a0520060ffbdebf8c24b /community | |
parent | 0df46e9eb6980d595517948ffe94b6fde2089d79 (diff) | |
download | aports-0869f63689d9d7fb8ac57e8deeec48756e9b24cf.tar.bz2 aports-0869f63689d9d7fb8ac57e8deeec48756e9b24cf.tar.xz |
community/atheme-iris: move from main
Diffstat (limited to 'community')
-rw-r--r-- | community/atheme-iris/APKBUILD | 52 | ||||
-rw-r--r-- | community/atheme-iris/atheme-iris.confd | 5 | ||||
-rwxr-xr-x | community/atheme-iris/atheme-iris.initd | 39 | ||||
-rw-r--r-- | community/atheme-iris/atheme-iris.post-install | 8 | ||||
-rw-r--r-- | community/atheme-iris/atheme-iris.pre-install | 6 |
5 files changed, 110 insertions, 0 deletions
diff --git a/community/atheme-iris/APKBUILD b/community/atheme-iris/APKBUILD new file mode 100644 index 0000000000..a527917398 --- /dev/null +++ b/community/atheme-iris/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=atheme-iris +pkgver=0_git20160428 +pkgrel=2 +pkgdesc="AJAX IRC client. It is a drop-in replacement for qwebirc." +url="http://www.atheme.net/iris.html" +arch="noarch" +license="GPL2" +depends="py-twisted py-simplejson py-openssl py-zope-interface" +depends_dev="" +makedepends="$depends_dev python2-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="013d31d74282784eda19c8c0f15fa241 atheme-iris-0_git20160428.tar.gz +bfbcb071be8eccb3100a77414b78a462 atheme-iris.initd +a62994955210ba7d0b8dcbd293b853c4 atheme-iris.confd" +sha256sums="935be969e101304b38d22d54d9647809f36ac687495e3b091d2a488fb5b389fd atheme-iris-0_git20160428.tar.gz +ee92a0029f5aaea0642dcdbe07fab47fa5fd0f71eb9bc91762b02d5fb0994886 atheme-iris.initd +869cfcac43bcb4f27f57e9f25afab45797adcd70996296f6885e08bbdb82c6f0 atheme-iris.confd" +sha512sums="f664ac600f7d2972625a9c172016ad37606828ea705c46b0ebfac650a8e47bebde1fbc888d82445dcde04d2debbbac85e41edf0f2243754b68f7277943841b8f atheme-iris-0_git20160428.tar.gz +a2d3bd49764fbf30eeb3a4357b8c2afeb863b75f17be65efaa7da169c9b728f476255f25cedf8c002e1241b05e4de153b8f211961a9514ca8c1641aee776d991 atheme-iris.initd +c8ba5df2b1174a0c694e82a8f8b595f10caed6ca03c9667c596bb004151ed66023dd75eecce1948408620bcaef270a7e097754966580085745a5bae14590a1ec atheme-iris.confd" diff --git a/community/atheme-iris/atheme-iris.confd b/community/atheme-iris/atheme-iris.confd new file mode 100644 index 0000000000..d7815c99dc --- /dev/null +++ b/community/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/community/atheme-iris/atheme-iris.initd b/community/atheme-iris/atheme-iris.initd new file mode 100755 index 0000000000..dd8a24dbe3 --- /dev/null +++ b/community/atheme-iris/atheme-iris.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# 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/community/atheme-iris/atheme-iris.post-install b/community/atheme-iris/atheme-iris.post-install new file mode 100644 index 0000000000..18a6f7a6e1 --- /dev/null +++ b/community/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/community/atheme-iris/atheme-iris.pre-install b/community/atheme-iris/atheme-iris.pre-install new file mode 100644 index 0000000000..aa18cf533d --- /dev/null +++ b/community/atheme-iris/atheme-iris.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S iris 2>/dev/null +adduser -S -D -H -h /usr/share/webapps/atheme-iris -s /sbin/nologin -G iris -g iris iris 2>/dev/null + +exit 0 |