Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-08-02 13:46:36 +00:00
107 changed files with 1438 additions and 783 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ let
in
stdenv.mkDerivation rec {
name = "afl-${version}";
version = "2.10b";
version = "2.23b";
src = fetchurl {
url = "http://lcamtuf.coredump.cx/afl/releases/${name}.tgz";
sha256 = "1qxz3szsdr3ciz496mjb5v2k8p90nilgnlbwwv9csk828qb2jhc1";
sha256 = "152pqrc0py6jk1i3pwn2k928bsgax0d4yavpa3ca29bmrbzpnadh";
};
# Note: libcgroup isn't needed for building, just for the afl-cgroup
@@ -0,0 +1,46 @@
{ stdenv, fetchFromGitHub, pythonPackages, openssh, gnupg, unbound, libreswan }:
let
inherit (pythonPackages) python;
in stdenv.mkDerivation rec {
pname = "hash-slinger";
name = "${pname}-${version}";
version = "2.7";
src = fetchFromGitHub {
owner = "letoams";
repo = "${pname}";
rev = "${version}";
sha256 = "05wn744ydclpnpyah6yfjqlfjlasrrhzj48lqmm5a91nyps5yqyn";
};
pythonPath = with pythonPackages; [ dns m2crypto ipaddr python-gnupg
pyunbound ];
buildInputs = [ pythonPackages.wrapPython ];
propagatedBuildInputs = [ unbound libreswan ] ++ pythonPath;
propagatedUserEnvPkgs = [ unbound libreswan ];
patchPhase = ''
substituteInPlace Makefile \
--replace "$(DESTDIR)/usr" "$out"
substituteInPlace ipseckey \
--replace "/usr/sbin/ipsec" "${libreswan}/sbin/ipsec"
substituteInPlace tlsa \
--replace "/var/lib/unbound/root" "${pythonPackages.pyunbound}/etc/pyunbound/root"
patchShebangs *
'';
installPhase = ''
mkdir -p $out/bin $out/man $out/${python.sitePackages}/
make install
wrapPythonPrograms
'';
meta = {
description = "Various tools to generate special DNS records";
homepage = "https://github.com/letoams/hash-slinger";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.leenaars ];
};
}