]> git.pld-linux.org Git - packages/ejabberd.git/commitdiff
- added erl cookie support, fixes #5535, rel up to 2 auto/ac/ejabberd-0_7_5-2
authordeejay1 <deejay1@pld-linux.org>
Thu, 11 Nov 2004 11:32:08 +0000 (11:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ejabberd.spec -> 1.9

ejabberd.spec

index 7740d3a7388cf61f00a6da64f418707e507fa08a..0f7f1a530b53be4997e6caffcf60cdfee79fb775 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Fault-tolerant distributed Jabber/XMPP server
 Summary(pl):   Odporny na awarie rozproszony serwer Jabbera/XMPP
 Name:          ejabberd
 Version:       0.7.5
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/Communications
 Source0:       http://www.jabberstudio.org/files/ejabberd/%{name}-%{version}.tar.gz
@@ -72,6 +72,13 @@ if [ -f /etc/jabber/secret ] ; then
        fi
 fi
 
+if [ ! -f /etc/jabber/cookie ] ; then
+        echo "Generating erl authentication cookie..."
+        umask 066
+        perl -e 'open R,"/dev/urandom"; read R,$r,16;
+                printf "%02x",ord(chop $r) while($r);' > /etc/jabber/cookie
+fi
+
 /sbin/chkconfig --add ejabberd
 if [ -r /var/lock/subsys/ejabberd ]; then
        /etc/rc.d/init.d/ejabberd restart >&2
This page took 0.090172 seconds and 4 git commands to generate.