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: Sun, 01 Sep 2019 11:50:24
Message-Id: 1567338606.b91386c792d3e2387b6c6c6e58405075e3fea986.juippis@gentoo
1 commit: b91386c792d3e2387b6c6c6e58405075e3fea986
2 Author: Wade Cline <wadecline <AT> hotmail <DOT> com>
3 AuthorDate: Sun Aug 25 23:51:54 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 11:50:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b91386c7
7
8 net-irc/inspircd: Bump to 3.3.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.3.0-fix-path-builds.patch | 267 +++++++++++++++++++++
15 net-irc/inspircd/inspircd-3.3.0.ebuild | 128 ++++++++++
16 3 files changed, 396 insertions(+)
17
18 diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest
19 index ec6f1427372..345c2aeed3f 100644
20 --- a/net-irc/inspircd/Manifest
21 +++ b/net-irc/inspircd/Manifest
22 @@ -1,3 +1,4 @@
23 DIST inspircd-2.0.25.tar.gz 734017 BLAKE2B d67af67a68d55e107c4492561fcc181ca17fda8b59d53e14e2a585057507f035d3178a9f5f04a22b8969f0fe6f331833e412f410f3276a610dc179ebf16c2399 SHA512 c404d3c296b48d34ad43f576eba1a1fe96ae3d644f032d11cb6050b8e777f93efe33715b0676f481ac3878eea1c17c884a26bff86b909f71f7329ebcfb97add8
24 DIST inspircd-2.0.27.tar.gz 735970 BLAKE2B 74a262ddd5f7d2fd61a1a01cddb0d61bf58e9fcdb3a69ebda15d711f3439b7b8e4387ee9ef3b55309e213e1e8bdc2978ca5b319720b0fcf71d9645f13102c2a2 SHA512 56f03c3259fad54365e97fd82f4e309edc60b641ccadd7916d04156fd157858f79930c8b9df99aa98c5505f76ab19e6bcd150ae5ed04d2bddfff572e18226cdd
25 DIST inspircd-3.2.0.tar.gz 799842 BLAKE2B 87f8465479f01587b669c926c9097e14e441d40d6f37be2971863b40c2cef3d962acaf2cc84879d1d813819bcb512adfc58723b6adac5dfc35b240d4068b40f6 SHA512 8792614785d7f0415a38d49cc1786204d838917df54792ee6755b9ad8fd895020539364fdfc6daae60a911b8f39af1326e172ac40335b700241ca832410a4498
26 +DIST inspircd-3.3.0.tar.gz 803449 BLAKE2B 2b396db9d4bc84af33367715acb7f82299211ab31975310de0da4e3fe74385085b801c3bce6fe835b0f9e9857b1b457e037eb72e91d4455dc5918ad8d5bc844d SHA512 067904d877803c370873b5e79860fe0ac68529e740283e7e78dcd4dbbea30e19841a1f2e7e57e3e0b701704224369dbd484562e7edbbcd775bf85c18a4d340c3
27
28 diff --git a/net-irc/inspircd/files/inspircd-3.3.0-fix-path-builds.patch b/net-irc/inspircd/files/inspircd-3.3.0-fix-path-builds.patch
29 new file mode 100644
30 index 00000000000..955b2be7909
31 --- /dev/null
32 +++ b/net-irc/inspircd/files/inspircd-3.3.0-fix-path-builds.patch
33 @@ -0,0 +1,267 @@
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 3bf1c2e99..b451a2f18 100644
116 +--- a/docs/conf/modules.conf.example
117 ++++ b/docs/conf/modules.conf
118 +@@ -832,7 +832,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 +@@ -868,7 +868,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 +@@ -877,7 +877,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 +@@ -967,7 +967,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 +@@ -1545,7 +1545,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 +@@ -2123,7 +2123,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 d77d59fa5..b28d7180d 100644
267 +--- a/make/template/main.mk
268 ++++ b/make/template/main.mk
269 +@@ -210,8 +210,8 @@ 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)/services
274 +- @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(EXAPATH)/sql
275 ++ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/services
276 ++ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(CONPATH)/sql
277 + @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(LOGPATH)
278 + @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MANPATH)
279 + @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MODPATH)
280 +@@ -229,9 +229,9 @@ endif
281 + -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/inspircd.1 $(MANPATH) 2>/dev/null
282 + -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/inspircd-genssl.1 $(MANPATH) 2>/dev/null
283 + -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) tools/genssl $(BINPATH)/inspircd-genssl 2>/dev/null
284 +- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.example $(EXAPATH)
285 +- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/*.example $(EXAPATH)/services
286 +- -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(EXAPATH)/sql
287 ++ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/*.{conf,txt} $(CONPATH)
288 ++ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/* $(CONPATH)/services
289 ++ -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(CONPATH)/sql
290 + -$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_PRV) *.pem $(CONPATH) 2>/dev/null
291 + @echo ""
292 + @echo "*************************************"
293 +@@ -245,7 +245,6 @@ endif
294 + @echo ' Data:' $(DATPATH)
295 + @echo 'To start the ircd, run:' $(SCRPATH)/inspircd start
296 + @echo 'Remember to create your config file:' $(CONPATH)/inspircd.conf
297 +- @echo 'Examples are available at:' $(EXAPATH)
298 +
299 + GNUmakefile: make/template/main.mk src/version.sh configure @CONFIGURE_CACHE_FILE@
300 + ./configure --update
301
302 diff --git a/net-irc/inspircd/inspircd-3.3.0.ebuild b/net-irc/inspircd/inspircd-3.3.0.ebuild
303 new file mode 100644
304 index 00000000000..0223cc46790
305 --- /dev/null
306 +++ b/net-irc/inspircd/inspircd-3.3.0.ebuild
307 @@ -0,0 +1,128 @@
308 +# Copyright 1999-2019 Gentoo Authors
309 +# Distributed under the terms of the GNU General Public License v2
310 +
311 +EAPI="7"
312 +
313 +inherit toolchain-funcs
314 +
315 +DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
316 +HOMEPAGE="https://inspircd.github.com/"
317 +SRC_URI="https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
318 +
319 +LICENSE="GPL-2"
320 +SLOT="0"
321 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
322 +IUSE="debug gnutls ldap maxminddb mbedtls mysql pcre postgres re2 regex-posix regex-stdlib sqlite ssl sslrehashsignal tre"
323 +
324 +RDEPEND="
325 + acct-group/inspircd
326 + acct-user/inspircd
327 + dev-lang/perl
328 + gnutls? ( net-libs/gnutls:= dev-libs/libgcrypt:0 )
329 + ldap? ( net-nds/openldap )
330 + maxminddb? ( dev-libs/libmaxminddb )
331 + mbedtls? ( net-libs/mbedtls:= )
332 + mysql? ( dev-db/mysql-connector-c:= )
333 + pcre? ( dev-libs/libpcre )
334 + postgres? ( dev-db/postgresql:= )
335 + re2? ( dev-libs/re2:= )
336 + sqlite? ( >=dev-db/sqlite-3.0 )
337 + ssl? ( dev-libs/openssl:= )
338 + tre? ( dev-libs/tre )"
339 +DEPEND="${RDEPEND}"
340 +
341 +DOCS=( docs/. )
342 +PATCHES=( "${FILESDIR}"/${P}-fix-path-builds.patch )
343 +
344 +src_prepare() {
345 + default
346 +
347 + # Patch the inspircd launcher with the inspircd user
348 + sed -i -e "s/@UID@/${PN}/" "make/template/${PN}" || die
349 +}
350 +
351 +src_configure() {
352 + local extras=""
353 +
354 + use gnutls && extras+="m_ssl_gnutls.cpp,"
355 + use ldap && extras+="m_ldap.cpp,"
356 + use maxminddb && extras+="m_geo_maxmind.cpp,"
357 + use mbedtls && extras+="m_ssl_mbedtls.cpp,"
358 + use mysql && extras+="m_mysql.cpp,"
359 + use pcre && extras+="m_regex_pcre.cpp,"
360 + use postgres && extras+="m_pgsql.cpp,"
361 + use re2 && extras+="m_regex_re2.cpp,"
362 + use regex-posix && extras+="m_regex_posix.cpp,"
363 + use regex-stdlib && extras+="m_regex_stdlib.cpp,"
364 + use sqlite && extras+="m_sqlite3.cpp,"
365 + use ssl && extras+="m_ssl_openssl.cpp,"
366 + use sslrehashsignal && extras+="m_sslrehashsignal.cpp,"
367 + use tre && extras+="m_regex_tre.cpp,"
368 +
369 + # The first configuration run enables certain "extra" InspIRCd
370 + # modules, the second run generates the actual makefile.
371 + if [[ -n "${extras}" ]]; then
372 + ./configure --disable-interactive --enable-extras=${extras%,}
373 + fi
374 +
375 + local myconf=(
376 + --disable-interactive
377 + --disable-auto-extras
378 + --prefix="/usr/$(get_libdir)/${PN}"
379 + --config-dir="/etc/${PN}"
380 + --data-dir="/var/lib/${PN}/data"
381 + --log-dir="/var/log/${PN}"
382 + --binary-dir="/usr/bin"
383 + --module-dir="/usr/$(get_libdir)/${PN}/modules"
384 + --manual-dir="/usr/share/man")
385 + CXX="$(tc-getCXX)" ./configure "${myconf[@]}"
386 +}
387 +
388 +src_compile() {
389 + emake LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" $(usex debug 'INSPIRCD_DEBUG=2' '') INSPIRCD_VERBOSE=1
390 +}
391 +
392 +src_install() {
393 + emake DESTDIR="${D%/}" install
394 +
395 + # Default is '0750', which causes init errors.
396 + fperms 0755 /usr/bin/inspircd{,-genssl}
397 + # Default is '0640', causing module load errors.
398 + fperms -R 0755 "/usr/lib64/inspircd/modules/."
399 +
400 + insinto "/usr/include/${PN}"
401 + doins -r include/.
402 +
403 + einstalldocs
404 +
405 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
406 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
407 +
408 + keepdir "/var/log/${PN}"
409 +
410 + diropts -o"${PN}" -g"${PN}" -m0700
411 + keepdir "/var/lib/${PN}/data"
412 +}
413 +
414 +pkg_postinst() {
415 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
416 + # This is a new installation
417 + elog "You will find example configuration files under "
418 + elog "/usr/share/doc/${PN}"
419 + elog "Read the ${PN}.conf.example file carefully before "
420 + elog "starting the service."
421 + fi
422 + local pv
423 + for pv in ${REPLACING_VERSIONS}; do
424 + if ver_test "${pv}" -lt "2.0.24-r1"; then
425 + elog "Starting with 2.0.24-r1 the daemon is no longer started"
426 + elog "with the --logfile option and you are thus expected to define"
427 + elog "logging in the InspIRCd configuration file if you want it."
428 + fi
429 + if ver_test "${pv}" -lt "3.0.0"; then
430 + elog "Version 3.0 is a major upgrade which contains breaking"
431 + elog "changes. You will need to update your configuration files."
432 + elog "See: https://docs.inspircd.org/3/configuration-changes"
433 + fi
434 + done
435 +}