Gentoo Archives: gentoo-commits

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