aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ejabberd/APKBUILD
blob: daa13cebae5cdb2496318344994f619f9d32b80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Contributor: Leonardo Arena <rnarld@alpinelinux.org>
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=ejabberd
pkgver=15.04
pkgrel=1
pkgdesc="An erlang jabber server"
url="http://www.ejabberd.im"
arch="all"
license="GPL2+"
_erl_deps="erlang17-asn1
           erlang17-crypto
	   erlang17-eldap
	   erlang17-mnesia
	   erlang17-public-key
	   erlang17-sasl
	   erlang17-ssl
	   erlang17-syntax-tools"
_erl_make_deps="erlang17-eunit
                erlang17-parsetools"
depends="erlang17
         util-linux
	 yaml
	 $_erl_deps"
depends_dev="erlang17-dev
             expat-dev
	     openssl-dev
	     zlib-dev 
	     heimdal-dev
	     yaml-dev
	     git"
makedepends="$depends_dev $_erl_deps $_erl_make_deps"
pkgusers="ejabberd"
pkggroups="ejabberd"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.process-one.net/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tgz
        ejabberd.initd
	ejabberd.logrotate
	ejabberd.confd"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	install -d ${pkgdir}/var/spool/$pkgname
	install -d ${pkgdir}/var/lib/$pkgname
	install -D -m0644 "$srcdir"/$pkgname.logrotate ${pkgdir}/etc/logrotate.d/$pkgname
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$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.yml "$pkgdir"/etc/ejabberd/ejabberdctl.cfg "$pkgdir"/etc/ejabberd
}

md5sums="0a914f14ccb7f2d0a45e641efed21afd  ejabberd-15.04.tgz
e0ef3a939e87779737ce75469e79fef1  ejabberd.initd
f97c8a96160f30e0aecc9526c12e6606  ejabberd.logrotate
fa61d30731cb4d818187d2e5e2fd766a  ejabberd.confd"
sha256sums="6750199b75d6b658dabffdf34e20994803b2fc0832e54fea7ab388e5122d63ec  ejabberd-15.04.tgz
1c07fa02152b42bee44a8d1cd3f031596aeee37276ec4a36d765e3c54aa23075  ejabberd.initd
31780cac78736d285e46f445f8c8463a70f2aeb2683280c259129db11832ddd2  ejabberd.logrotate
e1f690788cd1b5ecb334582af8e019602d297ef8b914a030de69bce2cc20fffd  ejabberd.confd"
sha512sums="f19fc8560944eb928620d3f08cf5c0da63c643653551bf10e19fc9ab6fdef09aef935ecef086611cea00f56e5ac86b56d1b1ddefad42fd403319b824573c7750  ejabberd-15.04.tgz
1142b4f1ca240f20603ca9a64819780ff4a1d9fbde2940fd1dab6cbca1d2de5108cf35aa00ff1c037dc72a778c6502521e3908c6cde5a39c4bb3c9fc1c70aceb  ejabberd.initd
47fd2cfd9177c4e978a9799a153ba74392a9891822221af8194686a40f6bf01f38644833e1e1f5416c6357e0bfb7ca3dae96f55a4fcd7cd629ec798d85a72807  ejabberd.logrotate
96a571c0ab2be366e931bda423a61ef920cbaba2107e61ddbc501472ce3efe2804418cc6579c99310b902a9a99aaecb9284cf2420c071dbca2f670efb4034135  ejabberd.confd"