Adding forgot new files for sudo and BitTornado
svn path=/nixpkgs/trunk/; revision=8899
This commit is contained in:
parent
7008472012
commit
35ae2ce5c3
19
pkgs/tools/networking/p2p/bit-tornado/default.nix
Normal file
19
pkgs/tools/networking/p2p/bit-tornado/default.nix
Normal file
@ -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;";
|
||||
}
|
17
pkgs/tools/security/sudo/default.nix
Normal file
17
pkgs/tools/security/sudo/default.nix
Normal file
@ -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];
|
||||
}
|
Loading…
Reference in New Issue
Block a user