1 |
commit: 16a34069d260ef001af09be5625853c9917c01bd |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Tue Dec 27 17:12:06 2022 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 08:16:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16a34069 |
7 |
|
8 |
net-proxy/haproxy: remove unused patch/file |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/28855 |
12 |
Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org> |
13 |
|
14 |
net-proxy/haproxy/files/haproxy-lua54.patch | 63 --------------------- |
15 |
net-proxy/haproxy/files/haproxy.initd-r6 | 85 ----------------------------- |
16 |
2 files changed, 148 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/haproxy/files/haproxy-lua54.patch b/net-proxy/haproxy/files/haproxy-lua54.patch |
19 |
deleted file mode 100644 |
20 |
index c89310120ab8..000000000000 |
21 |
--- a/net-proxy/haproxy/files/haproxy-lua54.patch |
22 |
+++ /dev/null |
23 |
@@ -1,63 +0,0 @@ |
24 |
-From 4634eb54a7dbfb38b0d2db8282ce281aa9ff5296 Mon Sep 17 00:00:00 2001 |
25 |
-From: Christian Ruppert <idl0r@××××.de> |
26 |
-Date: Tue, 28 Jun 2022 10:03:00 +0200 |
27 |
-Subject: [PATCH] Add Lua 5.4 autodetect |
28 |
- |
29 |
-This patch is based on: |
30 |
-https://www.mail-archive.com/haproxy@××××××××.org/msg39689.html |
31 |
-Thanks to Callum Farmer! |
32 |
- |
33 |
-Signed-off-by: Christian Ruppert <idl0r@××××.de> |
34 |
---- |
35 |
- INSTALL | 6 +++--- |
36 |
- Makefile | 8 ++++---- |
37 |
- 2 files changed, 7 insertions(+), 7 deletions(-) |
38 |
- |
39 |
-diff --git a/INSTALL b/INSTALL |
40 |
-index 96936ea46..9269051af 100644 |
41 |
---- a/INSTALL |
42 |
-+++ b/INSTALL |
43 |
-@@ -324,9 +324,9 @@ Lua is an embedded programming language supported by HAProxy to provide more |
44 |
- advanced scripting capabilities. Only versions 5.3 and above are supported. |
45 |
- In order to enable Lua support, please specify "USE_LUA=1" on the command line. |
46 |
- Some systems provide this library under various names to avoid conflicts with |
47 |
--previous versions. By default, HAProxy looks for "lua5.3", "lua53", "lua". If |
48 |
--your system uses a different naming, you may need to set the library name in |
49 |
--the "LUA_LIB_NAME" variable. |
50 |
-+previous versions. By default, HAProxy looks for "lua5.4", "lua54", "lua5.3", |
51 |
-+"lua53", "lua". If your system uses a different naming, you may need to set the |
52 |
-+library name in the "LUA_LIB_NAME" variable. |
53 |
- |
54 |
- If Lua is not provided on your system, it can be very simply built locally. It |
55 |
- can be downloaded from https://www.lua.org/, extracted and built, for example : |
56 |
-diff --git a/Makefile b/Makefile |
57 |
-index 814837133..85f6c632d 100644 |
58 |
---- a/Makefile |
59 |
-+++ b/Makefile |
60 |
-@@ -104,7 +104,7 @@ |
61 |
- # LUA_LIB : force the lib path to lua |
62 |
- # LUA_INC : force the include path to lua |
63 |
- # LUA_LIB_NAME : force the lib name (or automatically evaluated, by order of |
64 |
--# priority : lua5.3, lua53, lua). |
65 |
-+# priority : lua5.4, lua54, lua5.3, lua53, lua). |
66 |
- # OT_DEBUG : compile the OpenTracing filter in debug mode |
67 |
- # OT_INC : force the include path to libopentracing-c-wrapper |
68 |
- # OT_LIB : force the lib path to libopentracing-c-wrapper |
69 |
-@@ -648,11 +648,11 @@ OPTIONS_CFLAGS += $(if $(LUA_INC),-I$(LUA_INC)) |
70 |
- LUA_LD_FLAGS := -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic) $(if $(LUA_LIB),-L$(LUA_LIB)) |
71 |
- ifeq ($(LUA_LIB_NAME),) |
72 |
- # Try to automatically detect the Lua library |
73 |
--LUA_LIB_NAME := $(firstword $(foreach lib,lua5.3 lua53 lua,$(call check_lua_lib,$(lib),$(LUA_LD_FLAGS)))) |
74 |
-+LUA_LIB_NAME := $(firstword $(foreach lib,lua5.4 lua54 lua5.3 lua53 lua,$(call check_lua_lib,$(lib),$(LUA_LD_FLAGS)))) |
75 |
- ifeq ($(LUA_LIB_NAME),) |
76 |
--$(error unable to automatically detect the Lua library name, you can enforce its name with LUA_LIB_NAME=<name> (where <name> can be lua5.3, lua53, lua, ...)) |
77 |
-+$(error unable to automatically detect the Lua library name, you can enforce its name with LUA_LIB_NAME=<name> (where <name> can be lua5.4, lua54, lua, ...)) |
78 |
- endif |
79 |
--LUA_INC := $(firstword $(foreach lib,lua5.3 lua53 lua,$(call check_lua_inc,$(lib),"/usr/include/"))) |
80 |
-+LUA_INC := $(firstword $(foreach lib,lua5.4 lua54 lua5.3 lua53 lua,$(call check_lua_inc,$(lib),"/usr/include/"))) |
81 |
- ifneq ($(LUA_INC),) |
82 |
- OPTIONS_CFLAGS += -I$(LUA_INC) |
83 |
- endif |
84 |
--- |
85 |
-2.35.1 |
86 |
- |
87 |
|
88 |
diff --git a/net-proxy/haproxy/files/haproxy.initd-r6 b/net-proxy/haproxy/files/haproxy.initd-r6 |
89 |
deleted file mode 100644 |
90 |
index 9b7c5fe973ba..000000000000 |
91 |
--- a/net-proxy/haproxy/files/haproxy.initd-r6 |
92 |
+++ /dev/null |
93 |
@@ -1,85 +0,0 @@ |
94 |
-#!/sbin/openrc-run |
95 |
-# Copyright 1999-2017 Gentoo Foundation |
96 |
-# Distributed under the terms of the GNU General Public License v2 |
97 |
- |
98 |
-extra_commands="checkconfig" |
99 |
-extra_started_commands="reload" |
100 |
- |
101 |
-command="/usr/sbin/haproxy" |
102 |
- |
103 |
-pidfile="${HAPROXY_PIDFILE:-/run/${SVCNAME}.pid}" |
104 |
- |
105 |
-configs= |
106 |
- |
107 |
-if [ -z "${CONFIGS}" ]; then |
108 |
- if [ -f "/etc/haproxy/${SVCNAME}.cfg" ]; then |
109 |
- CONFIGS=/etc/haproxy/${SVCNAME}.cfg |
110 |
- elif [ -f "/etc/${SVCNAME}.cfg" ]; then |
111 |
- CONFIGS=/etc/${SVCNAME}.cfg # Deprecated |
112 |
- fi |
113 |
-fi |
114 |
- |
115 |
-for conf in $CONFIGS; do |
116 |
- configs="${configs} -f ${conf}" |
117 |
-done |
118 |
- |
119 |
-command_args="-D -p ${pidfile} ${configs} ${HAPROXY_OPTS}" |
120 |
- |
121 |
-depend() { |
122 |
- need net |
123 |
- use dns logger |
124 |
-} |
125 |
- |
126 |
-checkconfig() { |
127 |
- if [ -z "${CONFIGS}" ]; then |
128 |
- eerror "No config(s) has been specified" |
129 |
- return 1 |
130 |
- fi |
131 |
- |
132 |
- for conf in $CONFIGS; do |
133 |
- if [ ! -f "${conf}" ]; then |
134 |
- eerror "${conf} does not exist!" |
135 |
- return 1 |
136 |
- fi |
137 |
- done |
138 |
- |
139 |
- ebegin "Checking ${CONFIGS}" |
140 |
- $command -q -c $configs $HAPROXY_OPTS |
141 |
- eend $? |
142 |
-} |
143 |
- |
144 |
-start_pre() { |
145 |
- if [ "${RC_CMD}" != "restart" ]; then |
146 |
- checkconfig || return 1 |
147 |
- fi |
148 |
-} |
149 |
- |
150 |
-stop_pre() { |
151 |
- if [ "${RC_CMD}" = "restart" ]; then |
152 |
- checkconfig || return 1 |
153 |
- fi |
154 |
-} |
155 |
- |
156 |
-stop() { |
157 |
- local _t _pid |
158 |
- |
159 |
- _t="$(mktemp)" |
160 |
- for _pid in $(cat ${pidfile}) ; do |
161 |
- echo "${_pid}" > "${_t}" |
162 |
- start-stop-daemon --stop --pidfile="${_t}" |
163 |
- done |
164 |
- rm -f "${_t}" |
165 |
-} |
166 |
- |
167 |
-reload() { |
168 |
- checkconfig || { eerror "Reloading failed, please fix your config(s) first"; return 1; } |
169 |
- |
170 |
- if [ "$(command -v reload_seamless)" = "reload_seamless" ]; then |
171 |
- einfo "Calling user-defined reload_seamless()" |
172 |
- reload_seamless || { eerror "reload_seamless() failed!"; return 1; } |
173 |
- fi |
174 |
- |
175 |
- ebegin "Reloading ${SVCNAME}" |
176 |
- $command -D -p "${pidfile}" $configs $HAPROXY_OPTS -sf $(cat "${pidfile}") |
177 |
- eend $? |
178 |
-} |