Merge remote-tracking branch 'upstream/master' into hardened-stdenv
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl, boost, cmake, curl, libyamlcpp, openssl, utillinux }:
|
||||
{ stdenv, fetchurl, boost, cmake, curl, leatherman, libyamlcpp, openssl, utillinux }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "facter-${version}";
|
||||
version = "3.1.3";
|
||||
version = "3.1.5";
|
||||
src = fetchurl {
|
||||
url = "https://downloads.puppetlabs.com/facter/${name}.tar.gz";
|
||||
sha256 = "1ngp3xjdh6x1w7lsi4lji2xzqp0x950jngcdlq11lcr0wfnzwyxj";
|
||||
sha256 = "0k2k92y42zb6vf542zwkhvg15kv32yb4zvw6nlcqlgmyg19c5qmv";
|
||||
};
|
||||
|
||||
buildInputs = [ boost cmake curl libyamlcpp openssl utillinux ];
|
||||
buildInputs = [ boost cmake curl leatherman libyamlcpp openssl utillinux ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/puppetlabs/facter;
|
||||
|
||||
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
" -I/opt/local/include -I /usr/local/include -I/opt/local/include" ""
|
||||
substituteInPlace Makefile.mac --replace \
|
||||
"/opt/local/lib/libncurses.a" "${ncurses}/lib/libncurses.dylib"
|
||||
"/opt/local/lib/libncurses.a" "${ncurses.out}/lib/libncurses.dylib"
|
||||
'';
|
||||
|
||||
buildPhase = stdenv.lib.optionalString stdenv.isDarwin "make -f Makefile.mac";
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = [
|
||||
"--with-ssl-incl-dir=${openssl}/include"
|
||||
"--with-ssl-lib-dir=${openssl}/lib"
|
||||
"--with-ssl-lib-dir=${openssl.out}/lib"
|
||||
] ++ stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec{
|
||||
version = "1.0.0";
|
||||
name = "netdata-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "firehol";
|
||||
repo = "netdata";
|
||||
sha256 = "03107ny98zks05p44jzypkk4lw8lbvmqja5b537ln6cnrgp20yvq";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook zlib pkgconfig ];
|
||||
|
||||
patches = [ ./web_access.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Real-time performance monitoring tool";
|
||||
homepage = http://netdata.firehol.org;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.lethalman ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
--- a/src/web_client.c.orig 2016-04-17 11:34:20.044455323 +0200
|
||||
+++ b/src/web_client.c 2016-04-17 11:34:47.432897957 +0200
|
||||
@@ -291,14 +291,14 @@
|
||||
buffer_sprintf(w->response.data, "File '%s' does not exist, or is not accessible.", filename);
|
||||
return 404;
|
||||
}
|
||||
-
|
||||
+#if 0
|
||||
// check if the file is owned by us
|
||||
if(stat.st_uid != web_files_uid()) {
|
||||
error("%llu: File '%s' is owned by user %d (I run as user %d). Access Denied.", w->id, webfilename, stat.st_uid, getuid());
|
||||
buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename);
|
||||
return 403;
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
if((stat.st_mode & S_IFMT) == S_IFDIR) {
|
||||
snprintf(webfilename, FILENAME_MAX+1, "%s/index.html", filename);
|
||||
return mysendfile(w, webfilename);
|
||||
@@ -5,8 +5,8 @@ export PLAN9_TARGET=$PLAN9
|
||||
|
||||
configurePhase()
|
||||
{
|
||||
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
|
||||
echo X11=\"${libXt}/include\" >> LOCAL.config
|
||||
echo CFLAGS=\"-I${fontconfig_dev}/include -I${libXt_dev}/include\" > LOCAL.config
|
||||
echo X11=\"${libXt_dev}/include\" >> LOCAL.config
|
||||
|
||||
for f in `grep -l -r /usr/local/plan9`; do
|
||||
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
|
||||
|
||||
@@ -47,6 +47,6 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
inherit libXt;
|
||||
inherit fontconfig;
|
||||
libXt_dev = libXt.dev;
|
||||
fontconfig_dev = fontconfig.dev;
|
||||
}
|
||||
|
||||
@@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
|
||||
GOSQLITE=$GOPATH/src/code.google.com/p/gosqlite
|
||||
mkdir -p $GOSQLITE
|
||||
cp -R $srcGoSqlite/* $GOSQLITE/
|
||||
export CGO_CFLAGS=-I${sqlite}/include
|
||||
export CGO_LDFLAGS=-L${sqlite}/lib
|
||||
go build -ldflags "-r ${sqlite}/lib" -o storebrowse
|
||||
export CGO_CFLAGS=-I${sqlite.dev}/include
|
||||
export CGO_LDFLAGS=-L${sqlite.out}/lib
|
||||
go build -ldflags "-r ${sqlite.out}/lib" -o storebrowse
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl
|
||||
, riemann_c_client, protobufc, yacc }:
|
||||
, riemann_c_client, protobufc, pcre, yacc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "syslog-ng-${version}";
|
||||
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0qc21mwajk6xrra3gqy2nvaza5gq62psamq4ayphj7lqabdglizg";
|
||||
};
|
||||
|
||||
buildInputs = [ eventlog pkgconfig glib python systemd perl riemann_c_client protobufc yacc ];
|
||||
buildInputs = [ eventlog pkgconfig glib python systemd perl riemann_c_client protobufc yacc pcre ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-dynamic-linking"
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
patchPhase = ''sed -e 's/upstartconfdir = \/etc\/init/upstartconfdir = $(out)\/etc\/init/' -i data/Makefile.am'';
|
||||
|
||||
preConfigure = ''
|
||||
export PKG_CONFIG_PATH="${dbus_libs}/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
export PKG_CONFIG_PATH="${dbus_libs.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
./autogen.sh #--prefix="$out"
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user