2008-08-19 06:54:09 +01:00
|
|
|
args : with args; with builderDefs;
|
2009-04-12 21:15:37 +01: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 21:15:37 +01: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 = [];
|
|
|
|
|
|
|
|
installPhase = FullDepEntry (''
|
|
|
|
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 06:54:09 +01: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";
|
|
|
|
inherit src;
|
2008-02-21 04:48:55 +00:00
|
|
|
};
|
|
|
|
}
|