Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@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, 30 Sep 2018 20:07:15
Message-Id: 1538338025.3c88a4bf30a966da6a351ce485b1f20c261295d5.mgorny@gentoo
1 commit: 3c88a4bf30a966da6a351ce485b1f20c261295d5
2 Author: Wade Cline <wadecline <AT> hotmail <DOT> com>
3 AuthorDate: Wed Sep 19 03:39:55 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 30 20:07:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c88a4bf
7
8 net-irc/inspircd: Remove old version
9
10 Signed-off-by: Wade Cline <wadecline <AT> hotmail.com>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 net-irc/inspircd/Manifest | 1 -
14 .../files/inspircd-2.0.23-fix-path-builds.patch | 253 ---------------------
15 net-irc/inspircd/files/inspircd-r2.initd | 48 ----
16 net-irc/inspircd/files/inspircd-r3.confd | 33 ---
17 net-irc/inspircd/files/inspircd.confd | 5 -
18 .../files/{inspircd-r3.initd => inspircd.initd} | 0
19 net-irc/inspircd/inspircd-2.0.23.ebuild | 106 ---------
20 net-irc/inspircd/inspircd-2.0.25.ebuild | 4 +-
21 net-irc/inspircd/inspircd-2.0.26.ebuild | 4 +-
22 9 files changed, 4 insertions(+), 450 deletions(-)
23
24 diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest
25 index c2631dcf58b..9204c385742 100644
26 --- a/net-irc/inspircd/Manifest
27 +++ b/net-irc/inspircd/Manifest
28 @@ -1,3 +1,2 @@
29 -DIST inspircd-2.0.23.tar.gz 731695 BLAKE2B 58cd38af6244926f620a7e65b14d44062cc5aacb3aed394b736062f9f5ac0c2b689f8967e2e9577570766547bf8f694e1762bab71114dda9414e05ba8e01bfd2 SHA512 93a3dab04e797cfde158de8c2e959d1bb5df115aa3fe5a4066cdf9f56cb0c548fd2664a12d61bf2dbdb45549577974be99a0d6ffc6114c72cf0697f5ca4f85bb
30 DIST inspircd-2.0.25.tar.gz 734017 BLAKE2B d67af67a68d55e107c4492561fcc181ca17fda8b59d53e14e2a585057507f035d3178a9f5f04a22b8969f0fe6f331833e412f410f3276a610dc179ebf16c2399 SHA512 c404d3c296b48d34ad43f576eba1a1fe96ae3d644f032d11cb6050b8e777f93efe33715b0676f481ac3878eea1c17c884a26bff86b909f71f7329ebcfb97add8
31 DIST inspircd-2.0.26.tar.gz 735414 BLAKE2B 817a96c95b3360cadfcf69ab093b0bbd0f5b89e66a1b03f0c5916e2a4c514fa529dc4094368b2f03ef98bfe89c584a9a6a555d2ee9e33c7e6b0b4784bccba946 SHA512 950982629eab0dabeac9e7f2ab6e8b923bc5dafa978280cb91aa28c40997b7cfac2e4d39d74bb4c9cdb8f818205cc17bf782ec86f0aae966cb9c47bbf8143d1a
32
33 diff --git a/net-irc/inspircd/files/inspircd-2.0.23-fix-path-builds.patch b/net-irc/inspircd/files/inspircd-2.0.23-fix-path-builds.patch
34 deleted file mode 100644
35 index debf62a15f5..00000000000
36 --- a/net-irc/inspircd/files/inspircd-2.0.23-fix-path-builds.patch
37 +++ /dev/null
38 @@ -1,253 +0,0 @@
39 -diff -Nuar a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example
40 ---- a/docs/conf/inspircd.conf.example 2015-05-10 00:24:10.000000000 -0500
41 -+++ b/docs/conf/inspircd.conf.example 2015-07-27 05:22:26.107849785 -0500
42 -@@ -412,11 +412,11 @@
43 -
44 - # This file has all the information about oper classes, types and o:lines.
45 - # You *MUST* edit it.
46 --<include file="conf/examples/opers.conf.example">
47 -+<include file="/etc/inspircd/opers.conf.example">
48 -
49 - # This file has all the information about server links and ulined servers.
50 - # You *MUST* edit it if you intend to link servers.
51 --<include file="conf/examples/links.conf.example">
52 -+<include file="/etc/inspircd/links.conf.example">
53 -
54 - #-#-#-#-#-#-#-#-#-#- MISCELLANEOUS CONFIGURATION -#-#-#-#-#-#-#-#-#-#
55 - # #
56 -@@ -426,7 +426,8 @@
57 - # motd - displayed on connect and when a user executes /MOTD
58 - # rules - displayed when the user executes /RULES
59 - # Modules can also define their own files
60 --<files motd="conf/examples/motd.txt.example" rules="conf/examples/rules.txt.example">
61 -+<files motd="/etc/inspircd/motd.txt.example"
62 -+ rules="/etc/inspircd/rules.txt.example">
63 -
64 - # Example of an executable file include. Note this will be read on rehash,
65 - # not when the command is run.
66 -@@ -472,7 +473,7 @@
67 - # the default of 'inspircd.pid' is used. #
68 - # #
69 -
70 --#<pid file="/path/to/inspircd.pid">
71 -+<pid file="/var/run/inspircd/inspircd.pid">
72 -
73 - #-#-#-#-#-#-#-#-#-#-#-#-#- BANLIST LIMITS #-#-#-#-#-#-#-#-#-#-#-#-#-#-#
74 - # #
75 -@@ -953,7 +954,7 @@
76 - # provide almost all the features of InspIRCd. :) #
77 - # #
78 - # The default does nothing -- we include it for simplicity for you. #
79 --<include file="conf/examples/modules.conf.example">
80 -+<include file="/etc/inspircd/modules.conf.example">
81 -
82 - # Here are some pre-built modules.conf files that closely match the
83 - # default configurations of some popular IRCd's. You still may want to
84 -@@ -965,10 +966,10 @@
85 - # recommended that you make your own modules file based on modules.conf.example.
86 -
87 - # Settings similar to UnrealIRCd defaults.
88 --#<include file="conf/examples/modules/unrealircd.conf.example">
89 -+#<include file="/etc/inspircd/modules/unrealircd.conf.example">
90 -
91 - # Settings similar to Charybdis IRCd defaults.
92 --#<include file="conf/examples/modules/charybdis.conf.example">
93 -+#<include file="/etc/inspircd/modules/charybdis.conf.example">
94 -
95 -
96 - #########################################################################
97 -diff -Nuar a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example
98 ---- a/docs/conf/modules.conf.example 2016-02-28 17:38:30.492335461 -0600
99 -+++ b/docs/conf/modules.conf.example 2016-02-28 17:39:20.068559846 -0600
100 -@@ -315,7 +315,7 @@
101 - # specify some censor tags. See also: #
102 - # http://wiki.inspircd.org/Modules/censor #
103 - #
104 --#<include file="conf/examples/censor.conf.example">
105 -+#<include file="/etc/inspircd/censor.conf.example">
106 -
107 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
108 - # CGI:IRC module: Adds support for automatic host changing in CGI:IRC
109 -@@ -778,7 +778,7 @@
110 - # specify below the path to the filter.conf file, or define some #
111 - # <filter> tags. #
112 - # #
113 --#<include file="conf/examples/filter.conf.example">
114 -+#<include file="/etc/inspircd/filter.conf.example">
115 -
116 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
117 - # Gecos ban: Implements extended ban 'r', which stops anyone matching
118 -@@ -834,7 +834,7 @@
119 - # #
120 - # If you specify to use the m_helpop.so module, then specify below #
121 - # the path to the helpop.conf file. #
122 --#<include file="conf/examples/inspircd.helpop-full.example">
123 -+#<include file="/etc/inspircd/inspircd.helpop-full.example">
124 -
125 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
126 - # Hide chans module: Allows users to hide their channels list from non-
127 -@@ -1284,7 +1284,7 @@
128 - # Read the comment above <connect:allowmotdcolors> in #
129 - # inspircd.conf.example for details. #
130 - # #
131 --#<opermotd file="conf/examples/opermotd.txt.example" onoper="yes" processcolors="false">
132 -+#<opermotd file="/etc/inspircd/opermotd.txt.example" onoper="yes" processcolors="false">
133 -
134 - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
135 - # Override module: Adds support for oper override.
136 -diff -Nuar a/make/template/main.mk b/make/template/main.mk
137 ---- a/make/template/main.mk 2015-05-10 00:24:10.000000000 -0500
138 -+++ b/make/template/main.mk 2015-07-27 05:22:26.107849785 -0500
139 -@@ -34,7 +34,7 @@
140 - SYSTEM = @SYSTEM@
141 - BUILDPATH = @BUILD_DIR@
142 - SOCKETENGINE = @SOCKETENGINE@
143 --CXXFLAGS = -pipe -fPIC -DPIC
144 -+MYCXXFLAGS = -pipe -fPIC -DPIC
145 - LDLIBS = -pthread -lstdc++
146 - LDFLAGS =
147 - CORELDFLAGS = -rdynamic -L. $(LDFLAGS)
148 -@@ -51,9 +51,9 @@
149 - INSTMODE_LIB = 0644
150 -
151 - @IFEQ $(CC) icpc
152 -- CXXFLAGS += -Wshadow
153 -+ MYCXXFLAGS += -Wshadow
154 - @ELSE
155 -- CXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall
156 -+ MYCXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall
157 - @ENDIF
158 -
159 -
160 -@@ -75,46 +75,46 @@
161 - INSTALL = ginstall
162 - @ENDIF
163 - @IFEQ $(SYSTEM) darwin
164 -- CXXFLAGS += -DDARWIN -frtti
165 -+ MYCXXFLAGS += -DDARWIN -frtti
166 - LDLIBS += -ldl
167 - CORELDFLAGS = -dynamic -bind_at_load -L. $(LDFLAGS)
168 - PICLDFLAGS = -fPIC -shared -twolevel_namespace -undefined dynamic_lookup $(LDFLAGS)
169 - @ENDIF
170 - @IFEQ $(SYSTEM) interix
171 -- CXXFLAGS += -D_ALL_SOURCE -I/usr/local/include
172 -+ MYCXXFLAGS += -D_ALL_SOURCE -I/usr/local/include
173 - @ENDIF
174 -
175 --@IFNDEF D
176 -- D=0
177 -+@IFNDEF DEBUGLEVEL
178 -+ DEBUGLEVEL=0
179 - @ENDIF
180 -
181 - GCC6=@GCC6@
182 - @IFEQ $(GCC6) true
183 -- CXXFLAGS += -fno-delete-null-pointer-checks
184 -+ MYCXXFLAGS += -fno-delete-null-pointer-checks
185 - @ENDIF
186 -
187 - DBGOK=0
188 --@IFEQ $(D) 0
189 -- CXXFLAGS += -O2
190 -+@IFEQ $(DEBUGLEVEL) 0
191 -+ MYCXXFLAGS += -O2
192 - @IFEQ $(CC) g++
193 -- CXXFLAGS += -g1
194 -+ MYCXXFLAGS += -g1
195 - @ENDIF
196 - HEADER = std-header
197 - DBGOK=1
198 - @ENDIF
199 --@IFEQ $(D) 1
200 -- CXXFLAGS += -O0 -g3 -Werror
201 -+@IFEQ $(DEBUGLEVEL) 1
202 -+ MYCXXFLAGS += -O0 -g3 -Werror
203 - HEADER = debug-header
204 - DBGOK=1
205 - @ENDIF
206 --@IFEQ $(D) 2
207 -- CXXFLAGS += -O2 -g3
208 -+@IFEQ $(DEBUGLEVEL) 2
209 -+ MYCXXFLAGS += -O2 -g3
210 - HEADER = debug-header
211 - DBGOK=1
212 - @ENDIF
213 - FOOTER = finishmessage
214 -
215 --CXXFLAGS += -Iinclude
216 -+MYCXXFLAGS += -Iinclude
217 -
218 - @GNU_ONLY MAKEFLAGS += --no-print-directory
219 -
220 -@@ -134,10 +134,11 @@
221 - @ENDIF
222 -
223 - @IFDEF PURE_STATIC
224 -- CXXFLAGS += -DPURE_STATIC
225 -+ MYCXXFLAGS += -DPURE_STATIC
226 - @ENDIF
227 -
228 --@DO_EXPORT RUNCC RUNLD CXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS
229 -+MYCXXFLAGS += $(CXXFLAGS)
230 -+@DO_EXPORT RUNCC RUNLD MYCXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS
231 - @DO_EXPORT SOURCEPATH BUILDPATH PURE_STATIC SPLIT_CC
232 -
233 - # Default target
234 -@@ -150,10 +151,10 @@
235 - @GNU_ONLY TARGET = modules/$(M:.so=).so
236 - @ENDIF
237 -
238 --@IFDEF T
239 -+@IFDEF TGT
240 - HEADER =
241 - FOOTER = target
242 -- TARGET = $(T)
243 -+ TARGET = $(TGT)
244 - @ENDIF
245 -
246 - @IFEQ $(DBGOK) 0
247 -@@ -228,8 +229,8 @@
248 - @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/data
249 - @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/logs
250 - @-$(INSTALL) -d -m $(INSTMODE_DIR) $(BINPATH)
251 -- @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/aliases
252 -- @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/modules
253 -+ @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/aliases
254 -+ @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/modules
255 - @-$(INSTALL) -d -m $(INSTMODE_DIR) $(MODPATH)
256 - [ $(BUILDPATH)/bin/ -ef $(BINPATH) ] || $(INSTALL) -m $(INSTMODE_BIN) $(BUILDPATH)/bin/inspircd $(BINPATH)
257 - @IFNDEF PURE_STATIC
258 -@@ -237,9 +238,9 @@
259 - @ENDIF
260 - -$(INSTALL) -m $(INSTMODE_BIN) @STARTSCRIPT@ $(BASE) 2>/dev/null
261 - -$(INSTALL) -m $(INSTMODE_LIB) tools/gdbargs $(BASE)/.gdbargs 2>/dev/null
262 -- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/*.example $(CONPATH)/examples
263 -- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/aliases/*.example $(CONPATH)/examples/aliases
264 -- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/modules/*.example $(CONPATH)/examples/modules
265 -+ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/*.example $(CONPATH)
266 -+ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/aliases/*.example $(CONPATH)/aliases
267 -+ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/modules/*.example $(CONPATH)/modules
268 - @echo ""
269 - @echo "*************************************"
270 - @echo "* INSTALL COMPLETE! *"
271 -@@ -252,7 +253,7 @@
272 - @echo ' Data:' $(DATPATH)
273 - @echo 'To start the ircd, run:' $(BASE)/inspircd start
274 - @echo 'Remember to create your config file:' $(CONPATH)/inspircd.conf
275 -- @echo 'Examples are available at:' $(CONPATH)/examples/
276 -+ @echo 'Examples are available at:' $(CONPATH)
277 -
278 - @GNU_ONLY RCS_FILES = $(wildcard .git/index src/version.sh)
279 - @BSD_ONLY RCS_FILES = src/version.sh
280 -diff -Nuar a/make/unit-cc.pl b/make/unit-cc.pl
281 ---- a/make/unit-cc.pl 2015-05-10 00:24:10.000000000 -0500
282 -+++ b/make/unit-cc.pl 2015-07-27 05:22:26.107849785 -0500
283 -@@ -113,7 +113,7 @@
284 - my $libs = '';
285 - my $binary = $ENV{RUNCC};
286 - if ($do_compile) {
287 -- $flags = $ENV{CXXFLAGS};
288 -+ $flags = $ENV{MYCXXFLAGS};
289 - $flags =~ s/ -pedantic// if nopedantic($file);
290 - $flags .= ' ' . getcompilerflags($file);
291 -
292
293 diff --git a/net-irc/inspircd/files/inspircd-r2.initd b/net-irc/inspircd/files/inspircd-r2.initd
294 deleted file mode 100644
295 index 653e501627e..00000000000
296 --- a/net-irc/inspircd/files/inspircd-r2.initd
297 +++ /dev/null
298 @@ -1,48 +0,0 @@
299 -#!/sbin/openrc-run
300 -# Copyright 1999-2017 Gentoo Foundation
301 -# Distributed under the terms of the GNU General Public License v2
302 -
303 -INSPIRCD_USER=${INSPIRCD_USER:-"inspircd"}
304 -INSPIRCD_GROUP=${INSPIRCD_GROUP:-"inspircd"}
305 -INSPIRCD_CONFIGFILE=${INSPIRCD_CONFIGFILE:-"/etc/inspircd/inspircd.conf"}
306 -INSPIRCD_LOGFILE=${INSPIRCD_LOGFILE:-"/var/log/inspircd/ircd.log"}
307 -INSPIRCD_PIDFILE=${INSPIRCD_PIDFILE:-"/run/inspircd/inspircd.pid"}
308 -INSPIRCD_SSDARGS=${INSPIRCD_SSDARGS:-"--quiet --user \"${INSPIRCD_USER}\" --wait 1000"}
309 -INSPIRCD_TERMTIMEOUT=${INSPIRCD_TERMTIMEOUT:-"TERM/25/KILL/5"}
310 -INSPIRCD_OPTS=${INSPIRCD_OPTS:-""}
311 -
312 -command="/usr/bin/inspircd"
313 -command_args="${INSPIRCD_OPTS} --config \"${INSPIRCD_CONFIGFILE}\" --logfile \"${INSPIRCD_LOGFILE}\""
314 -start_stop_daemon_args="${INSPIRCD_SSDARGS}"
315 -pidfile="${INSPIRCD_PIDFILE}"
316 -retry="${INSPIRCD_TERMTIMEOUT}"
317 -
318 -required_files="${INSPIRCD_CONFIGFILE}"
319 -
320 -name="InspIRCd"
321 -
322 -description="InspIRCd is a modular Internet Relay Chat (IRC) server."
323 -
324 -extra_commands="version"
325 -extra_started_commands="rehash"
326 -
327 -depend() {
328 - use dns
329 - provide ircd
330 -}
331 -
332 -start_pre() {
333 - checkpath --directory --mode 0750 --owner ${INSPIRCD_USER}:${INSPIRCD_GROUP} "$(dirname "${INSPIRCD_PIDFILE}")"
334 -}
335 -
336 -rehash() {
337 - ebegin "Rehashing InspIRCd"
338 - start-stop-daemon --signal HUP --pidfile "${pidfile}"
339 - eend $?
340 -}
341 -
342 -version() {
343 - ebegin "Retrieve InspIRCd version"
344 - ${command} --version
345 - eend $?
346 -}
347
348 diff --git a/net-irc/inspircd/files/inspircd-r3.confd b/net-irc/inspircd/files/inspircd-r3.confd
349 deleted file mode 100644
350 index af9b3fe15e2..00000000000
351 --- a/net-irc/inspircd/files/inspircd-r3.confd
352 +++ /dev/null
353 @@ -1,33 +0,0 @@
354 -# Distributed under the terms of the GNU General Public License v2
355 -
356 -# Location of configuration file. Modify if you don't like the standard
357 -# one.
358 -#
359 -#INSPIRCD_CONFIGFILE="/etc/inspircd/inspircd.conf"
360 -
361 -# File used to store the PID file. Usually you won't need to touch it.
362 -# If you are changing PID file do not forget to set new PID file in
363 -# INSPIRCD_CONFIGFILE as well.
364 -#
365 -#INSPIRCD_PIDFILE="/run/inspircd/inspircd.pid"
366 -
367 -# User to run InspIRCd as
368 -#
369 -#INSPIRCD_USER="inspircd"
370 -#INSPIRCD_GROUP="inspircd"
371 -
372 -# You can use this configuration option to pass additional options to the
373 -# start-stop-daemon, see start-stop-daemon(8) for more details.
374 -# Per default we start InspIRCd without any output (quiet)
375 -# as user $INSPIRCD_USER and wait 1000ms after we have started the service
376 -# to ensure that the daemon is really up and running.
377 -#INSPIRCD_SSDARGS="--quiet --user \"${INSPIRCD_USER}\" --wait 1000"
378 -
379 -# The termination timeout (start-stop-daemon parameter "retry") ensures
380 -# that the service will be terminated within a given time (25 + 5 seconds
381 -# per default) when you are stopping the service.
382 -#INSPIRCD_TERMTIMEOUT="TERM/25/KILL/5"
383 -
384 -# Options to collectd
385 -# See `/usr/bin/inspircd --help` for more details
386 -#INSPIRCD_OPTS=""
387
388 diff --git a/net-irc/inspircd/files/inspircd.confd b/net-irc/inspircd/files/inspircd.confd
389 index 1291f9fd552..af9b3fe15e2 100644
390 --- a/net-irc/inspircd/files/inspircd.confd
391 +++ b/net-irc/inspircd/files/inspircd.confd
392 @@ -5,11 +5,6 @@
393 #
394 #INSPIRCD_CONFIGFILE="/etc/inspircd/inspircd.conf"
395
396 -# Location of log file. Modify if you don't like the standard
397 -# one.
398 -#
399 -#INSPIRCD_LOGFILE="/var/log/inspircd/ircd.log"
400 -
401 # File used to store the PID file. Usually you won't need to touch it.
402 # If you are changing PID file do not forget to set new PID file in
403 # INSPIRCD_CONFIGFILE as well.
404
405 diff --git a/net-irc/inspircd/files/inspircd-r3.initd b/net-irc/inspircd/files/inspircd.initd
406 similarity index 100%
407 rename from net-irc/inspircd/files/inspircd-r3.initd
408 rename to net-irc/inspircd/files/inspircd.initd
409
410 diff --git a/net-irc/inspircd/inspircd-2.0.23.ebuild b/net-irc/inspircd/inspircd-2.0.23.ebuild
411 deleted file mode 100644
412 index 78dbcfc2928..00000000000
413 --- a/net-irc/inspircd/inspircd-2.0.23.ebuild
414 +++ /dev/null
415 @@ -1,106 +0,0 @@
416 -# Copyright 1999-2017 Gentoo Foundation
417 -# Distributed under the terms of the GNU General Public License v2
418 -
419 -EAPI="6"
420 -
421 -inherit toolchain-funcs user
422 -
423 -DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
424 -HOMEPAGE="https://inspircd.github.com/"
425 -SRC_URI="https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
426 -
427 -LICENSE="GPL-2"
428 -SLOT="0"
429 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
430 -IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre"
431 -
432 -RDEPEND="
433 - dev-lang/perl
434 - ssl? ( dev-libs/openssl:= )
435 - geoip? ( dev-libs/geoip )
436 - gnutls? ( net-libs/gnutls:= dev-libs/libgcrypt:0 )
437 - ldap? ( net-nds/openldap )
438 - mysql? ( virtual/mysql )
439 - postgres? ( dev-db/postgresql:= )
440 - pcre? ( dev-libs/libpcre )
441 - sqlite? ( >=dev-db/sqlite-3.0 )
442 - tre? ( dev-libs/tre )"
443 -DEPEND="${RDEPEND}"
444 -
445 -PATCHES=( "${FILESDIR}"/${PN}-2.0.23-fix-path-builds.patch )
446 -
447 -pkg_setup() {
448 - enewgroup ${PN}
449 - enewuser ${PN} -1 -1 -1 ${PN}
450 -}
451 -
452 -src_prepare() {
453 - # Patch the inspircd launcher with the inspircd user
454 - sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
455 -
456 - default_src_prepare
457 -}
458 -
459 -src_configure() {
460 - local extras=""
461 -
462 - use geoip && extras="${extras}m_geoip.cpp,"
463 - use gnutls && extras="${extras}m_ssl_gnutls.cpp,"
464 - use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp,"
465 - use mysql && extras="${extras}m_mysql.cpp,"
466 - use pcre && extras="${extras}m_regex_pcre.cpp,"
467 - use posix && extras="${extras}m_regex_posix.cpp,"
468 - use postgres && extras="${extras}m_pgsql.cpp,"
469 - use sqlite && extras="${extras}m_sqlite3.cpp,"
470 - use ssl && extras="${extras}m_ssl_openssl.cpp,"
471 - use tre && extras="${extras}m_regex_tre.cpp,"
472 -
473 - if [[ -n "${extras}" ]]; then
474 - econf --disable-interactive --enable-extras=${extras%,}
475 - fi
476 -
477 - econf \
478 - --with-cc="$(tc-getCXX)" \
479 - --disable-interactive \
480 - --prefix="/usr/$(get_libdir)/${PN}" \
481 - --config-dir="/etc/${PN}" \
482 - --data-dir="/var/lib/${PN}/data" \
483 - --log-dir="/var/log/${PN}" \
484 - --binary-dir="/usr/bin" \
485 - --module-dir="/usr/$(get_libdir)/${PN}/modules" \
486 - $(usex ipv6 '' '--disable-ipv6') \
487 - $(usex gnutls '--enable-gnutls' '') \
488 - $(usex ssl '--enable-openssl' '')
489 -}
490 -
491 -src_compile() {
492 - emake V=1 LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}"
493 -}
494 -
495 -src_install() {
496 - emake INSTUID=${PN} DESTDIR="${D%/}" install
497 -
498 - insinto "/usr/include/${PN}"
499 - doins -r include/.
500 -
501 - diropts -o"${PN}" -g"${PN}" -m0700
502 - dodir "/var/lib/${PN}"
503 - dodir "/var/lib/${PN}/data"
504 -
505 - newinitd "${FILESDIR}/${PN}-r2.initd" "${PN}"
506 - newconfd "${FILESDIR}/${PN}.confd" "${PN}"
507 -
508 - keepdir "/var/log/${PN}"
509 -}
510 -
511 -pkg_postinst() {
512 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
513 - # This is a new installation
514 - elog "Before starting ${PN} the first time, you should create"
515 - elog "the /etc/${PN}/${PN}.conf file."
516 - elog "You can find example configuration files under /etc/${PN}"
517 - elog "Read the ${PN}.conf.example file carefully before "
518 - elog "(re)starting the service."
519 - elog
520 - fi
521 -}
522
523 diff --git a/net-irc/inspircd/inspircd-2.0.25.ebuild b/net-irc/inspircd/inspircd-2.0.25.ebuild
524 index 746628c56e7..9d65d96de88 100644
525 --- a/net-irc/inspircd/inspircd-2.0.25.ebuild
526 +++ b/net-irc/inspircd/inspircd-2.0.25.ebuild
527 @@ -90,8 +90,8 @@ src_install() {
528 dodir "/var/lib/${PN}"
529 dodir "/var/lib/${PN}/data"
530
531 - newinitd "${FILESDIR}/${PN}-r3.initd" "${PN}"
532 - newconfd "${FILESDIR}/${PN}-r3.confd" "${PN}"
533 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
534 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
535
536 keepdir "/var/log/${PN}"
537
538
539 diff --git a/net-irc/inspircd/inspircd-2.0.26.ebuild b/net-irc/inspircd/inspircd-2.0.26.ebuild
540 index ead8598ef2c..9d97ed21f3a 100644
541 --- a/net-irc/inspircd/inspircd-2.0.26.ebuild
542 +++ b/net-irc/inspircd/inspircd-2.0.26.ebuild
543 @@ -89,8 +89,8 @@ src_install() {
544
545 einstalldocs
546
547 - newinitd "${FILESDIR}/${PN}-r3.initd" "${PN}"
548 - newconfd "${FILESDIR}/${PN}-r3.confd" "${PN}"
549 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
550 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
551
552 keepdir "/var/log/${PN}"