2014-09-01 21:55:54 +01:00
|
|
|
{ lib, stdenv, fetchurl, readline, tcp_wrappers, pcre, makeWrapper }:
|
|
|
|
assert stdenv.isLinux;
|
2015-01-15 04:25:26 +00:00
|
|
|
assert stdenv.cc.cc.isGNU or false;
|
2014-09-01 21:55:54 +01:00
|
|
|
let
|
|
|
|
version = "0.7";
|
|
|
|
debianPatch = fetchurl {
|
2014-09-13 16:39:40 +01:00
|
|
|
url = "mirror://debian/pool/main/a/atftp/atftp_${version}.dfsg-11.diff.gz";
|
|
|
|
sha256 = "07g4qbmp0lnscg2dkj6nsj657jaghibvfysdm1cdxcn215n3zwqd";
|
2014-09-01 21:55:54 +01:00
|
|
|
};
|
|
|
|
in
|
2014-08-24 13:19:55 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-09-13 16:39:40 +01:00
|
|
|
name = "atftp";
|
|
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/a/atftp/atftp_${version}.dfsg.orig.tar.gz";
|
|
|
|
sha256 = "0nd5dl14d6z5abgcbxcn41rfn3syza6s57bbgh4aq3r9cxdmz08q";
|
|
|
|
};
|
|
|
|
buildInputs = [ readline tcp_wrappers pcre makeWrapper ];
|
|
|
|
patches = [ debianPatch ];
|
|
|
|
postInstall = ''
|
2015-01-15 04:25:26 +00:00
|
|
|
wrapProgram $out/sbin/atftpd --prefix LD_LIBRARY_PATH : ${stdenv.cc.cc}/lib${if stdenv.system == "x86_64-linux" then "64" else ""}
|
2014-09-13 16:39:40 +01:00
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "Advanced tftp tools";
|
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://packages.debian.org/source/wheezy/atftp";
|
|
|
|
};
|
|
|
|
};
|
2014-09-01 21:55:54 +01:00
|
|
|
};
|
2014-08-24 13:19:55 +01:00
|
|
|
}
|