1 # Maintainer: Dwayne Bent <dbb.1@liqd.org>
2 # Contributor: Paul-Sebastian Manole <brokenthorn@gmail.com>
7 pkgdesc="Lightweight and extensible Jabber/XMPP server written in Lua."
9 url="http://prosody.im/"
11 depends=('lua>=5.1' 'luasocket' 'luaexpat' 'luafilesystem' 'libidn>=0.5.18')
12 optdepends=('lua-cyrussasl: Cyrus SASL support'
13 'lua-zlib: stream compression support'
14 'luaevent-prosody: high performance eventing support'
15 'luasec: TLS stream encryption suport')
17 backup=('etc/prosody/prosody.cfg.lua'
18 'etc/logrotate.d/prosody')
19 install=prosody.install
20 source=("http://prosody.im/depot/$pkgver/prosody-$pkgver.tar.gz"
24 md5sums=('abce03d8715ba43ee591826be5c7eed8'
25 'e0a9d47f94d89ae84e774e7a16870b81'
26 'f3471e32539c918c0ff2bc07c49f1915'
27 '535f71eff00e4f9bc4e4f9a95677c780')
30 cd "$srcdir/prosody-$pkgver"
32 ./configure --prefix=/usr --sysconfdir=/etc/prosody \
33 --datadir=/var/lib/prosody || return 1
35 make DESTDIR="$pkgdir" install || return 1
37 rm $pkgdir/etc/prosody/certs/*
39 install -d "$pkgdir/etc/rc.d" || return 1
40 install -d "$pkgdir/etc/logrotate.d" || return 1
41 install -d "$pkgdir/var/log/prosody" || return 1
42 install -d "$pkgdir/var/run/prosody" || return 1
43 install -d "$pkgdir/usr/share/licenses/prosody" || return 1
45 install -o root -g root -m 644 "$startdir/prosody.cfg.lua" \
46 "$pkgdir/etc/prosody/prosody.cfg.lua" || return 1
47 install -o root -g root -m 755 "$startdir/prosody.rcd" \
48 "$pkgdir/etc/rc.d/prosody" || return 1
49 install -o root -g root -m 644 "$startdir/prosody.logrotated" \
50 "$pkgdir/etc/logrotate.d/prosody" || return 1
51 install -o root -g root -m 644 "COPYING" \
52 "$pkgdir/usr/share/licenses/prosody" || return 1