]> git.pld-linux.org Git - packages/apache-mod_log_gelf.git/blame - build.patch
update buildsystem to build
[packages/apache-mod_log_gelf.git] / build.patch
CommitLineData
59b3a41f
ER
1From 747fe36fc7ef34b8dfe2196ebda5d189bbdbbe6e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@pld-linux.org>
3Date: Mon, 29 Jan 2018 11:18:52 +0200
4Subject: [PATCH 1/2] use apxs to query apache install paths
5
6---
7 src/Makefile | 21 +++++++--------------
8 1 file changed, 7 insertions(+), 14 deletions(-)
9
10diff --git a/src/Makefile b/src/Makefile
11index 09b4871..0df88fb 100644
12--- a/src/Makefile
13+++ b/src/Makefile
14@@ -1,15 +1,12 @@
15 builddir=.
16
17-ifneq (,$(wildcard /usr/share/apache2/build/special.mk))
18- top_srcdir=/usr/share/apache2
19- top_builddir=/usr/share/apache2
20- include /usr/share/apache2/build/special.mk
21-endif
22-ifneq (,$(wildcard /usr/lib64/httpd/build/special.mk))
23- top_srcdir=/etc/httpd
24- top_builddir=/usr/lib64/httpd
25- include /usr/lib64/httpd/build/special.mk
26-endif
27+# the used tools
28+APXS=apxs
29+APACHECTL=apachectl
30+
31+top_builddir=$(shell $(APXS) -q exp_libexecdir)
32+include $(top_builddir)/build/special.mk
33+
34 ifneq (,$(wildcard /etc/debian_version))
35 DISTRIBUTION := $(shell lsb_release -i | cut -f2)
36 ifeq ($(DISTRIBUTION),Debian)
37@@ -17,10 +14,6 @@ ifneq (,$(wildcard /etc/debian_version))
38 endif
39 endif
40
41-# the used tools
42-APXS=apxs
43-APACHECTL=apachectl
44-
45 # additional defines, includes and libraries
46 LIBS=-ljson-c -lz
47
48
49From b53dc3cc7530de656525ed2dfcd4a9fad1a131f4 Mon Sep 17 00:00:00 2001
50From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@pld-linux.org>
51Date: Mon, 29 Jan 2018 11:24:06 +0200
52Subject: [PATCH 2/2] assign top_srcdir for make install
53
54---
55 src/Makefile | 1 +
56 1 file changed, 1 insertion(+)
57
58diff --git a/src/Makefile b/src/Makefile
59index 0df88fb..63e130b 100644
60--- a/src/Makefile
61+++ b/src/Makefile
62@@ -5,6 +5,7 @@ APXS=apxs
63 APACHECTL=apachectl
64
65 top_builddir=$(shell $(APXS) -q exp_libexecdir)
66+top_srcdir=$(top_builddir)
67 include $(top_builddir)/build/special.mk
68
69 ifneq (,$(wildcard /etc/debian_version))
This page took 0.028898 seconds and 4 git commands to generate.