2008-08-19 06:54:09 +01:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-08-03 18:08:52 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_5_2.tar.gz;
|
|
|
|
sha256 = "13xzwl8kc8i8xgdv7fpwgkj1wjhzagx4b03fkkj2hcfgdkp1978q";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [jre];
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
installPhase = FullDepEntry (''
|
|
|
|
sed -e 's@\(common_jvm_locations\)=.*@\1${jre}@' -i bin/openfire
|
|
|
|
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
|
|
|
|
'')
|
|
|
|
["minInit" "doUnpack" "addInputs"];
|
2008-08-19 06:54:09 +01:00
|
|
|
});
|
2008-08-03 18:08:52 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openfire-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[ installPhase doForceShare doPropagate]);
|
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
XMPP server in Java.
|
|
|
|
";
|
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|