Package: entropybroker / 2.8-3

make.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Author: Thorsten Alteholz <debian@alteholz.de>
Description: don't install stuff to /usr/local
Index: entropybroker/Makefile
===================================================================
--- entropybroker.orig/Makefile	2016-09-29 12:27:51.000000000 +0200
+++ entropybroker/Makefile	2016-09-29 12:28:31.000000000 +0200
@@ -2,15 +2,15 @@
 
 -include makefile.inc
 
-PREFIX=/usr/local/entropybroker
-BIN=$(PREFIX)/bin
-ETC=$(PREFIX)/etc
+PREFIX=$(DESTDIR)
+BIN=$(PREFIX)/usr/bin
+ETC=$(PREFIX)/etc/entropybroker
 VAR=$(PREFIX)/var
 CACHE=$(VAR)/cache
 PID=$(VAR)/run
-MAN=$(PREFIX)/share/man
-WEB=$(PREFIX)/share/eb/web
-DOC=$(PREFIX)/doc
+MAN=$(PREFIX)/usr/share/man
+WEB=$(PREFIX)/usr/share/entropybroker/web
+DOC=$(PREFIX)/usr/share/doc/entropybroker
 FONT=/usr/share/fonts/truetype/freefont/FreeMono.ttf
 
 CXX=g++
@@ -23,6 +23,10 @@
 CXXFLAGS+=-DTCP_TFO
 endif
 
+# Add Debian stuff
+CXXFLAGS+=-fPIE
+LDFLAGS+=-z relro -z now -fPIE -pie
+
 all:
 	@echo targets:
 	@echo -------
@@ -168,8 +172,8 @@
 	test -e $(ETC)/entropy_broker.conf || cp entropy_broker.conf $(ETC)
 	test -e $(ETC)/entropy_broker.conf && cp entropy_broker.conf $(ETC)/entropy_broker.conf.dist
 	test -e $(ETC)/users.txt || (cp users.txt $(ETC) ; chmod 600 $(ETC)/users.txt)
-	mkdir -p $(MAN)/man8
-	cp doc/man/* $(MAN)/man8
+	mkdir -p $(MAN)/man1
+	cp doc/man/* $(MAN)/man1
 	mkdir -p $(DOC)/entropy_broker
 	cp *txt license.* $(DOC)/entropy_broker
 	mkdir -p $(WEB)