aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ejabberd/APKBUILD
blob: 29979c48ccd760e8ba409aa3c2ed30e11f388d51 (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
# Contributor: Leonardo Arena <rnarld@alpinelinux.org>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=ejabberd
pkgver=2.1.13
pkgrel=0
pkgdesc="An erlang jabber server"
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://www.process-one.net/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver
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 || return 1

	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="00f8f28752e6728870cb4c8ad0339984  ejabberd-2.1.13.tgz"
sha256sums="a80d1c72e435da31758261cb0c04fe750ac71fc3e33a3b606123efd3b3abc86d  ejabberd-2.1.13.tgz"
sha512sums="9348271f0cf1d9a7e6c53204121568e77820afc50fff1271e7b7ef66c5c5d7d067034c46472250423c4e9052046b18c1c8178f09eda0b0bfe25a1eac465fd07b  ejabberd-2.1.13.tgz"