Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/inspircd/, net-irc/inspircd/files/
Date: Fri, 28 May 2021 03:14:58
Message-Id: 1622171680.62d0599e45cb081e742b72116210de5116f4d5ab.sam@gentoo
1 commit: 62d0599e45cb081e742b72116210de5116f4d5ab
2 Author: Wade Cline <wadecline <AT> hotmail <DOT> com>
3 AuthorDate: Sun May 23 04:50:01 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 28 03:14:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d0599e
7
8 net-irc/inspircd: Drop old
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Bug: https://bugs.gentoo.org/791589
12 Signed-off-by: Wade Cline <wadecline <AT> hotmail.com>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-irc/inspircd/Manifest | 1 -
16 .../files/inspircd-3.7.0-fix-path-builds.patch | 338 ---------------------
17 net-irc/inspircd/inspircd-3.8.1.ebuild | 121 --------
18 3 files changed, 460 deletions(-)
19
20 diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest
21 index 82f8b6b0876..4e88d3d671d 100644
22 --- a/net-irc/inspircd/Manifest
23 +++ b/net-irc/inspircd/Manifest
24 @@ -1,2 +1 @@
25 -DIST inspircd-3.8.1.tar.gz 850997 BLAKE2B aebf085b21b99fae989d5d75c28223cf5ef5aa8f872886af099800683718e51aa3650a8968968e2434de738a5d5770a26f84a02c9b1270dffdc9efdd2e8c9f86 SHA512 be16dd18882bdb424ebeb131e382db073adaf37914e7c8333bd1c266242f2c48e6c721f0ecae72159bca229790413dabee67fd4a4a3c83588c48c8bb15e604fa
26 DIST inspircd-3.9.0.tar.gz 853862 BLAKE2B 68134412f12ac06dc5ab5f9ffc94cb6053d88430210cb516e3569aad5e06dacd985038f51e057c9d7bd88179f472f685be5cd6fb31031e79948b0d3aee60eac3 SHA512 2adc4c39fc80d0095a9157a4c72f1df8288c364d909b2200eb04fb7e6bf5eb6172fe80153b79fdd437882d0b252999abad5912cef28f29cbceb9ab540df8db70
27
28 diff --git a/net-irc/inspircd/files/inspircd-3.7.0-fix-path-builds.patch b/net-irc/inspircd/files/inspircd-3.7.0-fix-path-builds.patch
29 deleted file mode 100644
30 index 92e1c4b6032..00000000000
31 --- a/net-irc/inspircd/files/inspircd-3.7.0-fix-path-builds.patch
32 +++ /dev/null
33 @@ -1,338 +0,0 @@
34 -diff --git a/docs/conf/codepages/ascii.conf.example b/docs/conf/codepages/ascii.conf
35 -similarity index 100%
36 -rename from docs/conf/codepages/ascii.conf.example
37 -rename to docs/conf/codepages/ascii.conf
38 -diff --git a/docs/conf/codepages/latin1.conf.example b/docs/conf/codepages/latin1.conf
39 -similarity index 97%
40 -rename from docs/conf/codepages/latin1.conf.example
41 -rename to docs/conf/codepages/latin1.conf
42 -index 3beb002fd..f5c6b98dc 100644
43 ---- a/docs/conf/codepages/latin1.conf.example
44 -+++ b/docs/conf/codepages/latin1.conf
45 -@@ -39,4 +39,4 @@
46 - <cpcase lower="222" upper="254"> # þ => Þ
47 -
48 - # Include the ASCII rules to avoid duplication.
49 --<include file="examples/codepages/ascii.conf.example">
50 -+<include file="/etc/inspircd/codepages/ascii.conf">
51 -diff --git a/docs/conf/codepages/rfc1459.conf.example b/docs/conf/codepages/rfc1459.conf
52 -similarity index 100%
53 -rename from docs/conf/codepages/rfc1459.conf.example
54 -rename to docs/conf/codepages/rfc1459.conf
55 -diff --git a/docs/conf/codepages/strict-rfc1459.conf.example b/docs/conf/codepages/strict-rfc1459.conf
56 -similarity index 100%
57 -rename from docs/conf/codepages/strict-rfc1459.conf.example
58 -rename to docs/conf/codepages/strict-rfc1459.conf
59 -diff --git a/docs/conf/filter.conf.example b/docs/conf/filter.conf
60 -similarity index 100%
61 -rename from docs/conf/filter.conf.example
62 -rename to docs/conf/filter.conf
63 -diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf
64 -similarity index 100%
65 -rename from docs/conf/helpop.conf.example
66 -rename to docs/conf/helpop.conf
67 -diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf
68 -similarity index 99%
69 -rename from docs/conf/inspircd.conf.example
70 -rename to docs/conf/inspircd.conf
71 -index d678b5be3..607141381 100644
72 ---- a/docs/conf/inspircd.conf.example
73 -+++ b/docs/conf/inspircd.conf
74 -@@ -250,7 +250,7 @@
75 - # This can be done by using <connect registered="no"> #
76 -
77 - # To enable IRCCloud on your network uncomment this:
78 --#<include file="examples/providers/irccloud.conf.example">
79 -+#<include file="/etc/inspircd/providers/irccloud.conf">
80 -
81 - # A connect class with <connect:deny> set denies connections from the specified host/IP range.
82 - <connect
83 -@@ -494,11 +494,11 @@
84 -
85 - # This file has all the information about oper classes, types and o:lines.
86 - # You *MUST* edit it.
87 --#<include file="examples/opers.conf.example">
88 -+#<include file="/etc/inspircd/opers.conf">
89 -
90 - # This file has all the information about server links and ulined servers.
91 - # You *MUST* edit it if you intend to link servers.
92 --#<include file="examples/links.conf.example">
93 -+#<include file="/etc/inspircd/links.conf">
94 -
95 - #-#-#-#-#-#-#-#-#-#- MISCELLANEOUS CONFIGURATION -#-#-#-#-#-#-#-#-#-#
96 - # #
97 -@@ -507,7 +507,7 @@
98 - #
99 - # motd - displayed on connect and when a user executes /MOTD
100 - # Modules can also define their own files
101 --<files motd="examples/motd.txt.example">
102 -+<files motd="/etc/inspircd/motd.txt">
103 -
104 - # Example of an executable file include. Note this will be read on rehash,
105 - # not when the command is run.
106 -@@ -543,7 +543,7 @@
107 - # the default of 'inspircd.pid' is used. #
108 - # #
109 -
110 --#<pid file="/path/to/inspircd.pid">
111 -+#<pid file="/var/run/inspircd/inspircd.pid">
112 -
113 - #-#-#-#-#-#-#-#-#-#-#-#-#- LIST MODE LIMITS #-#-#-#-#-#-#-#-#-#-#-#-#-#
114 - # #
115 -@@ -697,7 +697,7 @@
116 - # messages (requires the stripcolor module).
117 - # - topiclock Channel mode +t - limits changing the topic to (half)ops
118 - # You can also configure this on a per-channel basis with a channel mode.
119 -- # See m_exemptchanops in modules.conf.example for more details.
120 -+ # See m_exemptchanops in modules.conf for more details.
121 - exemptchanops="censor:o filter:o nickflood:o nonick:v regmoderated:o"
122 -
123 - # invitebypassmodes: This allows /INVITE to bypass other channel modes.
124 -@@ -1045,7 +1045,7 @@
125 - # provide almost all the features of InspIRCd. :) #
126 - # #
127 - # The default does nothing -- we include it for simplicity for you. #
128 --#<include file="examples/modules.conf.example">
129 -+#<include file="/etc/inspircd/modules.conf">
130 -
131 - #-#-#-#-#-#-#-#-#-#-#-# SERVICES CONFIGURATION #-#-#-#-#-#-#-#-#-#-#-#
132 - # #
133 -@@ -1054,13 +1054,13 @@
134 - # exemptions for services pseudoclients: #
135 - #
136 - # Anope users should uncomment this:
137 --#<include file="examples/services/anope.conf.example">
138 -+#<include file="/etc/inspircd/aliases/anope.conf">
139 - #
140 - # Atheme users should uncomment this:
141 --#<include file="examples/services/atheme.conf.example">
142 -+#<include file="/etc/inspircd/aliases/atheme.conf">
143 - #
144 - # Users of other services should uncomment this:
145 --#<include file="examples/services/generic.conf.example">
146 -+#<include file="/etc/inspircd/aliases/generic.conf">
147 -
148 - #########################################################################
149 - # #
150 -diff --git a/docs/conf/links.conf.example b/docs/conf/links.conf
151 -similarity index 98%
152 -rename from docs/conf/links.conf.example
153 -rename to docs/conf/links.conf
154 -index 256ac10f9..40f5be35d 100644
155 ---- a/docs/conf/links.conf.example
156 -+++ b/docs/conf/links.conf
157 -@@ -121,4 +121,4 @@
158 -
159 - # Once you have edited this file you can remove this line. This is just to
160 - # ensure that you don't hastily include the file without reading it.
161 --<die reason="Using links.conf.example without editing it is a security risk">
162 -+<die reason="Using links.conf without editing it is a security risk">
163 -diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf
164 -similarity index 99%
165 -rename from docs/conf/modules.conf.example
166 -rename to docs/conf/modules.conf
167 -index 2e50977bd..315d376cf 100644
168 ---- a/docs/conf/modules.conf.example
169 -+++ b/docs/conf/modules.conf
170 -@@ -576,10 +576,10 @@
171 - # and case mapping.
172 - #
173 - # You should include one of the following files to set your codepage:
174 --#<include file="examples/codepages/ascii.conf.example">
175 --#<include file="examples/codepages/latin1.conf.example">
176 --#<include file="examples/codepages/rfc1459.conf.example">
177 --#<include file="examples/codepages/strict-rfc1459.conf.example">
178 -+#<include file="/etc/inspircd/codepages/ascii.conf">
179 -+#<include file="/etc/inspircd/codepages/latin1.conf">
180 -+#<include file="/etc/inspircd/codepages/rfc1459.conf">
181 -+#<include file="/etc/inspircd/codepages/strict-rfc1459.conf">
182 - #
183 - # You can also define a custom codepage. For details on how to do this
184 - # please refer to the docs site:
185 -@@ -853,7 +853,7 @@
186 - # anticaps, auditorium-see, auditorium-vis, blockcaps, blockcolor, #
187 - # censor, filter, flood, nickflood, noctcp, nonick, nonotice, #
188 - # regmoderated, stripcolor, and topiclock. #
189 --# See <options:exemptchanops> in inspircd.conf.example for a more #
190 -+# See <options:exemptchanops> in inspircd.conf for a more #
191 - # detailed list of the restriction modes that can be exempted. #
192 - # These are settable using: /MODE #chan +X <restriction>:<status> #
193 - #<module name="exemptchanops">
194 -@@ -889,7 +889,7 @@
195 - # Your choice of regex engine must match on all servers network-wide. #
196 - # #
197 - # To learn more about the configuration of this module, read #
198 --# examples/filter.conf.example, which covers the various types of #
199 -+# filter.conf, which covers the various types of #
200 - # filters and shows how to add exemptions. #
201 - # #
202 - #-#-#-#-#-#-#-#-#-#-#- FILTER CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-#
203 -@@ -898,7 +898,7 @@
204 - # specify below the path to the filter.conf file, or define some #
205 - # <keyword> tags. #
206 - # #
207 --#<include file="examples/filter.conf.example">
208 -+#<include file="/etc/inspircd/filter.conf">
209 -
210 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
211 - # Flash Policy Daemon module: Allows Flash IRC clients (e.g. LightIRC)#
212 -@@ -988,7 +988,7 @@
213 - # If you specify to use the helpop module, then specify below the #
214 - # path to the helpop.conf file. #
215 - # #
216 --#<include file="examples/helpop.conf.example">
217 -+#<include file="/etc/inspircd/helpop.conf">
218 -
219 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
220 - # Hide chans module: Allows users to hide their channels list from non-
221 -@@ -1581,7 +1581,7 @@
222 - # onoper - If on, the message is sent on /OPER, otherwise it's #
223 - # only sent when /OPERMOTD is used. #
224 - # #
225 --#<opermotd file="examples/opermotd.txt.example" onoper="yes">
226 -+#<opermotd file="/etc/inspircd/opermotd.txt" onoper="yes">
227 -
228 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
229 - # Override module: Adds support for oper override.
230 -@@ -2172,7 +2172,7 @@
231 - # connections in order to oper up. It is highly recommended to load
232 - # this module if you use TLS (SSL) on your network.
233 - # For how to use the oper features, please see the first
234 --# example <oper> tag in opers.conf.example.
235 -+# example <oper> tag in opers.conf.
236 - #
237 - #<module name="sslinfo">
238 - #
239 -diff --git a/docs/conf/motd.txt.example b/docs/conf/motd.txt
240 -similarity index 96%
241 -rename from docs/conf/motd.txt.example
242 -rename to docs/conf/motd.txt
243 -index 9281cd4b9..a4ac6964b 100644
244 ---- a/docs/conf/motd.txt.example
245 -+++ b/docs/conf/motd.txt
246 -@@ -23,7 +23,7 @@
247 - `-.__ `----""" __.-'
248 - `--..____..--'
249 -
250 -- +---- To change this see \bmotd.txt.example\x ----+
251 -+ +---- To change this see \bmotd.txt \x ----+
252 - | |
253 - | * \bWeb:\x https://www.inspircd.org |
254 - | * \bIRC:\x irc.inspircd.org #inspircd |
255 -diff --git a/docs/conf/opermotd.txt.example b/docs/conf/opermotd.txt
256 -similarity index 96%
257 -rename from docs/conf/opermotd.txt.example
258 -rename to docs/conf/opermotd.txt
259 -index a25d90380..68671a081 100644
260 ---- a/docs/conf/opermotd.txt.example
261 -+++ b/docs/conf/opermotd.txt
262 -@@ -23,7 +23,7 @@
263 - `-.__ `----""" __.-'
264 - `--..____..--'
265 -
266 -- +-- To change this see \bopermotd.txt.example\x --+
267 -+ +-- To change this see \bopermotd.txt \x --+
268 - | |
269 - | * \bWeb:\x https://www.inspircd.org |
270 - | * \bIRC:\x irc.inspircd.org #inspircd |
271 -diff --git a/docs/conf/opers.conf.example b/docs/conf/opers.conf
272 -similarity index 99%
273 -rename from docs/conf/opers.conf.example
274 -rename to docs/conf/opers.conf
275 -index d8c266b1f..9517b3685 100644
276 ---- a/docs/conf/opers.conf.example
277 -+++ b/docs/conf/opers.conf
278 -@@ -182,4 +182,4 @@
279 -
280 - # Once you have edited this file you can remove this line. This is just to
281 - # ensure that you don't hastily include the file without reading it.
282 --<die reason="Using opers.conf.example without editing it is a security risk">
283 -+<die reason="Using opers.conf without editing it is a security risk">
284 -diff --git a/docs/conf/providers/irccloud.conf.example b/docs/conf/providers/irccloud.conf
285 -similarity index 100%
286 -rename from docs/conf/providers/irccloud.conf.example
287 -rename to docs/conf/providers/irccloud.conf
288 -diff --git a/docs/conf/quotes.txt.example b/docs/conf/quotes.txt
289 -similarity index 100%
290 -rename from docs/conf/quotes.txt.example
291 -rename to docs/conf/quotes.txt
292 -diff --git a/docs/conf/services/anope.conf.example b/docs/conf/services/anope.conf
293 -similarity index 86%
294 -rename from docs/conf/services/anope.conf.example
295 -rename to docs/conf/services/anope.conf
296 -index 5c8f859ff..69a1ab50a 100644
297 ---- a/docs/conf/services/anope.conf.example
298 -+++ b/docs/conf/services/anope.conf
299 -@@ -2,7 +2,7 @@
300 - # by Anope. See https://www.anope.org for more information on Anope.
301 -
302 - # This file inherits from the generic config to avoid repetition.
303 --<include file="examples/services/generic.conf.example">
304 -+<include file="/etc/inspircd/services/generic.conf">
305 -
306 - # /GLOBAL <message>
307 - # Sends a global notice.
308 -diff --git a/docs/conf/services/atheme.conf.example b/docs/conf/services/atheme.conf
309 -similarity index 98%
310 -rename from docs/conf/services/atheme.conf.example
311 -rename to docs/conf/services/atheme.conf
312 -index d509522b8..c1e906ff7 100644
313 ---- a/docs/conf/services/atheme.conf.example
314 -+++ b/docs/conf/services/atheme.conf
315 -@@ -3,7 +3,7 @@
316 - # information on Atheme.
317 -
318 - # This file inherits from the generic config to avoid repetition.
319 --<include file="examples/services/generic.conf.example">
320 -+<include file="/etc/inspircd/services/generic.conf">
321 -
322 - # Long hand aliases for services pseudoclients.
323 - <alias text="ALIS" replace="SQUERY $requirement :$2-" requires="ALIS" uline="yes">
324 -diff --git a/docs/conf/services/generic.conf.example b/docs/conf/services/generic.conf
325 -similarity index 100%
326 -rename from docs/conf/services/generic.conf.example
327 -rename to docs/conf/services/generic.conf
328 -diff --git a/make/template/main.mk b/make/template/main.mk
329 -index 9f905f970..c87da5d73 100644
330 ---- a/make/template/main.mk
331 -+++ b/make/template/main.mk
332 -@@ -221,10 +221,10 @@ install: target
333 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(BINPATH)
334 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)
335 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(DATPATH)
336 -- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/codepages
337 -- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/providers
338 -- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/services
339 -- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/sql
340 -+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/codepages
341 -+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/providers
342 -+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/services
343 -+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/sql
344 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(LOGPATH)
345 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MANPATH)
346 - @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MODPATH)
347 -@@ -244,11 +244,11 @@ endif
348 - -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/inspircd-testssl.1 $(MANPATH) 2>/dev/null
349 - -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) tools/genssl $(BINPATH)/inspircd-genssl 2>/dev/null
350 - -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) tools/testssl $(BINPATH)/inspircd-testssl 2>/dev/null
351 -- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.example $(EXAPATH)
352 -- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/codepages/*.example $(EXAPATH)/codepages
353 -- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/providers/*.example $(EXAPATH)/providers
354 -- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/*.example $(EXAPATH)/services
355 -- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(EXAPATH)/sql
356 -+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.{conf,txt} $(CONPATH)
357 -+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/codepages/* $(CONPATH)/codepages
358 -+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/providers/* $(CONPATH)/providers
359 -+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/* $(CONPATH)/services
360 -+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(CONPATH)/sql
361 - -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/help.txt $(CONPATH)
362 - -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_PRV) *.pem $(CONPATH) 2>/dev/null
363 - @echo ""
364 -@@ -263,7 +263,6 @@ endif
365 - @echo ' Data:' $(DATPATH)
366 - @echo 'To start the ircd, run:' $(SCRPATH)/inspircd start
367 - @echo 'Remember to create your config file:' $(CONPATH)/inspircd.conf
368 -- @echo 'Examples are available at:' $(EXAPATH)
369 -
370 - GNUmakefile: make/template/main.mk src/version.sh configure @CONFIGURE_CACHE_FILE@
371 - ./configure --update
372
373 diff --git a/net-irc/inspircd/inspircd-3.8.1.ebuild b/net-irc/inspircd/inspircd-3.8.1.ebuild
374 deleted file mode 100644
375 index 355015a8d69..00000000000
376 --- a/net-irc/inspircd/inspircd-3.8.1.ebuild
377 +++ /dev/null
378 @@ -1,121 +0,0 @@
379 -# Copyright 1999-2020 Gentoo Authors
380 -# Distributed under the terms of the GNU General Public License v2
381 -
382 -EAPI="7"
383 -
384 -inherit toolchain-funcs
385 -
386 -DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
387 -HOMEPAGE="https://www.inspircd.org/"
388 -SRC_URI="https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
389 -
390 -LICENSE="GPL-2"
391 -SLOT="0"
392 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
393 -IUSE="debug gnutls ldap maxminddb mbedtls mysql pcre postgres re2 regex-posix regex-stdlib sqlite ssl sslrehashsignal tre"
394 -
395 -RDEPEND="
396 - acct-group/inspircd
397 - acct-user/inspircd
398 - dev-lang/perl
399 - gnutls? ( net-libs/gnutls:= dev-libs/libgcrypt:0 )
400 - ldap? ( net-nds/openldap )
401 - maxminddb? ( dev-libs/libmaxminddb )
402 - mbedtls? ( net-libs/mbedtls:= )
403 - mysql? ( dev-db/mysql-connector-c:= )
404 - pcre? ( dev-libs/libpcre )
405 - postgres? ( dev-db/postgresql:= )
406 - re2? ( dev-libs/re2:= )
407 - sqlite? ( >=dev-db/sqlite-3.0 )
408 - ssl? ( dev-libs/openssl:= )
409 - tre? ( dev-libs/tre )"
410 -DEPEND="${RDEPEND}"
411 -
412 -DOCS=( docs/. )
413 -PATCHES=( "${FILESDIR}"/${PN}-3.7.0-fix-path-builds.patch )
414 -
415 -src_prepare() {
416 - default
417 -
418 - # Patch the inspircd launcher with the inspircd user
419 - sed -i -e "s/@UID@/${PN}/" "make/template/${PN}" || die
420 -}
421 -
422 -src_configure() {
423 - local extras=""
424 -
425 - use gnutls && extras+="m_ssl_gnutls.cpp,"
426 - use ldap && extras+="m_ldap.cpp,"
427 - use maxminddb && extras+="m_geo_maxmind.cpp,"
428 - use mbedtls && extras+="m_ssl_mbedtls.cpp,"
429 - use mysql && extras+="m_mysql.cpp,"
430 - use pcre && extras+="m_regex_pcre.cpp,"
431 - use postgres && extras+="m_pgsql.cpp,"
432 - use re2 && extras+="m_regex_re2.cpp,"
433 - use regex-posix && extras+="m_regex_posix.cpp,"
434 - use regex-stdlib && extras+="m_regex_stdlib.cpp,"
435 - use sqlite && extras+="m_sqlite3.cpp,"
436 - use ssl && extras+="m_ssl_openssl.cpp,"
437 - use sslrehashsignal && extras+="m_sslrehashsignal.cpp,"
438 - use tre && extras+="m_regex_tre.cpp,"
439 -
440 - # The first configuration run enables certain "extra" InspIRCd
441 - # modules, the second run generates the actual makefile.
442 - if [[ -n "${extras}" ]]; then
443 - ./configure --disable-interactive --enable-extras=${extras%,}
444 - fi
445 -
446 - local myconf=(
447 - --disable-interactive
448 - --disable-auto-extras
449 - --prefix="/usr/$(get_libdir)/${PN}"
450 - --config-dir="/etc/${PN}"
451 - --data-dir="/var/lib/${PN}/data"
452 - --log-dir="/var/log/${PN}"
453 - --binary-dir="/usr/bin"
454 - --module-dir="/usr/$(get_libdir)/${PN}/modules"
455 - --manual-dir="/usr/share/man")
456 - CXX="$(tc-getCXX)" ./configure "${myconf[@]}"
457 -}
458 -
459 -src_compile() {
460 - emake LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" $(usex debug 'INSPIRCD_DEBUG=2' '') INSPIRCD_VERBOSE=1
461 -}
462 -
463 -src_install() {
464 - default
465 -
466 - insinto "/usr/include/${PN}"
467 - doins -r include/.
468 -
469 - newinitd "${FILESDIR}/${PN}.initd" "${PN}"
470 - newconfd "${FILESDIR}/${PN}.confd" "${PN}"
471 -
472 - keepdir "/var/log/${PN}"
473 -
474 - diropts -o"${PN}" -g"${PN}" -m0700
475 - keepdir "/var/lib/${PN}/data"
476 -}
477 -
478 -pkg_postinst() {
479 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
480 - # This is a new installation
481 - elog "You will find example configuration files under "
482 - elog "/usr/share/doc/${PN}"
483 - elog "Read the ${PN}.conf.example file carefully before "
484 - elog "starting the service."
485 - fi
486 - local pv
487 - for pv in ${REPLACING_VERSIONS}; do
488 - if ver_test "${pv}" -lt "2.0.24-r1"; then
489 - elog "Starting with 2.0.24-r1 the daemon is no longer started"
490 - elog "with the --logfile option and you are thus expected to define"
491 - elog "logging in the InspIRCd configuration file if you want it."
492 - fi
493 - if ver_test "${pv}" -lt "3.0.0"; then
494 - elog "Version 3.0 is a major upgrade which contains breaking"
495 - elog "changes. You will need to update your configuration files."
496 - elog "See: https://docs.inspircd.org/3/configuration-changes"
497 - fi
498 - done
499 -}