Merge staging-next into staging
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{ fetchFromGitHub
|
||||
, stdenv
|
||||
, perl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "doona";
|
||||
version = "unstable-2019-03-08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wireghoul";
|
||||
repo = pname;
|
||||
rev = "master";
|
||||
sha256 = "0x9irwrw5x2ia6ch6gshadrlqrgdi1ivkadmr7j4m75k04a7nvz1";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r ${src}/bedmod $out/bin/bedmod
|
||||
cp ${src}/doona.pl $out/bin/doona
|
||||
chmod +x $out/bin/doona
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/wireghoul/doona";
|
||||
description = "A fork of the Bruteforce Exploit Detector Tool (BED)";
|
||||
longDescription = ''
|
||||
A fork of the Bruteforce Exploit Detector Tool (BED).
|
||||
BED is a program which is designed to check daemons for potential buffer overflows, format string bugs etc.
|
||||
'';
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ pamplemousse ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, libcap }:
|
||||
{ stdenv, fetchgit, fetchurl, autoreconfHook, libcap }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "torsocks";
|
||||
@@ -12,10 +12,19 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.isDarwin
|
||||
(fetchurl {
|
||||
url = "https://trac.torproject.org/projects/tor/raw-attachment/ticket/28538/0001-Fix-macros-for-accept4-2.patch";
|
||||
sha256 = "97881f0b59b3512acc4acb58a0d6dfc840d7633ead2f400fad70dda9b2ba30b0";
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
# Patch torify_app()
|
||||
sed -i \
|
||||
-e 's,\(local app_path\)=`which $1`,\1=`type -P $1`,' \
|
||||
src/bin/torsocks.in
|
||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||
sed -i \
|
||||
-e 's,\(local getcap\)=.*,\1=${libcap}/bin/getcap,' \
|
||||
src/bin/torsocks.in
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user