diff options
author | José María Alonso <nimiux@gentoo.org> | 2013-04-08 10:25:41 +0000 |
---|---|---|
committer | José María Alonso <nimiux@gentoo.org> | 2013-04-08 10:25:41 +0000 |
commit | 1a63bef5b6ef52ead6f9968730ebde183811420d (patch) | |
tree | e575a022ee52ce894fbbea06115d3025ee6dcbab | |
parent | Version bump. Add tcp-wrappers support - bug #464186 (diff) | |
download | historical-1a63bef5b6ef52ead6f9968730ebde183811420d.tar.gz historical-1a63bef5b6ef52ead6f9968730ebde183811420d.tar.bz2 historical-1a63bef5b6ef52ead6f9968730ebde183811420d.zip |
Version bump 2.0.11
Package-Manager: portage-2.1.11.55/cvs/Linux x86_64
Manifest-Sign-Key: 0xD628E536
-rw-r--r-- | net-irc/inspircd/ChangeLog | 8 | ||||
-rw-r--r-- | net-irc/inspircd/Manifest | 28 | ||||
-rw-r--r-- | net-irc/inspircd/files/inspircd-2.0.11-fix-path-builds.patch | 209 | ||||
-rw-r--r-- | net-irc/inspircd/files/inspircd-2.0.11-init | 39 | ||||
-rw-r--r-- | net-irc/inspircd/inspircd-2.0.11.ebuild | 101 |
5 files changed, 369 insertions, 16 deletions
diff --git a/net-irc/inspircd/ChangeLog b/net-irc/inspircd/ChangeLog index 698fae6a8f32..ad889d843eeb 100644 --- a/net-irc/inspircd/ChangeLog +++ b/net-irc/inspircd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-irc/inspircd # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.74 2013/03/27 15:30:08 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.75 2013/04/08 10:25:13 nimiux Exp $ + +*inspircd-2.0.11 (08 Apr 2013) + + 08 Apr 2013; Chema Alonso <nimiux@gentoo.org> +inspircd-2.0.11.ebuild, + +files/inspircd-2.0.11-fix-path-builds.patch, +files/inspircd-2.0.11-init: + Version bump 27 Mar 2013; Agostino Sarubbo <ago@gentoo.org> inspircd-2.0.10-r1.ebuild: Stable for x86, wrt bug #463112 diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest index cdc4395592ca..61fe9f26959c 100644 --- a/net-irc/inspircd/Manifest +++ b/net-irc/inspircd/Manifest @@ -1,27 +1,25 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX inspircd-2.0.10-fix-path-builds.patch 7231 SHA256 00bd6ab4a9cd823d33513eb339396d9e47e3c024b8f43ab613a37cc1fee1e291 SHA512 0a759d3b55b23dc8f4054b9a4554c8d68395a187be3853881445663f831e86fc1098866d0800c939054b6899f4bacf3dac16e076e01278b57a9335ca4e5b2884 WHIRLPOOL 7d45470db91a1871e9dc17f178b1439d00f2e063f3399c8a9c957ec39c43218a8ed9637d2f2731d1f1f272acb6e0007e704a40182ede568a45a41da6ea626a5e AUX inspircd-2.0.10-init 917 SHA256 6b0b81e69b156f5a8d85c2ae47ea904032de65584ee304342e5715c29710c368 SHA512 0c2be8690bcdfed10d645f73c615df16c952f4692e7bd7146a241d094b96dc55bfe128a62c1322880528d4113d8bf18cfa560392eaf95b52209eafc62100bbdb WHIRLPOOL 10953ecad02340adbf746a388e0e9d61ab32940707c84973d8581dd4f20fa677a8a1d80e332ae8d821e75e8c25029ba4aec32045d127743ab3d0fa7a888d0723 +AUX inspircd-2.0.11-fix-path-builds.patch 7320 SHA256 7706d0596a166456318ce3a7d8e213c633b3ff16bb304b24bf91e4b9f2757348 SHA512 fe3b6568290eed3bc960ebcfe85baa1424269a0484c2930b8a839d59e636d9920e907cd588c9eeb4a1636a5b85d696a23b1840d8d77394ad53a1b64653a038eb WHIRLPOOL 508af4e527c933689876b34b482097e26897d057a144c1b45b24a6ed50b3ddd6bc996bb733ed8ebbd2d96a0847fec2cbbcdb5a149da44c8986753039b88d868d +AUX inspircd-2.0.11-init 917 SHA256 93e3c8a96ae88f78ccd1ed42f897b0ee357f2cfdb19112d7c48a83055aacd50c SHA512 618067eb690bdc9459ee7399e96a38351526f0eee3e26b78401e2dc93a8cb9e13fe0134825089581c19698781edbc390120c4d0bb810a9ea128ec340263dc967 WHIRLPOOL 2751cca3d339507c4e0235a1450ed9f44971fae16f581a7f2205480239c16e83d226c7458d17ae690dbff44699827625271f7dd13b082e8fbd19dbb61aa6f7ec DIST inspircd-2.0.10.tar.gz 739126 SHA256 1f805a318677270a7bbf6a5abaeee5427e863a749ae69f16879014ff99a11f59 SHA512 fedff2e023066cedaa3ac5144aeff1ffc0930445cafcea1ebbed0946392cfa9a9ac42057151c70a8184af4d01d45f451c9b8d0481b7336f118e3e298875c9c27 WHIRLPOOL d6440e7e1db51518d9713a7df475984293be96e88a6ff00920617874bde5be54bafeeecc5e04a74e605efbdf812df13d99eccaee148a5e07efe730584091277f +DIST inspircd-2.0.11.tar.gz 739153 SHA256 6b01e347d2383306291af45dddbe30783fb4d889a523f82f54f4bee36560af7f SHA512 a9978361f8a3a76f4732407020f17207c32527ef70b6c89a8b99d40a0a5068487258f54800155cabc9250d9539f85218b6237a397b259d03b0814f0ff3baf222 WHIRLPOOL 9191019fad3a3d807ae58c7bcb5410d3be1fc07de90e567ec0a177816c1fd63824cca943d4c216895ef131e2113c9683010cd7691c965ece75c48f2477027568 EBUILD inspircd-2.0.10-r1.ebuild 2839 SHA256 4b08d362fdd1b118a20bb148e921d49cee58513ef8826ad1d406824579264dc4 SHA512 8cd17db30d6e27f9f082ef20797d269f7428c6a4393aad90586a7321762ac14a0c18faa202756aab98de7e83430f387cafb49a75ea9d2cecb2892c3e86fcb549 WHIRLPOOL bef854d995bc248b1816f12fcef5ecece45d7426b60aa7d6ae0e4731238cef09d65a1a4dd4b8bb8c60466a19b7eaccb7210d5e78105ca0f82133981361c8a42e EBUILD inspircd-2.0.10.ebuild 2824 SHA256 5942ce639595ddc186352c8a1df5111258fb2310285c204ddeb88b541aba4a69 SHA512 d2ab27c78b3c73cd37c23dc7b6dfeec2adee184d0cbc7e7b5560b03d7b292929e16d0c9c030cfb0e67ac0d5ed496c6b2a033a5b1209f4e590ecae5d4cd9743fe WHIRLPOOL be8f38f224440582d532a7e91a2f5cce3a02ffd5f70ae93cd43120553e2bbd87c38e0cca83327d7d82f13eb6cee749d82f357b78d7fcecf10b1133740512ac34 -MISC ChangeLog 13162 SHA256 ac2b0237c1799b5f70cd19d5ca3d2358c5060e6c708d841b818ea581cfde7096 SHA512 ef75c7131c876c8e0049bce87551ca6e1a6b60c90052fa08f0d055d5ec216c0350519ad6bf0836864dbf6a3a2a6e56daf7e01d7a4e9f07ae37a5423dca6a41b0 WHIRLPOOL 3e8a8401c5439dca91658db17820fd3e65cb4242773eb661e84ecd4e4be2f13e09e6e042eec219e708fc279275c4e19e26941d6e1a0dedb408732de15e2f4c18 +EBUILD inspircd-2.0.11.ebuild 2841 SHA256 be0652d16f516b75d8f6e64fd708cb52cc41927736eec3023a44fce7925bf7f6 SHA512 3e85a50d6f3353011dfc0ec98080e88715c8cf9bdf4a111141b58ad9acf6cf82e1c655861116645b7a39422171093969d2bf42a53a6897652594679118b420d8 WHIRLPOOL 46df33bd9485020758813b8909d2737c06d09046fafb10ac6c7521031da35e1fdadae59800119e95f033ac42be355e244cbcf626033c0c2f6d67662f25dc11c6 +MISC ChangeLog 13363 SHA256 83e72e9546645fe6a91fac6424066bb79efa3fbc84f8f4ed7c0f05518b1dd98d SHA512 bf2e67822489877f9acbcb675afa19243824e108795a2fd9c9add573fb370d1bec8f6501a0a9928daa6e5b8350bba932bb2e2577b642ac663251a8b1882382b4 WHIRLPOOL 261b0fd13501bde351d027e94b3cbb0522e8eee8e5edbb61cda5e9f493e9509c582d808a8fc47b52fb8c5c22ccd7725664f41e45a37c11ad018848b9b1a63127 MISC metadata.xml 1678 SHA256 e6f968762672f557e56e3738a12e9b12a6dc3adb603f5369cb65904601f0ae8a SHA512 b335ee15d2480b45b1d889d2036b045efd168586e4643a223bff5ceedf04b91fffafd6ea8ee7c46649769719529c3e6e972e8a5c761354847b6a161b48fbfa26 WHIRLPOOL ea6af77a612fb122cec0bcf75989d0366a4a054e1fe8826eeb4b9d2eed68b5a77206fef118ee72c9d43e447e0885a79d80f0503b0b2c4b76498feaa33b1ef606 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRUxB7AAoJELp701BxlEWfoV4QAMMxp+idhcZPTaz4Y1E5rF+1 -/hYlS6F3pejw9/oP4UVbcv9XlyobJW7FVczfyCm4+1fAEbfLKACyuMAnfLx5+Ajk -pZjWwrokddvbUrzDxul/UBBYjQ3PhEvDftJhqb6Z5d2/poyaxpH9/yGKAqTMzdpC -4VU3PwtSHavp7kQ+grncJvgNbAAPBfucfTN/g7t9hu71dbjy7KgtdqJKFct/FeJt -sdfj5ax6HYqt0Jychqf2VEPJb8f7QQSqogLOHHXdTWGng3JE0LQI0UoS4Pr4sgjG -TfVymAYAb6h0fkYWHAU+u/oQrCCeyDWFlZLOfCYYuC7vFGPDJHVlYLUnnVuaRX1r -Yi7Pr95AzjoMJlJHYbOm4b3o9AQS+aqSKFG/aokbkYnbJHAvF98ULQGUyt7rk/9X -urP/5BrqWEjDn/a2PhUhXPxWXONQkdeJx57iFPbNDcVPwG3EPVOSOk+WwHJs1OT+ -MzjqC5Kxsa+TT47wGxJ0PQh0HPehxQQ6Uh1EnuFKAL377Q+xdZ4yiGuVUBYpFR7U -vHpfK77ddrdk4mVUSHb87FhqAMD40UQfw+DDRcWDKNiWrNd1t/ldjBBuQgiR/FVm -y3ir6IqSqROl9D/vTrxUncoBa8eE+IkP+/qIP6lHwS6mlDI6OLDFdrk7lTGm3/Ir -WTIFuazffYZFebkD144W -=hNzk +iQEcBAEBCAAGBQJRYpsOAAoJEA2sAkrWKOU2BwUIALtBCX6lmgRxXpC3ZMP0fJ2+ +0HXH5sQY/o3NooPA3dhxst2rtgX11+tXbUmXuybZICGkBzknApeZWcXMV3jnDblc +oqoY4HGCsWQnOpprdrFGTim1r1vFBT7wfBmR4LBAKPj0nehbHnCkmy3Rk4VJinzY +OCVEdVGsl5iRUC4yeK5+TiNx9LW+OoYqoNnsw+XrWIhbqRpP483A63jwWklD5M/r +Xb81W30slRoZTYN2ojCPm51PUfCU4QdmLzrlXW5AKgWvr/ja/ok/8xhFLDY7ptIi +osRt0af0McYLmqbJnnEVZwUdrNT9oTbpg560mnVsa7GxQGNxatoWIR3tQkFemPs= +=YqOm -----END PGP SIGNATURE----- diff --git a/net-irc/inspircd/files/inspircd-2.0.11-fix-path-builds.patch b/net-irc/inspircd/files/inspircd-2.0.11-fix-path-builds.patch new file mode 100644 index 000000000000..4b44f002dd44 --- /dev/null +++ b/net-irc/inspircd/files/inspircd-2.0.11-fix-path-builds.patch @@ -0,0 +1,209 @@ +diff -Nur a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example +--- a/docs/conf/inspircd.conf.example 2013-03-29 02:16:32.000000000 +0100 ++++ b/docs/conf/inspircd.conf.example 2013-04-08 11:36:10.439968266 +0200 +@@ -416,11 +416,11 @@ + + # This file has all the information about oper classes, types and o:lines. + # You *MUST* edit it. +-<include file="conf/examples/opers.conf.example"> ++<include file="/etc/inspircd/opers.conf.example"> + + # This file has all the information about server links and ulined servers. + # You *MUST* edit it if you intend to link servers. +-<include file="conf/examples/links.conf.example"> ++<include file="/etc/inspircd/links.conf.example"> + + #-#-#-#-#-#-#-#-#-#- MISCELLANEOUS CONFIGURATION -#-#-#-#-#-#-#-#-#-# + # # +@@ -430,7 +430,8 @@ + # motd - displayed on connect and when a user executes /MOTD + # rules - displayed when the user executes /RULES + # Modules can also define their own files +-<files motd="conf/examples/motd.txt.example" rules="conf/examples/rules.txt.example"> ++<files motd="/etc/inspircd/motd.txt.example" ++ rules="/etc/inspircd/rules.txt.example"> + + # Example of an executable file include. Note this will be read on rehash, + # not when the command is run. +@@ -476,7 +477,7 @@ + # the default of 'inspircd.pid' is used. # + # # + +-#<pid file="/path/to/inspircd.pid"> ++<pid file="/var/run/inspircd/inspircd.pid"> + + #-#-#-#-#-#-#-#-#-#-#-#-#- BANLIST LIMITS #-#-#-#-#-#-#-#-#-#-#-#-#-#-# + # # +@@ -953,7 +954,7 @@ + # provide almost all the features of InspIRCd. :) # + # # + # The default does nothing -- we include it for simplicity for you. # +-<include file="conf/examples/modules.conf.example"> ++<include file="/etc/inspircd/modules.conf.example"> + + # Here are some pre-built modules.conf files that closely match the + # default configurations of some popular IRCd's. You still may want to +@@ -965,10 +966,10 @@ + # recommended that you make your own modules file based on modules.conf.example. + + # Settings similar to UnrealIRCd defaults. +-#<include file="conf/examples/modules/unrealircd.conf.example"> ++#<include file="/etc/inspircd/modules/unrealircd.conf.example"> + + # Settings similar to Charybdis IRCd defaults. +-#<include file="conf/examples/modules/charybdis.conf.example"> ++#<include file="/etc/inspircd/modules/charybdis.conf.example"> + + + ######################################################################### +diff -Nur a/make/template/main.mk b/make/template/main.mk +--- a/make/template/main.mk 2013-03-29 02:16:32.000000000 +0100 ++++ b/make/template/main.mk 2013-04-08 12:17:41.819954271 +0200 +@@ -34,7 +34,7 @@ + SYSTEM = @SYSTEM@ + BUILDPATH = @BUILD_DIR@ + SOCKETENGINE = @SOCKETENGINE@ +-CXXFLAGS = -pipe -fPIC -DPIC ++MYCXXFLAGS = -fPIC -DPIC + LDLIBS = -pthread -lstdc++ + LDFLAGS = + CORELDFLAGS = -rdynamic -L. $(LDFLAGS) +@@ -51,9 +51,9 @@ + INSTMODE_LIB = 0644 + + @IFEQ $(CC) icc +- CXXFLAGS += -Wshadow ++ MYCXXFLAGS += -Wshadow + @ELSE +- CXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall ++ MYCXXFLAGS += -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall + @ENDIF + + +@@ -75,41 +75,41 @@ + INSTALL = ginstall + @ENDIF + @IFEQ $(SYSTEM) darwin +- CXXFLAGS += -DDARWIN -frtti ++ MYCXXFLAGS += -DDARWIN -frtti + LDLIBS += -ldl + CORELDFLAGS = -dynamic -bind_at_load -L. $(LDFLAGS) + PICLDFLAGS = -fPIC -shared -twolevel_namespace -undefined dynamic_lookup $(LDFLAGS) + @ENDIF + @IFEQ $(SYSTEM) interix +- CXXFLAGS += -D_ALL_SOURCE -I/usr/local/include ++ MYCXXFLAGS += -D_ALL_SOURCE -I/usr/local/include + @ENDIF + +-@IFNDEF D +- D=0 ++@IFNDEF DEBUGLEVEL ++ DEBUGLEVEL=0 + @ENDIF + + DBGOK=0 +-@IFEQ $(D) 0 +- CXXFLAGS += -O2 ++@IFEQ $(DEBUGLEVEL) 0 ++ MYCXXFLAGS += -O2 + @IFEQ $(CC) gcc +- CXXFLAGS += -g1 ++ MYCXXFLAGS += -g1 + @ENDIF + HEADER = std-header + DBGOK=1 + @ENDIF +-@IFEQ $(D) 1 +- CXXFLAGS += -O0 -g3 -Werror ++@IFEQ $(DEBUGLEVEL) 1 ++ MYCXXFLAGS += -O0 -g3 -Werror + HEADER = debug-header + DBGOK=1 + @ENDIF +-@IFEQ $(D) 2 +- CXXFLAGS += -O2 -g3 ++@IFEQ $(DEBUGLEVEL) 2 ++ MYCXXFLAGS += -O2 -g3 + HEADER = debug-header + DBGOK=1 + @ENDIF + FOOTER = finishmessage + +-CXXFLAGS += -Iinclude ++MYCXXFLAGS += -Iinclude + + @GNU_ONLY MAKEFLAGS += --no-print-directory + +@@ -128,10 +128,12 @@ + @ENDIF + + @IFDEF PURE_STATIC +- CXXFLAGS += -DPURE_STATIC ++ MYCXXFLAGS += -DPURE_STATIC + @ENDIF + +-@DO_EXPORT RUNCC RUNLD CXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS ++MYCXXFLAGS += $(CXXFLAGS) ++ ++@DO_EXPORT RUNCC RUNLD MYCXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS + @DO_EXPORT SOURCEPATH BUILDPATH PURE_STATIC SPLIT_CC + + # Default target +@@ -144,10 +146,10 @@ + @GNU_ONLY TARGET = modules/$(M:.so=).so + @ENDIF + +-@IFDEF T ++@IFDEF TGT + HEADER = + FOOTER = target +- TARGET = $(T) ++ TARGET = $(TGT) + @ENDIF + + @IFEQ $(DBGOK) 0 +@@ -222,8 +224,8 @@ + @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/data + @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/logs + @-$(INSTALL) -d -m $(INSTMODE_DIR) $(BINPATH) +- @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/aliases +- @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/modules ++ @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/aliases ++ @-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/modules + @-$(INSTALL) -d -m $(INSTMODE_DIR) $(MODPATH) + [ $(BUILDPATH)/bin/ -ef $(BINPATH) ] || $(INSTALL) -m $(INSTMODE_BIN) $(BUILDPATH)/bin/inspircd $(BINPATH) + @IFNDEF PURE_STATIC +@@ -231,9 +233,9 @@ + @ENDIF + -$(INSTALL) -m $(INSTMODE_BIN) @STARTSCRIPT@ $(BASE) 2>/dev/null + -$(INSTALL) -m $(INSTMODE_LIB) tools/gdbargs $(BASE)/.gdbargs 2>/dev/null +- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/*.example $(CONPATH)/examples +- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/aliases/*.example $(CONPATH)/examples/aliases +- -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/modules/*.example $(CONPATH)/examples/modules ++ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/*.example $(CONPATH) ++ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/aliases/*.example $(CONPATH)/aliases ++ -$(INSTALL) -m $(INSTMODE_LIB) docs/conf/modules/*.example $(CONPATH)/modules + @echo "" + @echo "*************************************" + @echo "* INSTALL COMPLETE! *" +@@ -246,7 +248,7 @@ + @echo ' Data:' $(DATPATH) + @echo 'To start the ircd, run:' $(BASE)/inspircd start + @echo 'Remember to create your config file:' $(CONPATH)/inspircd.conf +- @echo 'Examples are available at:' $(CONPATH)/examples/ ++ @echo 'Examples are available at:' $(CONPATH) + + @GNU_ONLY RCS_FILES = $(wildcard .git/index src/version.sh) + @BSD_ONLY RCS_FILES = src/version.sh +diff -Nur a/make/unit-cc.pl b/make/unit-cc.pl +--- a/make/unit-cc.pl 2013-03-29 02:16:32.000000000 +0100 ++++ b/make/unit-cc.pl 2013-04-08 11:49:50.149963661 +0200 +@@ -97,7 +97,7 @@ + my $libs = ''; + my $binary = $ENV{RUNCC}; + if ($do_compile) { +- $flags = $ENV{CXXFLAGS}; ++ $flags = $ENV{MYCXXFLAGS}; + $flags =~ s/ -pedantic// if nopedantic($file); + $flags .= ' ' . getcompilerflags($file); + diff --git a/net-irc/inspircd/files/inspircd-2.0.11-init b/net-irc/inspircd/files/inspircd-2.0.11-init new file mode 100644 index 000000000000..d301e3e0ddc3 --- /dev/null +++ b/net-irc/inspircd/files/inspircd-2.0.11-init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/inspircd-2.0.11-init,v 1.1 2013/04/08 10:25:13 nimiux Exp $ + +extra_commands="rehash version" + +depend() { + need net + provide ircd +} + +start() { + ebegin "Starting InspIRCd" + checkpath -d -m 0750 -o inspircd:inspircd /var/run/inspircd + start-stop-daemon --start --quiet --user inspircd \ + --exec /usr/bin/inspircd -- \ + --config /etc/inspircd/inspircd.conf \ + --logfile /var/log/inspircd/ircd.log + eend $? +} + +stop() { + ebegin "Stopping InspIRCd" + start-stop-daemon --stop --quiet --exec /usr/bin/inspircd + eend $? +} + +rehash() { + ebegin "Rehashing InspIRCd" + /usr/lib/inspircd/inspircd.launcher/inspircd rehash + eend $? +} + +version() { + ebegin "Retrieve InspIRCd version" + /usr/lib/inspircd/inspircd.launcher/inspircd version + eend $? +} diff --git a/net-irc/inspircd/inspircd-2.0.11.ebuild b/net-irc/inspircd/inspircd-2.0.11.ebuild new file mode 100644 index 000000000000..addfcb73eae3 --- /dev/null +++ b/net-irc/inspircd/inspircd-2.0.11.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/inspircd-2.0.11.ebuild,v 1.1 2013/04/08 10:25:13 nimiux Exp $ + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd" +HOMEPAGE="http://inspircd.github.com/" +SRC_URI="http://www.github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre" + +RDEPEND=" + dev-lang/perl + ssl? ( dev-libs/openssl ) + geoip? ( dev-libs/geoip ) + gnutls? ( net-libs/gnutls dev-libs/libgcrypt ) + ldap? ( net-nds/openldap ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql-server ) + pcre? ( dev-libs/libpcre ) + sqlite? ( >=dev-db/sqlite-3.0 ) + tre? ( dev-libs/tre )" +DEPEND="${RDEPEND}" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + # Patch the inspircd launcher with the inspircd user + sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die + + epatch "${FILESDIR}/${P}-fix-path-builds.patch" +} + +src_configure() { + local extras="" + + use geoip && extras="${extras}m_geoip.cpp," + use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp," + use mysql && extras="${extras}m_mysql.cpp," + use pcre && extras="${extras}m_regex_pcre.cpp," + use posix && extras="${extras}m_regex_posix.cpp," + use postgres && extras="${extras}m_pgsql.cpp," + use sqlite && extras="${extras}m_sqlite3.cpp," + use tre && extras="${extras}m_regex_tre.cpp," + + if [ -n "${extras}" ]; then + ./configure --disable-interactive --enable-extras=${extras} + fi + + ./configure \ + --with-cc="$(tc-getCXX)" \ + --disable-interactive \ + --prefix="/usr/$(get_libdir)/${PN}" \ + --config-dir="/etc/${PN}" \ + --data-dir="/var/lib/${PN}/data" \ + --log-dir="/var/log/${PN}" \ + --binary-dir="/usr/bin" \ + --module-dir="/usr/$(get_libdir)/${PN}/modules" \ + $(use_enable ssl openssl) $(use_enable gnutls) \ + $(use_enable ipv6) +} + +src_compile() { + emake V=1 LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" +} + +src_install() { + emake INSTUID=${PN} \ + BINPATH="${D}/usr/bin" \ + BASE="${D}/usr/$(get_libdir)/${PN}/inspircd.launcher" \ + MODPATH="${D}/usr/$(get_libdir)/${PN}/modules/" \ + CONPATH="${D}/etc/${PN}" install + + insinto "/usr/include/${PN}" + doins include/* + + diropts -o"${PN}" -g"${PN}" -m0700 + dodir "/var/lib/${PN}" + dodir "/var/lib/${PN}/data" + + newinitd "${FILESDIR}/${P}-init" "${PN}" + keepdir "/var/log/${PN}"/ +} + +pkg_postinst() { + elog "Before starting ${PN} the first time, you should create" + elog "the /etc/${PN}/${PN}.conf file." + elog "You can find example configuration files under /etc/${PN}" + elog "Read the ${PN}.conf.example file carefully before " + elog "(re)starting the service." + elog +} |