Merge branch 'master' into add-missing-licenses

Conflicts:
	pkgs/development/libraries/exiv2/default.nix
        Set license to gpl2Plus
This commit is contained in:
Pascal Wittmann
2018-08-06 12:04:52 +02:00
249 changed files with 8809 additions and 5372 deletions
+8 -3
View File
@@ -1,4 +1,6 @@
{ stdenv, fetchFromGitHub, mailutils, gzip, popt, autoreconfHook }:
{ stdenv, fetchFromGitHub, gzip, popt, autoreconfHook
, mailutils ? null
}:
stdenv.mkDerivation rec {
name = "logrotate-${version}";
@@ -14,8 +16,11 @@ stdenv.mkDerivation rec {
# Logrotate wants to access the 'mail' program; to be done.
patchPhase = ''
sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' \
-e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' configure.ac
${stdenv.lib.optionalString (mailutils != null) ''
sed -i -e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac
''}
'';
autoreconfPhase = ''
+2 -5
View File
@@ -1,22 +1,19 @@
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
stdenv.mkDerivation rec{
version = "1.9.0";
version = "1.10.0";
name = "netdata-${version}";
src = fetchFromGitHub {
rev = "v${version}";
owner = "firehol";
repo = "netdata";
sha256 = "1vy0jz5lxw63b830l9jgf1qqhp41gzapyhdr5k1gwg3zghvlg10w";
sha256 = "02spfisabjkkgd9fairldlf84n83vbv2xafg0g5jrpfa972pjl9r";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ zlib libuuid ];
# Allow UI to load when running as non-root
patches = [ ./web_access.patch ];
# Build will fail trying to create /var/{cache,lib,log}/netdata without this
postPatch = ''
sed -i '/dist_.*_DATA = \.keep/d' src/Makefile.am
@@ -1,20 +0,0 @@
--- a/src/web_client.c.orig
+++ b/src/web_client.c
@@ -302,7 +302,7 @@
buffer_strcat_htmlescape(w->response.data, webfilename);
return 404;
}
-
+#if 0
// check if the file is owned by expected user
if(stat.st_uid != web_files_uid()) {
error("%llu: File '%s' is owned by user %u (expected user %u). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
@@ -320,7 +320,7 @@
buffer_strcat_htmlescape(w->response.data, webfilename);
return 403;
}
-
+#endif
if((stat.st_mode & S_IFMT) == S_IFDIR) {
snprintfz(webfilename, FILENAME_MAX, "%s/index.html", filename);
return mysendfile(w, webfilename);