2012-02-20 01:14:57 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2009-07-17 12:41:19 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-26 10:22:13 +01:00
|
|
|
name = "dhcpcd-5.6.8";
|
2009-07-17 12:41:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://roy.marples.name/downloads/dhcpcd/${name}.tar.bz2";
|
2013-04-26 10:22:13 +01:00
|
|
|
sha256 = "1i7fv1l0n7q1mnia7g0789ch63x5zhwk5gsrwvs78dv2f2kmvcd3";
|
2009-07-17 12:41:19 +01:00
|
|
|
};
|
|
|
|
|
2012-02-20 15:12:34 +00:00
|
|
|
configureFlags = "--sysconfdir=/etc";
|
|
|
|
|
2009-07-17 12:41:19 +01:00
|
|
|
makeFlags = "PREFIX=\${out}";
|
|
|
|
|
|
|
|
# Hack to make installation succeed. dhcpcd will still use /var/db
|
|
|
|
# at runtime.
|
2012-02-20 15:12:34 +00:00
|
|
|
installFlags = "DBDIR=\${TMPDIR}/db SYSCONFDIR=$(out)/etc";
|
2009-07-17 12:41:19 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A client for the Dynamic Host Configuration Protocol (DHCP)";
|
|
|
|
homepage = http://roy.marples.name/projects/dhcpcd;
|
2012-03-21 16:48:36 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2009-07-17 12:41:19 +01:00
|
|
|
};
|
|
|
|
}
|