diff --git a/pkgs/tools/networking/p2p/bit-tornado/default.nix b/pkgs/tools/networking/p2p/bit-tornado/default.nix new file mode 100644 index 00000000000..222ca453068 --- /dev/null +++ b/pkgs/tools/networking/p2p/bit-tornado/default.nix @@ -0,0 +1,19 @@ +{stdenv,fetchurl,python,wxPython26}: +stdenv.mkDerivation { + name = "bit-tornado"; + + src = fetchurl { + url = http://download2.bittornado.com/download/BitTornado-0.3.18.tar.gz; + sha256 = "1q6rapidnizy8wawasirgyjl9s4lrm7mm740mc5q5sdjyl5svrnr"; + }; + + buildInputs = [python]; + + buildPhase = " "; + installPhase = "python setup.py install --prefix=$out ;"+ + " echo 'export PYTHONPATH=$PYTHONPATH:'$out'/lib/python2.4/site-packages:"+ + wxPython26+"/lib/python2.4/site-packages:"+ + wxPython26+"/lib/python2.4/site-packages/wx-2.6-gtk2-unicode; "+ + "python `which btdownloadgui.py` --ipv6_enabled 1 --ipv6_binds_v4 0 \"$@\";' >"+ + "$out/bin/bittornado ; chmod a+rx $out/bin/bittornado;"; +} diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix new file mode 100644 index 00000000000..7203e1f053e --- /dev/null +++ b/pkgs/tools/security/sudo/default.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, coreutils}: +stdenv.mkDerivation { + name = "sudo"; + + src = fetchurl { + url = ftp://sunsite.ualberta.ca/pub/Mirror/sudo/sudo-1.6.8p12.tar.gz; + md5 = "b29893c06192df6230dd5f340f3badf5"; + }; + + postConfigure = "sed -e '/_PATH_MV/d; /_PATH_VI/d' -i config.h ; echo '#define _PATH_MV \"/var/run/current-system/sw/bin/mv\"' >> config.h; echo '#define _PATH_VI \"/var/run/current-system/sw/bin/vi\"' >> config.h; echo '#define EDITOR _PATH_VI' >>config.h "; + + makeFlags = " install_gid=nixbld install_uid=nixbld1 "; + + installFlags = " sudoers_uid=nixbld1 sudoers_gid=nixbld sysconfdir=$(prefix)/etc "; + + buildInputs = [coreutils]; +}