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