blob: 26989ee87d47536eeab71e2f0d8a06f6c45e191c (
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
|
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
_luaver=5.1
pkgname=prosody
pkgver=0.9.12
pkgrel=0
pkgdesc="Lua based Jabber/XMPP server"
url="http://prosody.im/"
arch="all"
license="MIT"
depends="lua${_luaver}-socket lua${_luaver}-expat lua${_luaver}-filesystem
lua${_luaver}-sec lua${_luaver} lua"
makedepends="linux-headers lua${_luaver}-dev libidn-dev libressl-dev"
install="prosody.pre-install"
subpackages="$pkgname-doc"
pkgusers="prosody"
pkggroups="prosody"
source="http://prosody.im/downloads/source/$pkgname-$pkgver.tar.gz
$pkgname.cfg.lua.patch
${pkgname}ctl.patch
$pkgname.initd
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc/prosody \
--ostype=linux \
--with-lua=/usr/bin \
--with-lua-lib=/usr/lib \
--with-lua-include=/usr/include \
--runwith=lua${_luaver} \
--no-example-certs \
|| return 1
# Don't generate certs
rm -f "$builddir"/certs/Makefile
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -d -o prosody -g prosody "$pkgdir/var/log/prosody" || return 1
install -d -o prosody -g prosody "$pkgdir/var/run/prosody" || return 1
install -d -m750 -o prosody -g prosody "$pkgdir/var/lib/prosody" \
|| return 1
install -D -m755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
}
md5sums="d743adea6cfbaacc3a24cc0c3928bb1b prosody-0.9.12.tar.gz
b839353efd51b724723f0f4293f76bfb prosody.cfg.lua.patch
ce986894862bab749ca4b46afacf72d2 prosodyctl.patch
413897e00f00c58bb8cbe59736291ef8 prosody.initd"
sha256sums="1a59a322b71928a21985522aa00d0eab3552208d7bf9ecb318542a1b2fee3e8d prosody-0.9.12.tar.gz
8653ccb14a0a5e27fee95b5baf412158543f619f6ca54fd7630c8d333ddddadd prosody.cfg.lua.patch
33bb4fd12ecd1376bba5602d8db8bbdfb2913e6ddc348b58e0e4877125b8b433 prosodyctl.patch
aaad1d10168e27e10ced38963d5bbeb0c7988bf58a2e74f02a103a3318047e1d prosody.initd"
sha512sums="e87b5f3b3e327722cec9d8d0470684e2ec2788a1c5ae623c4f505a00572ef21f65afe84cd5b7de47d6a65fe8872506fe34e5e8886e20979ff84710669857ca76 prosody-0.9.12.tar.gz
950d9b53887d859b7d64986ba3817f92fb45ed1b653998759458156197b9623f1cc240559da071e20992f7aa497ef37d422da2168aa5b3c4ea3946482d160f41 prosody.cfg.lua.patch
96657034ad754ea974222639c45770a1d10f13fe91ed493ab3329382666e2de14807d203105c7a200236875f0d430f7356a0ac8bd624d4859e80eabfbeefc205 prosodyctl.patch
11b0f5e4fa488e047c26aa5e51c35983100cdbf7ebbf7c8b6d003c8db7f52e797f93e4744d54b3094c82d722d5e4de62b5734376cb5e69a4c6127f8cb07a4347 prosody.initd"
|