From 77ccbb95513007eebb5e10afe08d486498b9885d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Jul 2012 00:01:34 +0000 Subject: Wed Jul 11 00:01:34 UTC 2012 --- community/ejabberd/PKGBUILD | 13 ++++--------- community/ejabberd/ejabberd | 2 +- community/ejabberd/ejabberd.install | 3 +-- 3 files changed, 6 insertions(+), 12 deletions(-) (limited to 'community/ejabberd') diff --git a/community/ejabberd/PKGBUILD b/community/ejabberd/PKGBUILD index 5c81e9d9a..e18d678d8 100644 --- a/community/ejabberd/PKGBUILD +++ b/community/ejabberd/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 73273 2012-07-05 09:07:14Z spupykin $ +# $Id: PKGBUILD 73545 2012-07-09 12:52:21Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Jeff 'codemac' Mickey # Contributor: Alexander Rødseth pkgname=ejabberd pkgver=2.1.11 -pkgrel=2 +pkgrel=3 pkgdesc="Jabber server written in Erlang" arch=('x86_64' 'i686') url="http://www.ejabberd.im/" @@ -18,11 +18,10 @@ source=("http://www.process-one.net/downloads/ejabberd/${pkgver/_/-}/ejabberd-${ "$pkgname") md5sums=('a70b040c4e7602f47718c8afe8780d50' 'f97c8a96160f30e0aecc9526c12e6606' - '13c22f8f3b55e3933d531e652e4e7535') + '2338a6230ce5f9f60be6dddcfa39bc7e') build() { cd "$srcdir/$pkgname-$pkgver/src" - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --enable-pam --enable-odbc make @@ -30,14 +29,10 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver/src" - make DESTDIR="$pkgdir" install install -D -m 0755 "$srcdir/$pkgname" "$pkgdir/etc/rc.d/$pkgname" - install -d "$pkgdir/var/spool/$pkgname" install -d "$pkgdir/var/lib/$pkgname" - install -D -m0644 "$srcdir/$pkgname.logrotate" \ - "$pkgdir/etc/logrotate.d/$pkgname" - sed -i 's|SPOOLDIR=/var/lib/ejabberd|SPOOLDIR=/var/spool/ejabberd|' $pkgdir/usr/sbin/ejabberdctl + install -D -m0644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname" chmod ug+r "$pkgdir/etc/$pkgname/"* rm -rf "$pkgdir/var/lock" } diff --git a/community/ejabberd/ejabberd b/community/ejabberd/ejabberd index 259d4db66..c73be811c 100644 --- a/community/ejabberd/ejabberd +++ b/community/ejabberd/ejabberd @@ -23,7 +23,7 @@ case "$1" in [ -f /var/run/ejabber.pid ] && rm -f /var/run/ejabber.pid PID=`get_pid` if [ -z "$PID" ]; then - su ejabberd -s /bin/bash - -c 'erl -pa /usr/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} -mnesia dir \"/var/spool/ejabberd\" -detached -kernel inetrc \"/etc/ejabberd/inetrc\"' + su ejabberd -s /bin/bash - -c 'erl -pa /usr/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} -mnesia dir \"/var/lib/ejabberd\" -detached -kernel inetrc \"/etc/ejabberd/inetrc\"' if [ $? -gt 0 ]; then stat_fail exit 1 diff --git a/community/ejabberd/ejabberd.install b/community/ejabberd/ejabberd.install index 9d17a911e..6e586229d 100644 --- a/community/ejabberd/ejabberd.install +++ b/community/ejabberd/ejabberd.install @@ -2,7 +2,6 @@ post_install() { groupadd -r jabber useradd -r -G jabber -d /var/lib/ejabberd ejabberd chown -R ejabberd.jabber /var/log/ejabberd - chown -R ejabberd.jabber /var/spool/ejabberd chown -R ejabberd.jabber /var/lib/ejabberd chown root:ejabberd /usr/lib/ejabberd/priv/bin/epam chown root:ejabberd /etc/ejabberd/ejabberd.cfg /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd @@ -11,11 +10,11 @@ post_install() { post_upgrade() { chown -R ejabberd.jabber /var/log/ejabberd - chown -R ejabberd.jabber /var/spool/ejabberd chown -R ejabberd.jabber /var/lib/ejabberd chown root:ejabberd /etc/ejabberd/ejabberd.cfg /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd chown root:ejabberd /usr/lib/ejabberd/priv/bin/epam chmod 4750 /usr/lib/ejabberd/priv/bin/epam + echo ">> ejabberd looks into /var/lib/ejabberd for mnesia db now" } post_remove() { -- cgit v1.2.3-54-g00ecf