1 |
commit: cae8db96b1181465613bcba3daa08d0639a9e986 |
2 |
Author: Wade Cline <wadecline <AT> hotmail <DOT> com> |
3 |
AuthorDate: Wed Nov 27 06:13:46 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 15:18:27 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cae8db96 |
7 |
|
8 |
net-irc/inspircd: Drop 3.2.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/693692 |
11 |
Signed-off-by: Wade Cline <wadecline <AT> hotmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/13768 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
net-irc/inspircd/Manifest | 1 - |
16 |
.../files/inspircd-3.2.0-fix-path-builds.patch | 267 --------------------- |
17 |
net-irc/inspircd/inspircd-3.2.0.ebuild | 131 ---------- |
18 |
3 files changed, 399 deletions(-) |
19 |
|
20 |
diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest |
21 |
index 6521990c498..02322461d90 100644 |
22 |
--- a/net-irc/inspircd/Manifest |
23 |
+++ b/net-irc/inspircd/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
DIST inspircd-2.0.28.tar.gz 735981 BLAKE2B d467b4d31db4cbafeba655a4e129766ec780b2244f1945da6e25e9d70a8c7f946ea6258cc4e1189029a9f3be4d93b3d943f0bd20ccb85951f001268c2e460805 SHA512 0e8082a03e65f350ac423cc0781506c0eb40151d6e8d250067288b2a1d42087f10c159472ad76028aa986f6764180fdc493893984cadc0064715853472fa3e2a |
26 |
-DIST inspircd-3.2.0.tar.gz 799842 BLAKE2B 87f8465479f01587b669c926c9097e14e441d40d6f37be2971863b40c2cef3d962acaf2cc84879d1d813819bcb512adfc58723b6adac5dfc35b240d4068b40f6 SHA512 8792614785d7f0415a38d49cc1786204d838917df54792ee6755b9ad8fd895020539364fdfc6daae60a911b8f39af1326e172ac40335b700241ca832410a4498 |
27 |
DIST inspircd-3.4.0.tar.gz 809845 BLAKE2B 6529d53c3cbff07727eceea5e1eb321bb8b7f6b231b3d5ea3ed0ced01fe5b66c2da83039a1ac11ff49e6536ef482483a9be26762feb30511a0016bab07d6790a SHA512 871fefff5e337dc6228fae223ff7ac534e159b5bfb838419247b1d16339c860b0b939a28dd4610cf3b8c37328b5e6ccba2ddd80adbd27638f4f3fa28e4f99066 |
28 |
|
29 |
diff --git a/net-irc/inspircd/files/inspircd-3.2.0-fix-path-builds.patch b/net-irc/inspircd/files/inspircd-3.2.0-fix-path-builds.patch |
30 |
deleted file mode 100644 |
31 |
index 955b2be7909..00000000000 |
32 |
--- a/net-irc/inspircd/files/inspircd-3.2.0-fix-path-builds.patch |
33 |
+++ /dev/null |
34 |
@@ -1,267 +0,0 @@ |
35 |
-diff --git a/docs/conf/filter.conf.example b/docs/conf/filter.conf |
36 |
-similarity index 100% |
37 |
-rename from docs/conf/filter.conf.example |
38 |
-rename to docs/conf/filter.conf |
39 |
-diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf |
40 |
-similarity index 100% |
41 |
-rename from docs/conf/helpop.conf.example |
42 |
-rename to docs/conf/helpop.conf |
43 |
-diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf |
44 |
-similarity index 99% |
45 |
-rename from docs/conf/inspircd.conf.example |
46 |
-rename to docs/conf/inspircd.conf |
47 |
-index dbd56d2fe..4a7aab514 100644 |
48 |
---- a/docs/conf/inspircd.conf.example |
49 |
-+++ b/docs/conf/inspircd.conf |
50 |
-@@ -494,11 +494,11 @@ |
51 |
- |
52 |
- # This file has all the information about oper classes, types and o:lines. |
53 |
- # You *MUST* edit it. |
54 |
--#<include file="examples/opers.conf.example"> |
55 |
-+#<include file="/etc/inspircd/opers.conf"> |
56 |
- |
57 |
- # This file has all the information about server links and ulined servers. |
58 |
- # You *MUST* edit it if you intend to link servers. |
59 |
--#<include file="examples/links.conf.example"> |
60 |
-+#<include file="/etc/inspircd/links.conf"> |
61 |
- |
62 |
- #-#-#-#-#-#-#-#-#-#- MISCELLANEOUS CONFIGURATION -#-#-#-#-#-#-#-#-#-# |
63 |
- # # |
64 |
-@@ -507,7 +507,7 @@ |
65 |
- # |
66 |
- # motd - displayed on connect and when a user executes /MOTD |
67 |
- # Modules can also define their own files |
68 |
--<files motd="examples/motd.txt.example"> |
69 |
-+<files motd="/etc/inspircd/motd.txt"> |
70 |
- |
71 |
- # Example of an executable file include. Note this will be read on rehash, |
72 |
- # not when the command is run. |
73 |
-@@ -543,7 +543,7 @@ |
74 |
- # the default of 'inspircd.pid' is used. # |
75 |
- # # |
76 |
- |
77 |
--#<pid file="/path/to/inspircd.pid"> |
78 |
-+#<pid file="/var/run/inspircd/inspircd.pid"> |
79 |
- |
80 |
- #-#-#-#-#-#-#-#-#-#-#-#-#- LIST MODE LIMITS #-#-#-#-#-#-#-#-#-#-#-#-#-# |
81 |
- # # |
82 |
-@@ -1041,7 +1041,7 @@ |
83 |
- # provide almost all the features of InspIRCd. :) # |
84 |
- # # |
85 |
- # The default does nothing -- we include it for simplicity for you. # |
86 |
--#<include file="examples/modules.conf.example"> |
87 |
-+#<include file="/etc/inspircd/modules.conf"> |
88 |
- |
89 |
- #-#-#-#-#-#-#-#-#-#-#-# SERVICES CONFIGURATION #-#-#-#-#-#-#-#-#-#-#-# |
90 |
- # # |
91 |
-@@ -1050,13 +1050,13 @@ |
92 |
- # exemptions for services pseudoclients: # |
93 |
- # |
94 |
- # Anope users should uncomment this: |
95 |
--#<include file="examples/services/anope.conf.example"> |
96 |
-+#<include file="/etc/inspircd/aliases/anope.conf"> |
97 |
- # |
98 |
- # Atheme users should uncomment this: |
99 |
--#<include file="examples/services/atheme.conf.example"> |
100 |
-+#<include file="/etc/inspircd/aliases/atheme.conf"> |
101 |
- # |
102 |
- # Users of other services should uncomment this: |
103 |
--#<include file="examples/services/generic.conf.example"> |
104 |
-+#<include file="/etc/inspircd/aliases/generic.conf"> |
105 |
- |
106 |
- ######################################################################### |
107 |
- # # |
108 |
-diff --git a/docs/conf/links.conf.example b/docs/conf/links.conf |
109 |
-similarity index 100% |
110 |
-rename from docs/conf/links.conf.example |
111 |
-rename to docs/conf/links.conf |
112 |
-diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf |
113 |
-similarity index 99% |
114 |
-rename from docs/conf/modules.conf.example |
115 |
-rename to docs/conf/modules.conf |
116 |
-index 3bf1c2e99..b451a2f18 100644 |
117 |
---- a/docs/conf/modules.conf.example |
118 |
-+++ b/docs/conf/modules.conf |
119 |
-@@ -832,7 +832,7 @@ |
120 |
- # anticaps, auditorium-see, auditorium-vis, blockcaps, blockcolor, # |
121 |
- # censor, filter, flood, nickflood, noctcp, nonick, nonotice, # |
122 |
- # regmoderated, stripcolor, and topiclock. # |
123 |
--# See <options:exemptchanops> in inspircd.conf.example for a more # |
124 |
-+# See <options:exemptchanops> in inspircd.conf for a more # |
125 |
- # detailed list of the restriction modes that can be exempted. # |
126 |
- # These are settable using: /MODE #chan +X <restriction>:<status> # |
127 |
- #<module name="exemptchanops"> |
128 |
-@@ -868,7 +868,7 @@ |
129 |
- # Your choice of regex engine must match on all servers network-wide. # |
130 |
- # # |
131 |
- # To learn more about the configuration of this module, read # |
132 |
--# examples/filter.conf.example, which covers the various types of # |
133 |
-+# filter.conf, which covers the various types of # |
134 |
- # filters and shows how to add exemptions. # |
135 |
- # # |
136 |
- #-#-#-#-#-#-#-#-#-#-#- FILTER CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-# |
137 |
-@@ -877,7 +877,7 @@ |
138 |
- # specify below the path to the filter.conf file, or define some # |
139 |
- # <keyword> tags. # |
140 |
- # # |
141 |
--#<include file="examples/filter.conf.example"> |
142 |
-+#<include file="/etc/inspircd/filter.conf"> |
143 |
- |
144 |
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# |
145 |
- # Flash Policy Daemon module: Allows Flash IRC clients (e.g. LightIRC)# |
146 |
-@@ -967,7 +967,7 @@ |
147 |
- # If you specify to use the helpop module, then specify below the # |
148 |
- # path to the helpop.conf file. # |
149 |
- # # |
150 |
--#<include file="examples/helpop.conf.example"> |
151 |
-+#<include file="/etc/inspircd/helpop.conf"> |
152 |
- |
153 |
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# |
154 |
- # Hide chans module: Allows users to hide their channels list from non- |
155 |
-@@ -1545,7 +1545,7 @@ |
156 |
- # onoper - If on, the message is sent on /OPER, otherwise it's # |
157 |
- # only sent when /OPERMOTD is used. # |
158 |
- # # |
159 |
--#<opermotd file="examples/opermotd.txt.example" onoper="yes"> |
160 |
-+#<opermotd file="/etc/inspircd/opermotd.txt" onoper="yes"> |
161 |
- |
162 |
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# |
163 |
- # Override module: Adds support for oper override. |
164 |
-@@ -2123,7 +2123,7 @@ |
165 |
- # connections in order to oper up. It is highly recommended to load |
166 |
- # this module if you use SSL on your network. |
167 |
- # For how to use the oper features, please see the first |
168 |
--# example <oper> tag in opers.conf.example. |
169 |
-+# example <oper> tag in opers.conf. |
170 |
- # |
171 |
- #<module name="sslinfo"> |
172 |
- # |
173 |
-diff --git a/docs/conf/motd.txt.example b/docs/conf/motd.txt |
174 |
-similarity index 97% |
175 |
-rename from docs/conf/motd.txt.example |
176 |
-rename to docs/conf/motd.txt |
177 |
-index c5266f844..34d85d965 100644 |
178 |
---- a/docs/conf/motd.txt.example |
179 |
-+++ b/docs/conf/motd.txt |
180 |
-@@ -24,7 +24,7 @@ |
181 |
- `-.__ `----""" __.-' |
182 |
- `--..____..--' |
183 |
- |
184 |
-- ---- To change, see motd.txt.example ----- |
185 |
-+ ---- To change, see motd.txt ----- |
186 |
- / \ |
187 |
- / * Web: https://www.inspircd.org \ |
188 |
- | * IRC: irc.inspircd.org #inspircd | |
189 |
-diff --git a/docs/conf/opermotd.txt.example b/docs/conf/opermotd.txt |
190 |
-similarity index 97% |
191 |
-rename from docs/conf/opermotd.txt.example |
192 |
-rename to docs/conf/opermotd.txt |
193 |
-index 7e1c82f33..73ad28621 100644 |
194 |
---- a/docs/conf/opermotd.txt.example |
195 |
-+++ b/docs/conf/opermotd.txt |
196 |
-@@ -24,7 +24,7 @@ |
197 |
- `-.__ `----""" __.-' |
198 |
- `--..____..--' |
199 |
- |
200 |
-- -- To change, see opermotd.txt.example --- |
201 |
-+ -- To change, see opermotd.txt --- |
202 |
- / \ |
203 |
- / * Web: https://www.inspircd.org \ |
204 |
- | * IRC: irc.inspircd.org #inspircd | |
205 |
-diff --git a/docs/conf/opers.conf.example b/docs/conf/opers.conf |
206 |
-similarity index 99% |
207 |
-rename from docs/conf/opers.conf.example |
208 |
-rename to docs/conf/opers.conf |
209 |
-index 7cad2589c..082009da9 100644 |
210 |
---- a/docs/conf/opers.conf.example |
211 |
-+++ b/docs/conf/opers.conf |
212 |
-@@ -178,4 +178,4 @@ |
213 |
- |
214 |
- # Once you have edited this file you can remove this line. This is just to |
215 |
- # ensure that you don't hastily include the file without reading it. |
216 |
--<die reason="Using opers.conf.example without editing it is a security risk"> |
217 |
-+<die reason="Using opers.conf without editing it is a security risk"> |
218 |
-diff --git a/docs/conf/providers/irccloud.conf.example b/docs/conf/providers/irccloud.conf |
219 |
-similarity index 100% |
220 |
-rename from docs/conf/providers/irccloud.conf.example |
221 |
-rename to docs/conf/providers/irccloud.conf |
222 |
-diff --git a/docs/conf/providers/kiwiirc-com.conf.example b/docs/conf/providers/kiwiirc-com.conf |
223 |
-similarity index 100% |
224 |
-rename from docs/conf/providers/kiwiirc-com.conf.example |
225 |
-rename to docs/conf/providers/kiwiirc-com.conf |
226 |
-diff --git a/docs/conf/quotes.txt.example b/docs/conf/quotes.txt |
227 |
-similarity index 100% |
228 |
-rename from docs/conf/quotes.txt.example |
229 |
-rename to docs/conf/quotes.txt |
230 |
-diff --git a/docs/conf/services/anope.conf.example b/docs/conf/services/anope.conf |
231 |
-similarity index 86% |
232 |
-rename from docs/conf/services/anope.conf.example |
233 |
-rename to docs/conf/services/anope.conf |
234 |
-index 5c8f859ff..b1179eb8c 100644 |
235 |
---- a/docs/conf/services/anope.conf.example |
236 |
-+++ b/docs/conf/services/anope.conf |
237 |
-@@ -2,7 +2,7 @@ |
238 |
- # by Anope. See https://www.anope.org for more information on Anope. |
239 |
- |
240 |
- # This file inherits from the generic config to avoid repetition. |
241 |
--<include file="examples/services/generic.conf.example"> |
242 |
-+<include file="examples/services/generic.conf"> |
243 |
- |
244 |
- # /GLOBAL <message> |
245 |
- # Sends a global notice. |
246 |
-diff --git a/docs/conf/services/atheme.conf.example b/docs/conf/services/atheme.conf |
247 |
-similarity index 98% |
248 |
-rename from docs/conf/services/atheme.conf.example |
249 |
-rename to docs/conf/services/atheme.conf |
250 |
-index d509522b8..7605251db 100644 |
251 |
---- a/docs/conf/services/atheme.conf.example |
252 |
-+++ b/docs/conf/services/atheme.conf |
253 |
-@@ -3,7 +3,7 @@ |
254 |
- # information on Atheme. |
255 |
- |
256 |
- # This file inherits from the generic config to avoid repetition. |
257 |
--<include file="examples/services/generic.conf.example"> |
258 |
-+<include file="examples/services/generic.conf"> |
259 |
- |
260 |
- # Long hand aliases for services pseudoclients. |
261 |
- <alias text="ALIS" replace="SQUERY $requirement :$2-" requires="ALIS" uline="yes"> |
262 |
-diff --git a/docs/conf/services/generic.conf.example b/docs/conf/services/generic.conf |
263 |
-similarity index 100% |
264 |
-rename from docs/conf/services/generic.conf.example |
265 |
-rename to docs/conf/services/generic.conf |
266 |
-diff --git a/make/template/main.mk b/make/template/main.mk |
267 |
-index d77d59fa5..b28d7180d 100644 |
268 |
---- a/make/template/main.mk |
269 |
-+++ b/make/template/main.mk |
270 |
-@@ -210,8 +210,8 @@ install: target |
271 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(BINPATH) |
272 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH) |
273 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(DATPATH) |
274 |
-- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/services |
275 |
-- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/sql |
276 |
-+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/services |
277 |
-+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/sql |
278 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(LOGPATH) |
279 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MANPATH) |
280 |
- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MODPATH) |
281 |
-@@ -229,9 +229,9 @@ endif |
282 |
- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/inspircd.1 $(MANPATH) 2>/dev/null |
283 |
- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/inspircd-genssl.1 $(MANPATH) 2>/dev/null |
284 |
- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) tools/genssl $(BINPATH)/inspircd-genssl 2>/dev/null |
285 |
-- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.example $(EXAPATH) |
286 |
-- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/*.example $(EXAPATH)/services |
287 |
-- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(EXAPATH)/sql |
288 |
-+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.{conf,txt} $(CONPATH) |
289 |
-+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/* $(CONPATH)/services |
290 |
-+ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(CONPATH)/sql |
291 |
- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_PRV) *.pem $(CONPATH) 2>/dev/null |
292 |
- @echo "" |
293 |
- @echo "*************************************" |
294 |
-@@ -245,7 +245,6 @@ endif |
295 |
- @echo ' Data:' $(DATPATH) |
296 |
- @echo 'To start the ircd, run:' $(SCRPATH)/inspircd start |
297 |
- @echo 'Remember to create your config file:' $(CONPATH)/inspircd.conf |
298 |
-- @echo 'Examples are available at:' $(EXAPATH) |
299 |
- |
300 |
- GNUmakefile: make/template/main.mk src/version.sh configure @CONFIGURE_CACHE_FILE@ |
301 |
- ./configure --update |
302 |
|
303 |
diff --git a/net-irc/inspircd/inspircd-3.2.0.ebuild b/net-irc/inspircd/inspircd-3.2.0.ebuild |
304 |
deleted file mode 100644 |
305 |
index 021dc47d8a8..00000000000 |
306 |
--- a/net-irc/inspircd/inspircd-3.2.0.ebuild |
307 |
+++ /dev/null |
308 |
@@ -1,131 +0,0 @@ |
309 |
-# Copyright 1999-2019 Gentoo Authors |
310 |
-# Distributed under the terms of the GNU General Public License v2 |
311 |
- |
312 |
-EAPI="7" |
313 |
- |
314 |
-inherit toolchain-funcs user |
315 |
- |
316 |
-DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd" |
317 |
-HOMEPAGE="https://inspircd.github.com/" |
318 |
-SRC_URI="https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
319 |
- |
320 |
-LICENSE="GPL-2" |
321 |
-SLOT="0" |
322 |
-KEYWORDS="amd64 ~ppc ~ppc64 ~x86" |
323 |
-IUSE="debug gnutls ldap maxminddb mbedtls mysql pcre postgres re2 regex-posix regex-stdlib sqlite ssl sslrehashsignal tre" |
324 |
- |
325 |
-RDEPEND=" |
326 |
- dev-lang/perl |
327 |
- gnutls? ( net-libs/gnutls:= dev-libs/libgcrypt:0 ) |
328 |
- ldap? ( net-nds/openldap ) |
329 |
- maxminddb? ( dev-libs/libmaxminddb ) |
330 |
- mbedtls? ( net-libs/mbedtls:= ) |
331 |
- mysql? ( dev-db/mysql-connector-c:= ) |
332 |
- pcre? ( dev-libs/libpcre ) |
333 |
- postgres? ( dev-db/postgresql:= ) |
334 |
- re2? ( dev-libs/re2:= ) |
335 |
- sqlite? ( >=dev-db/sqlite-3.0 ) |
336 |
- ssl? ( dev-libs/openssl:= ) |
337 |
- tre? ( dev-libs/tre )" |
338 |
-DEPEND="${RDEPEND}" |
339 |
- |
340 |
-DOCS=( docs/. ) |
341 |
-PATCHES=( "${FILESDIR}"/${PN}-3.2.0-fix-path-builds.patch ) |
342 |
- |
343 |
-pkg_setup() { |
344 |
- enewgroup ${PN} |
345 |
- enewuser ${PN} -1 -1 -1 ${PN} |
346 |
-} |
347 |
- |
348 |
-src_prepare() { |
349 |
- default |
350 |
- |
351 |
- # Patch the inspircd launcher with the inspircd user |
352 |
- sed -i -e "s/@UID@/${PN}/" "make/template/${PN}" || die |
353 |
-} |
354 |
- |
355 |
-src_configure() { |
356 |
- local extras="" |
357 |
- |
358 |
- use gnutls && extras+="m_ssl_gnutls.cpp," |
359 |
- use ldap && extras+="m_ldap.cpp," |
360 |
- use maxminddb && extras+="m_geo_maxmind.cpp," |
361 |
- use mbedtls && extras+="m_ssl_mbedtls.cpp," |
362 |
- use mysql && extras+="m_mysql.cpp," |
363 |
- use pcre && extras+="m_regex_pcre.cpp," |
364 |
- use postgres && extras+="m_pgsql.cpp," |
365 |
- use re2 && extras+="m_regex_re2.cpp," |
366 |
- use regex-posix && extras+="m_regex_posix.cpp," |
367 |
- use regex-stdlib && extras+="m_regex_stdlib.cpp," |
368 |
- use sqlite && extras+="m_sqlite3.cpp," |
369 |
- use ssl && extras+="m_ssl_openssl.cpp," |
370 |
- use sslrehashsignal && extras+="m_sslrehashsignal.cpp," |
371 |
- use tre && extras+="m_regex_tre.cpp," |
372 |
- |
373 |
- # The first configuration run enables certain "extra" InspIRCd |
374 |
- # modules, the second run generates the actual makefile. |
375 |
- if [[ -n "${extras}" ]]; then |
376 |
- ./configure --disable-interactive --enable-extras=${extras%,} |
377 |
- fi |
378 |
- |
379 |
- local myconf=( |
380 |
- --disable-interactive |
381 |
- --disable-auto-extras |
382 |
- --prefix="/usr/$(get_libdir)/${PN}" |
383 |
- --config-dir="/etc/${PN}" |
384 |
- --data-dir="/var/lib/${PN}/data" |
385 |
- --log-dir="/var/log/${PN}" |
386 |
- --binary-dir="/usr/bin" |
387 |
- --module-dir="/usr/$(get_libdir)/${PN}/modules" |
388 |
- --manual-dir="/usr/share/man") |
389 |
- CXX="$(tc-getCXX)" ./configure "${myconf[@]}" |
390 |
-} |
391 |
- |
392 |
-src_compile() { |
393 |
- emake LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" $(usex debug 'INSPIRCD_DEBUG=2' '') INSPIRCD_VERBOSE=1 |
394 |
-} |
395 |
- |
396 |
-src_install() { |
397 |
- emake DESTDIR="${D%/}" install |
398 |
- |
399 |
- # Default is '0750', which causes init errors. |
400 |
- fperms 0755 /usr/bin/inspircd{,-genssl} |
401 |
- # Default is '0640', causing module load errors. |
402 |
- fperms -R 0755 "/usr/lib64/inspircd/modules/." |
403 |
- |
404 |
- insinto "/usr/include/${PN}" |
405 |
- doins -r include/. |
406 |
- |
407 |
- einstalldocs |
408 |
- |
409 |
- newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
410 |
- newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
411 |
- |
412 |
- keepdir "/var/log/${PN}" |
413 |
- |
414 |
- diropts -o"${PN}" -g"${PN}" -m0700 |
415 |
- keepdir "/var/lib/${PN}/data" |
416 |
-} |
417 |
- |
418 |
-pkg_postinst() { |
419 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
420 |
- # This is a new installation |
421 |
- elog "You will find example configuration files under " |
422 |
- elog "/usr/share/doc/${PN}" |
423 |
- elog "Read the ${PN}.conf.example file carefully before " |
424 |
- elog "starting the service." |
425 |
- fi |
426 |
- local pv |
427 |
- for pv in ${REPLACING_VERSIONS}; do |
428 |
- if ver_test "${pv}" -lt "2.0.24-r1"; then |
429 |
- elog "Starting with 2.0.24-r1 the daemon is no longer started" |
430 |
- elog "with the --logfile option and you are thus expected to define" |
431 |
- elog "logging in the InspIRCd configuration file if you want it." |
432 |
- fi |
433 |
- if ver_test "${pv}" -lt "3.0.0"; then |
434 |
- elog "Version 3.0 is a major upgrade which contains breaking" |
435 |
- elog "changes. You will need to update your configuration files." |
436 |
- elog "See: https://docs.inspircd.org/3/configuration-changes" |
437 |
- fi |
438 |
- done |
439 |
-} |