2017-11-07 18:38:41 +00:00
|
|
|
{ fetchurl, stdenv, libnsl }:
|
2008-03-15 22:41:31 +00:00
|
|
|
|
2017-02-03 17:14:00 +00:00
|
|
|
let
|
|
|
|
vanillaVersion = "7.6.q";
|
|
|
|
patchLevel = "26";
|
|
|
|
in stdenv.mkDerivation rec {
|
2017-01-31 13:12:22 +00:00
|
|
|
name = "tcp-wrappers-${version}";
|
2017-02-03 17:14:00 +00:00
|
|
|
version = "${vanillaVersion}-${patchLevel}";
|
2007-11-20 15:55:37 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2017-02-03 17:14:00 +00:00
|
|
|
url = "mirror://debian/pool/main/t/tcp-wrappers/tcp-wrappers_${vanillaVersion}.orig.tar.gz";
|
2017-01-31 13:12:22 +00:00
|
|
|
sha256 = "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm";
|
2007-11-20 15:55:37 +00:00
|
|
|
};
|
2009-02-26 09:53:31 +00:00
|
|
|
|
2017-01-31 13:12:22 +00:00
|
|
|
debian = fetchurl {
|
2017-02-03 17:14:00 +00:00
|
|
|
url = "mirror://debian/pool/main/t/tcp-wrappers/tcp-wrappers_${version}.debian.tar.xz";
|
|
|
|
sha256 = "1dcdhi9lwzv7g19ggwxms2msq9fy14rl09rjqb10hwv0jix7z8j8";
|
2017-01-31 13:12:22 +00:00
|
|
|
};
|
2009-02-26 09:53:31 +00:00
|
|
|
|
2016-05-14 19:05:58 +01:00
|
|
|
prePatch = ''
|
2017-01-31 13:12:22 +00:00
|
|
|
tar -xaf $debian
|
2017-02-03 17:14:00 +00:00
|
|
|
patches="$(cat debian/patches/series | sed 's,^,debian/patches/,') $patches"
|
2016-05-14 19:05:58 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-07 18:38:41 +00:00
|
|
|
buildInputs = [ libnsl ];
|
|
|
|
|
2017-07-30 13:03:31 +01:00
|
|
|
makeFlags = [ "STRINGS=" "REAL_DAEMON_DIR=$(out)/bin" "linux" ];
|
2016-05-14 19:05:58 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-01-31 13:12:22 +00:00
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp -v safe_finger tcpd tcpdchk tcpdmatch try-from "$out/bin"
|
2016-05-14 19:05:58 +01:00
|
|
|
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
cp -v shared/lib*.so* "$out/lib"
|
|
|
|
|
|
|
|
mkdir -p "$out/include"
|
|
|
|
cp -v *.h "$out/include"
|
|
|
|
|
|
|
|
for i in 3 5 8;
|
|
|
|
do
|
|
|
|
mkdir -p "$out/man/man$i"
|
|
|
|
cp *.$i "$out/man/man$i" ;
|
|
|
|
done
|
|
|
|
'';
|
2007-11-20 15:55:37 +00:00
|
|
|
|
2009-02-26 09:53:31 +00:00
|
|
|
meta = {
|
|
|
|
description = "TCP Wrappers, a network logger, also known as TCPD or LOG_TCP";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Wietse Venema's network logger, also known as TCPD or LOG_TCP.
|
|
|
|
These programs log the client host name of incoming telnet, ftp,
|
|
|
|
rsh, rlogin, finger etc. requests. Security options are: access
|
|
|
|
control per host, domain and/or service; detection of host name
|
|
|
|
spoofing or host address spoofing; booby traps to implement an
|
|
|
|
early-warning system. The current version supports the System
|
|
|
|
V.4 TLI network programming interface (Solaris, DG/UX) in
|
|
|
|
addition to the traditional BSD sockets.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = ftp://ftp.porcupine.org/pub/security/index.html;
|
|
|
|
license = "BSD-style";
|
2017-04-09 07:29:29 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-02-26 09:53:31 +00:00
|
|
|
};
|
2007-11-20 15:55:37 +00:00
|
|
|
}
|