3
0
Fork 0
forked from mirrors/nixpkgs

* Added openresolv, a program for managing /etc/resolv.conf.

svn path=/nixpkgs/trunk/; revision=32337
This commit is contained in:
Eelco Dolstra 2012-02-16 18:40:05 +00:00
parent 4df117c395
commit 148612239c
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "openresolv-3.4.6";
src = fetchurl {
url = "http://roy.marples.name/downloads/openresolv/${name}.tar.bz2";
sha256 = "026z4973b0vqp5acr6mn5fyxyc84y4ahg1f8fddh8dph86jcnhba";
};
configurePhase =
''
cat > config.mk <<EOF
PREFIX=$out
SYSCONFDIR=/etc
SBINDIR=$out/sbin
LIBEXECDIR=$out/libexec/resolvconf
VARDIR=/var/run/resolvconf
MANDIR=$out/share/man
RESTARTCMD="initctl restart \1"
EOF
'';
installFlags = "SYSCONFDIR=$(out)/etc";
meta = {
description = "A program to manage /etc/resolv.conf";
homepage = http://roy.marples.name/projects/openresolv;
license = "bsd";
};
}

View file

@ -1130,6 +1130,8 @@ let
openobex = callPackage ../tools/bluetooth/openobex { };
openresolv = callPackage ../tools/networking/openresolv { };
opensc_0_11_7 = callPackage ../tools/security/opensc/0.11.7.nix { };
opensc = opensc_0_11_7;