2021-01-15 08:07:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2010-07-29 20:55:16 +02:00
|
|
|
|
2014-07-27 13:49:42 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "openfire";
|
2014-07-27 13:49:42 +02:00
|
|
|
version = "3_6_3";
|
2008-02-21 05:48:55 +01:00
|
|
|
|
2014-07-27 13:49:42 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
|
|
|
|
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-09-30 17:39:09 +02:00
|
|
|
sed -e 's@\(common_jvm_locations=\).*@\1${jre}@' -i bin/openfire
|
2014-07-27 13:49:42 +02:00
|
|
|
cp -r . $out
|
|
|
|
rm -r $out/logs
|
|
|
|
mv $out/conf $out/conf.inst
|
|
|
|
ln -s /var/log/openfire $out/logs
|
|
|
|
ln -s /etc/openfire $out/conf
|
2021-01-15 08:07:56 +01:00
|
|
|
'';
|
2008-02-21 05:48:55 +01:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "XMPP server in Java";
|
2021-01-15 08:07:56 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2017-01-04 19:36:33 +01:00
|
|
|
# Some security advisories seem to apply, and each next version wants to
|
|
|
|
# write into larger parts of installation directory; installation is just
|
|
|
|
# unpacking, though
|
|
|
|
broken = true;
|
2008-02-21 05:48:55 +01:00
|
|
|
};
|
|
|
|
}
|