2008-03-14 14:40:32 +01:00
|
|
|
{ stdenv, fetchurl, groff, nettools, coreutils, iputils, gnused,
|
|
|
|
bash, makeWrapper }:
|
2005-08-21 18:11:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-09-11 12:15:07 +02:00
|
|
|
name = "dhcp-3.0.6";
|
2007-03-16 12:55:21 +01:00
|
|
|
builder = ./builder.sh;
|
2005-08-21 18:11:25 +02:00
|
|
|
src = fetchurl {
|
2007-09-11 12:15:07 +02:00
|
|
|
url = http://ftp.isc.org/isc/dhcp/dhcp-3.0.6.tar.gz;
|
|
|
|
sha256 = "0k8gy3ab9kzs4qcc9apgnxi982lhggha41fkw9w1bmvmz7mv0xwz";
|
2005-08-21 18:11:25 +02:00
|
|
|
};
|
2008-05-09 00:08:58 +02:00
|
|
|
|
|
|
|
buildInputs = [ groff nettools coreutils makeWrapper ];
|
|
|
|
|
2008-03-14 14:40:32 +01:00
|
|
|
patches = [ ./resolv-without-domain.patch ./no-mkdir-var-run.patch ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
2008-05-09 00:08:58 +02:00
|
|
|
"${nettools}/bin:${nettools}/sbin:${coreutils}/bin:${gnused}/bin"
|
2008-03-14 14:40:32 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2008-05-09 00:08:58 +02:00
|
|
|
description = "Dynamic Host Configuration Protocol (DHCP) tools";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
ISC's Dynamic Host Configuration Protocol (DHCP) distribution
|
|
|
|
provides a freely redistributable reference implementation of
|
|
|
|
all aspects of DHCP, through a suite of DHCP tools: server,
|
|
|
|
client, and relay agent.
|
|
|
|
'';
|
|
|
|
|
2008-03-14 14:40:32 +01:00
|
|
|
homepage = http://www.isc.org/products/DHCP/;
|
|
|
|
license = "http://www.isc.org/sw/dhcp/dhcp-copyright.php";
|
|
|
|
};
|
2005-08-21 18:11:25 +02:00
|
|
|
}
|