2010-07-29 20:55:16 +02:00
|
|
|
{ stdenv, fetchurl, builderDefs, jre }:
|
|
|
|
|
|
|
|
with builderDefs;
|
2009-04-12 22:15:37 +02:00
|
|
|
let
|
|
|
|
version="3_6_3";
|
|
|
|
localDefs = builderDefs.passthru.function (rec {
|
2008-02-21 05:48:55 +01:00
|
|
|
src = /* put a fetchurl here */
|
2009-04-12 22:15:37 +02:00
|
|
|
fetchurl {
|
|
|
|
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
|
|
|
|
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
|
|
|
|
};
|
2008-02-21 05:48:55 +01:00
|
|
|
|
|
|
|
buildInputs = [jre];
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
installPhase = fullDepEntry (''
|
2008-02-21 05:48:55 +01:00
|
|
|
sed -e 's@\(common_jvm_locations\)=.*@\1${jre}@' -i bin/openfire
|
|
|
|
cp -r . $out
|
2008-03-22 18:53:27 +01:00
|
|
|
rm -r $out/logs
|
|
|
|
mv $out/conf $out/conf.inst
|
2008-03-22 20:51:19 +01:00
|
|
|
ln -s /var/log/openfire $out/logs
|
2008-03-22 18:53:27 +01:00
|
|
|
ln -s /etc/openfire $out/conf
|
2008-02-21 05:48:55 +01:00
|
|
|
'')
|
2008-03-22 18:53:27 +01:00
|
|
|
["minInit" "doUnpack" "addInputs"];
|
2008-08-19 07:54:09 +02:00
|
|
|
});
|
2008-02-21 05:48:55 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openfire-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
2008-03-22 18:53:27 +01:00
|
|
|
[ installPhase doForceShare doPropagate]);
|
2008-02-21 05:48:55 +01:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "XMPP server in Java";
|
|
|
|
inherit src;
|
2008-02-21 05:48:55 +01:00
|
|
|
};
|
|
|
|
}
|