summaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-05-31 07:45:08 +0000
committerEivind Uggedal <eivind@uggedal.com>2014-05-31 07:45:08 +0000
commit5224a852cd582c08e69910f967ce3f86645157fd (patch)
tree030829102fc9b3392a62558f85bb7145375661e2 /unmaintained
parent93f7e4b36d7d83b94c8a005f784c0aeb2ec6f2fb (diff)
downloadaports-5224a852cd582c08e69910f967ce3f86645157fd.tar.bz2
aports-5224a852cd582c08e69910f967ce3f86645157fd.tar.xz
testing/ejabberd-git: move to unmaintained
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/ejabberd-git/APKBUILD67
-rw-r--r--unmaintained/ejabberd-git/ejabberd-git.confd5
-rw-r--r--unmaintained/ejabberd-git/ejabberd-git.initd47
-rw-r--r--unmaintained/ejabberd-git/ejabberd-git.logrotate12
-rw-r--r--unmaintained/ejabberd-git/ejabberd-git.pre-install3
5 files changed, 134 insertions, 0 deletions
diff --git a/unmaintained/ejabberd-git/APKBUILD b/unmaintained/ejabberd-git/APKBUILD
new file mode 100644
index 000000000..c97531e07
--- /dev/null
+++ b/unmaintained/ejabberd-git/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=ejabberd-git
+_pkgname=ejabberd
+pkgver=0_git20130607
+pkgrel=1
+pkgdesc="An erlang jabber server, git version"
+url="http://www.ejabberd.im"
+arch="all"
+license="GPL2+"
+depends="erlang util-linux"
+depends_dev="erlang-dev expat-dev libiconv-dev openssl-dev zlib-dev heimdal-dev"
+makedepends="$depends_dev"
+pkgusers="ejabberd"
+pkggroups="ejabberd"
+install="$pkgname.pre-install"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.initd
+ $pkgname.confd"
+giturl="git://github.com/processone/$_pkgname.git"
+disturl="dev.alpinelinux.org:/archive/$pkgname/"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"/src
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"/src
+ make DESTDIR="$pkgdir" install
+
+ install -d ${pkgdir}/var/spool/$pkgname
+ install -d ${pkgdir}/var/lib/$pkgname
+ install -D -m0644 ../../../$pkgname.logrotate ${pkgdir}/etc/logrotate.d/$pkgname
+ install -m755 -D ../../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D ../../../$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ chown -R ejabberd.ejabberd "$pkgdir"/var/log/ejabberd
+ chown -R ejabberd.ejabberd "$pkgdir"/var/spool/ejabberd
+ chown -R ejabberd.ejabberd "$pkgdir"/var/lib/ejabberd
+ chgrp ejabberd "$pkgdir"/etc/ejabberd/ejabberd.cfg "$pkgdir"/etc/ejabberd/ejabberdctl.cfg "$pkgdir"/etc/ejabberd
+}
+
+md5sums="6cd08c03d22f70580cc06f836e0f65dd ejabberd-git-0_git20130607.tar.gz
+e0ef3a939e87779737ce75469e79fef1 ejabberd-git.initd
+1681f2c06d35b5f09f52edadfcdf9ebb ejabberd-git.confd"
+sha256sums="d52a1374e2be264ca821d3eac5ad34c2cf40a46f37591ac2c0c469259830d8f4 ejabberd-git-0_git20130607.tar.gz
+1c07fa02152b42bee44a8d1cd3f031596aeee37276ec4a36d765e3c54aa23075 ejabberd-git.initd
+0296d3d281a321cd7380772c1d89a94e4a86f85b7f43bf9dc1af74935c2e6386 ejabberd-git.confd"
+sha512sums="06283e49b6145d51629830568887ec3fd9f159c8174d5224f0918068dc778e8837e58414f8bb5745f2aa5ac07f6052df243402a25daff7f1c2238e16e184e721 ejabberd-git-0_git20130607.tar.gz
+1142b4f1ca240f20603ca9a64819780ff4a1d9fbde2940fd1dab6cbca1d2de5108cf35aa00ff1c037dc72a778c6502521e3908c6cde5a39c4bb3c9fc1c70aceb ejabberd-git.initd
+07143642982df18461fdecd16daaad3baf6a06f8222d7a76757797c531be2803975ed60cc43aace24a624aa7c73bd8fdc6e023e739de492271b79e571f27c8fb ejabberd-git.confd"
diff --git a/unmaintained/ejabberd-git/ejabberd-git.confd b/unmaintained/ejabberd-git/ejabberd-git.confd
new file mode 100644
index 000000000..b1e984e4d
--- /dev/null
+++ b/unmaintained/ejabberd-git/ejabberd-git.confd
@@ -0,0 +1,5 @@
+# Please configure everything at /etc/jabber/ejabberdctl.cfg
+# Put here only command line arguments for ejabberdctl (if any are required)
+
+#EJABBERDCTL_OPTS=""
+
diff --git a/unmaintained/ejabberd-git/ejabberd-git.initd b/unmaintained/ejabberd-git/ejabberd-git.initd
new file mode 100644
index 000000000..2d6d44d3c
--- /dev/null
+++ b/unmaintained/ejabberd-git/ejabberd-git.initd
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-3.initd,v 1.3 2010/06/02 07:12:27 pva Exp $
+
+depend() {
+ use dns
+ need net
+ provide jabber-server
+}
+
+start() {
+ if ejabberdctl status >/dev/null 2>&1; then
+ ewarn "ejabberd is already started (manually?)."
+ return 0
+ fi
+ ebegin "Starting ejabberd"
+ /usr/sbin/ejabberdctl ${EJABBERDCTL_OPT} start
+ eend $?
+}
+
+stop() {
+ ejabberdctl status >/dev/null 2>&1
+ if test $? = 3; then
+ ewarn "ejabberd is already stopped (manually?)."
+ return 0
+ fi
+ ebegin "Stopping ejabberd"
+ if /usr/sbin/ejabberdctl stop >/dev/null 2>&1; then
+ cnt=0
+ sleep 1
+ while ejabberdctl status >/dev/null 2>&1 || test $? = 1; do
+ echo -n .
+ cnt=`expr $cnt + 1`
+ if [ $cnt -ge 60 ] ; then
+ eend 1
+ break
+ fi
+ sleep 1
+ done
+ eend 0
+ else
+ eend 1
+ einfo "Please, run '/usr/sbin/ejabberdctl stop' to see what's going on."
+ fi
+ eend 0
+}
diff --git a/unmaintained/ejabberd-git/ejabberd-git.logrotate b/unmaintained/ejabberd-git/ejabberd-git.logrotate
new file mode 100644
index 000000000..03069078a
--- /dev/null
+++ b/unmaintained/ejabberd-git/ejabberd-git.logrotate
@@ -0,0 +1,12 @@
+/var/log/ejabberd/ejabberd.log {
+ weekly
+ missingok
+ rotate 10
+ compress
+ delaycompress
+ ifempty
+ nomail
+ sharedscripts
+ postrotate ejabberdctl --node ejabberd reopen-log > /dev/null
+ endscript
+}
diff --git a/unmaintained/ejabberd-git/ejabberd-git.pre-install b/unmaintained/ejabberd-git/ejabberd-git.pre-install
new file mode 100644
index 000000000..4111b3189
--- /dev/null
+++ b/unmaintained/ejabberd-git/ejabberd-git.pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+adduser -H -h /var/lib/ejabberd -G ejabberd -D ejabberd 2>/dev/null
+exit 0