* Sync with the trunk.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15065
This commit is contained in:
Eelco Dolstra
2009-04-15 13:25:01 +00:00
55 changed files with 1128 additions and 133 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, expat, erlang, zlib, openssl}:
{stdenv, fetchurl, expat, erlang, zlib, openssl, pam}:
stdenv.mkDerivation {
name = "ejabberd-2.0.0";
@@ -6,13 +6,14 @@ stdenv.mkDerivation {
url = http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz;
sha256 = "086e105cb402ef868e3187277db1486807e1b34a2e3e3679f0ee6de1e5fd2e54";
};
buildInputs = [ expat erlang zlib openssl ];
buildInputs = [ expat erlang zlib openssl pam ];
patchPhase = ''
sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template
'';
preConfigure = ''
cd src
'';
configureFlags = ["--enable-pam"];
meta = {
description = "Open-source XMPP application server written in Erlang";
-32
View File
@@ -1,32 +0,0 @@
args : with args; with builderDefs;
let localDefs = builderDefs.passthru.function (rec {
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"];
});
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;
};
}
@@ -1,10 +1,12 @@
args : with args; with builderDefs;
let localDefs = builderDefs.passthru.function (rec {
let
version="3_6_3";
localDefs = builderDefs.passthru.function (rec {
src = /* put a fetchurl here */
fetchurl {
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_4_5.tar.gz;
sha256 = "0j1ddk0wiqxhbi3872vf2mqx0jynswrvbfbabrp73zqhz3mdvsal";
};
fetchurl {
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
};
buildInputs = [jre];
configureFlags = [];
+38
View File
@@ -0,0 +1,38 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.getAttr ["version"] "0.4" a;
buildInputs = with a; [
xmpppy pythonIRClib python makeWrapper
];
in
rec {
src = fetchurl {
url = "http://prdownloads.sourceforge.net/sourceforge/xmpppy/irc-transport-${version}.tar.gz";
sha256 = "0gbc0dvj1p3088b6x315yjrlwnc5vvzp0var36wlf9z60ghvk8yb";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["deploy" (a.makeManyWrappers "$out/share/${name}/irc.py" a.pythonWrapperArguments)];
deploy = a.FullDepEntry (''
ensureDir $out/bin $out/share/${name}
sed -e 's@/usr/bin/@${a.python}/bin/@' -i irc.py
sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.pyIRCt.xml"]' -i config.py
sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.python-irc-transport.xml"]' -i config.py
sed -e '/configFiles/iimport os' -i config.py
cp * $out/share/$name
echo "#! /bin/sh" > $out/bin/pyIRCt
echo "cd $out/share/${name}" >> $out/bin/pyIRCt
echo "./irc.py \"$@\"" >> $out/bin/pyIRCt
chmod a+rx $out/bin/pyIRCt $out/share/${name}/irc.py
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
name = "pyIRCt-" + version;
meta = {
description = "IRC transport module for XMPP";
};
}
+40
View File
@@ -0,0 +1,40 @@
a :
let
fetchurl = a.fetchurl;
buildInputs = with a; [
xmpppy python makeWrapper
];
in
rec {
src = a.fetchcvs {
cvsRoot = ":pserver:anonymous@xmpppy.cvs.sourceforge.net:/cvsroot/xmpppy";
module = "xmpppy/mail-transport";
date = "2009-01-01";
sha256 = "15301252e52b4ccb2156baefed8982a2a0cce3ae8eae3caf3cc28dfa615c8d6e";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["deploy" (a.makeManyWrappers "$out/share/${name}/mail.py" a.pythonWrapperArguments)];
deploy = a.FullDepEntry (''
cd mail-transport
ensureDir $out/bin $out/share/${name}
sed -e 's@/usr/bin/@${a.python}/bin/@' -i mail.py
sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.pyMAILt.xml"]' -i config.py
sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.python-mail-transport.xml"]' -i config.py
sed -e '/configFiles/iimport os' -i config.py
cp * $out/share/$name
echo "#! /bin/sh" > $out/bin/pyMAILt
echo "cd $out/share/${name}" >> $out/bin/pyMAILt
echo "./mail.py \"$@\"" >> $out/bin/pyMAILt
chmod a+rx $out/bin/pyMAILt $out/share/${name}/mail.py
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
name = "pyMAILt";
meta = {
description = "Email transport module for XMPP";
};
}