blob: a47078ce391c02bebe54af0d2547c7851756743b (
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
|
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=prosody
pkgver=0.8.2
pkgrel=1
pkgdesc="Lua based Jabber/XMPP server"
url="http://prosody.im/"
arch="all"
license="MIT"
depends="lua-socket lua-expat lua-filesystem lua-sec"
makedepends="lua-dev libidn-dev openssl-dev"
install="prosody.pre-install prosody.post-install"
subpackages=""
source="http://prosody.im/downloads/source/$pkgname-$pkgver.tar.gz
$pkgname.cfg.lua.patch
$pkgname.initd
"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
--sysconfdir=/etc/prosody \
--with-lua=/usr/bin \
--with-lua-lib=/usr/lib \
--with-lua-include=/usr/include
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -d "$pkgdir/var/log/prosody" || return 1
install -d "$pkgdir/var/run/prosody" || return 1
patch "$pkgdir/etc/prosody/prosody.cfg.lua" "$srcdir/prosody.cfg.lua.patch" || return 1
install -D -m755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="6e907bf0d0acf24f1011083020ba6ffb prosody-0.8.2.tar.gz
5a415bb85fb1e00a17cb3ad951e3b889 prosody.cfg.lua.patch
9b68b81deb2148a3a6c3b5d2eb9c96b9 prosody.initd"
|