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