sngrep: 1.8.2 -> 1.8.3 (#519883)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- a/src/util.h
|
||||
+++ b/src/util.h
|
||||
@@ -58,6 +58,12 @@
|
||||
char *
|
||||
sng_basename(const char *name);
|
||||
|
||||
+/**
|
||||
+ * @brief Wrapper for strncpy
|
||||
+ */
|
||||
+char *
|
||||
+sng_strncpy(char *dst, const char *src, size_t len);
|
||||
+
|
||||
/**
|
||||
* @brief Compare two timeval structures
|
||||
*
|
||||
@@ -4,32 +4,35 @@
|
||||
autoconf,
|
||||
automake,
|
||||
fetchFromGitHub,
|
||||
libgcrypt,
|
||||
libpcap,
|
||||
ncurses,
|
||||
openssl,
|
||||
pcre,
|
||||
pkg-config,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sngrep";
|
||||
version = "1.8.2";
|
||||
version = "1.8.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "irontec";
|
||||
repo = "sngrep";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-nvuT//FWJAa6DzmjBsBW9s2p1M+6Zs4cVmpK4dVemnE=";
|
||||
hash = "sha256-4DLbQ3OOMvJw37n3jVuztG49HlPbWrfxByi6g6AvELQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libgcrypt
|
||||
libpcap
|
||||
ncurses
|
||||
ncurses
|
||||
openssl
|
||||
pcre
|
||||
];
|
||||
@@ -42,6 +45,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--with-openssl"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./fix-sng_strncpy-declaration.patch
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./bootstrap.sh
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user