summaryrefslogtreecommitdiff
path: root/community/ejabberd/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-17 04:11:32 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-17 04:11:32 +0000
commit313040c7029fd0c36db63d7effbb974fd348389c (patch)
treeec5b3f373734bf3ad6ca37e800cb9b6ef6bee2f0 /community/ejabberd/PKGBUILD
parent4f73192c45f7b9615f06144dcb71f8450d39b7fb (diff)
Sat May 17 04:06:11 UTC 2014
Diffstat (limited to 'community/ejabberd/PKGBUILD')
-rw-r--r--community/ejabberd/PKGBUILD30
1 files changed, 11 insertions, 19 deletions
diff --git a/community/ejabberd/PKGBUILD b/community/ejabberd/PKGBUILD
index d820a8479..f39532775 100644
--- a/community/ejabberd/PKGBUILD
+++ b/community/ejabberd/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 109642 2014-04-17 10:33:05Z spupykin $
+# $Id: PKGBUILD 111330 2014-05-16 16:35:25Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=ejabberd
-pkgver=13.12
-pkgrel=2
+pkgver=14.05
+pkgrel=1
pkgdesc="Jabber server written in Erlang"
arch=('x86_64' 'i686')
url="http://www.ejabberd.im/"
@@ -37,11 +37,8 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/processone/ejabberd/archive
"git://github.com/cmullaparthi/ibrowse"
"git://github.com/esl/lhttpc"
"$pkgname.logrotate"
- "ejabberd.service"
- "crash-fix.patch"
- "https://github.com/processone/ejabberd/commit/7af7b7d3f0c4bf399fb7db54c38090c8d1a25873.patch"
- "https://github.com/processone/ejabberd/commit/d97b4fd9ca36858a12bc5e6841334cde4c8f0431.patch")
-md5sums=('6eadb6f190d55c8a679de5496ca0c4a9'
+ "ejabberd.service")
+md5sums=('16bffbf9b9e18b69133e983fd82364b6'
'SKIP'
'SKIP'
'SKIP'
@@ -60,20 +57,11 @@ md5sums=('6eadb6f190d55c8a679de5496ca0c4a9'
'SKIP'
'SKIP'
'f97c8a96160f30e0aecc9526c12e6606'
- 'a437aff9d7d477fb036d527205617e18'
- 'ef3dd667dec1627c1597c7f6f3cfcd4a'
- 'aa8cf60e39b0deee112e20f305022ade'
- '5f2cada6c6504f1e3874ef33606751c8')
+ 'a437aff9d7d477fb036d527205617e18')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
- patch -p1 <$srcdir/crash-fix.patch
-
- # erlang 17 fix
- patch -p1 <$srcdir/d97b4fd9ca36858a12bc5e6841334cde4c8f0431.patch
- patch -p1 <$srcdir/7af7b7d3f0c4bf399fb7db54c38090c8d1a25873.patch
-
mkdir -p "$srcdir/$pkgname-$pkgver/deps"
for i in goldrush lager p1_cache_tab p1_iconv p1_pam \
p1_stringprep p1_tls p1_xml p1_yaml p1_zlib xmlrpc \
@@ -82,7 +70,10 @@ prepare() {
mv $srcdir/$i "$srcdir/$pkgname-$pkgver/deps"
done
- sed -i 's|%%% @author.*|%%% @author Oscar Hellstrom <oscar@hellstrom.st>|g' deps/lhttpc/src/lhttpc.app.src
+ pushd deps/lhttpc/src/
+ mv lhttpc.app.src lhttpc.app.src.bak
+ cat lhttpc.app.src.bak | iconv -f utf8 -c >lhttpc.app.src
+ popd
}
build() {
@@ -95,6 +86,7 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
+ install -Dm04750 deps/p1_pam/priv/bin/epam $pkgdir/usr/lib/ejabberd/priv/bin/epam
install -d "$pkgdir/var/lib/$pkgname"
install -D -m0644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
chmod ug+r "$pkgdir/etc/$pkgname/"*