nixpkgs/pkgs/servers/certificate-transparency/protobuf-include-from-env.patch
Philip Potter 01eb385346 certificate-transparency: init at 2015-11-27
libevhtp: 1.2.10 -> 1.2.11

Package for certificate-transparency

This adds openssl support to libevent.  Libevent can be compiled without
openssl, in which case it just doesn't build the libevent_openssl
library.  However it seems simpler just to default to including openssl
support.

This bumps evhtp's version because 1.2.11 provides pkg-config
information which makes building certificate-transparency easier.

This has been tested with `doCheck = true;`.

Signed-off-by: Edward Tjörnhammar <ed@cflags.cc>
2015-11-29 15:01:22 +01:00

15 lines
529 B
Diff

Get protobuf include path from environment
--- a/python/Makefile
+++ b/python/Makefile
@@ -5,7 +5,7 @@ all: ct/proto/client_pb2.py ct/proto/ct_pb2.py ct/proto/tls_options_pb2.py \
ct/proto/test_message_pb2.py ct/proto/certificate_pb2.py
ct/proto/%_pb2.py: ct/proto/%.proto
- $(PROTOC) $^ -I/usr/include/ -I/usr/local/include -I$(INSTALL_DIR)/include -I. --python_out=.
+ $(PROTOC) $^ $(protocFlags) -I. --python_out=.
ct/proto/ct_pb2.py: ../proto/ct.proto
$(PROTOC) --python_out=ct/proto -I../proto ../proto/ct.proto