Gentoo Archives: gentoo-commits

From: "JosA MarAa Alonso (nimiux)" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/inspircd: inspircd-2.0.14.ebuild ChangeLog
Date: Sat, 31 Aug 2013 18:50:19
Message-Id: 20130831185012.317612004B@flycatcher.gentoo.org
1 nimiux 13/08/31 18:50:12
2
3 Modified: ChangeLog
4 Added: inspircd-2.0.14.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key D628E536)
9
10 Revision Changes Path
11 1.87 net-irc/inspircd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 31 Aug 2013 15:27:51 -0000 1.86
24 +++ ChangeLog 31 Aug 2013 18:50:12 -0000 1.87
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-irc/inspircd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.86 2013/08/31 15:27:51 nimiux Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.87 2013/08/31 18:50:12 nimiux Exp $
30 +
31 +*inspircd-2.0.14 (31 Aug 2013)
32 +
33 + 31 Aug 2013; Chema Alonso <nimiux@g.o> +inspircd-2.0.14.ebuild,
34 + +files/inspircd-2.0.14-fix-path-builds.patch, +files/inspircd-2.0.14-init:
35 + Version bump
36
37 31 Aug 2013; Chema Alonso <nimiux@g.o> -inspircd-2.0.11.ebuild,
38 -files/inspircd-2.0.11-fix-path-builds.patch, -files/inspircd-2.0.11-init,
39
40
41
42 1.1 net-irc/inspircd/inspircd-2.0.14.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-2.0.14.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-2.0.14.ebuild?rev=1.1&content-type=text/plain
46
47 Index: inspircd-2.0.14.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/inspircd-2.0.14.ebuild,v 1.1 2013/08/31 18:50:11 nimiux Exp $
52
53 EAPI=5
54
55 inherit eutils multilib toolchain-funcs
56
57 DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
58 HOMEPAGE="http://inspircd.github.com/"
59 SRC_URI="http://www.github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="geoip gnutls ipv6 ldap mysql pcre posix postgres sqlite ssl tre"
65
66 RDEPEND="
67 dev-lang/perl
68 ssl? ( dev-libs/openssl )
69 geoip? ( dev-libs/geoip )
70 gnutls? ( net-libs/gnutls dev-libs/libgcrypt )
71 ldap? ( net-nds/openldap )
72 mysql? ( virtual/mysql )
73 postgres? ( dev-db/postgresql-server )
74 pcre? ( dev-libs/libpcre )
75 sqlite? ( >=dev-db/sqlite-3.0 )
76 tre? ( dev-libs/tre )"
77 DEPEND="${RDEPEND}"
78
79 pkg_setup() {
80 enewgroup ${PN}
81 enewuser ${PN} -1 -1 -1 ${PN}
82 }
83
84 src_prepare() {
85 # Patch the inspircd launcher with the inspircd user
86 sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
87
88 epatch "${FILESDIR}/${P}-fix-path-builds.patch"
89 }
90
91 src_configure() {
92 local extras=""
93 local essl="--enable-openssl"
94 local egnutls="--enable-gnutls"
95 local dipv6="--disable-ipv6"
96
97 use geoip && extras="${extras}m_geoip.cpp,"
98 use gnutls && extras="${extras}m_ssl_gnutls.cpp,"
99 use ipv6 && dipv6=""
100 use ldap && extras="${extras}m_ldapauth.cpp,m_ldapoper.cpp,"
101 use mysql && extras="${extras}m_mysql.cpp,"
102 use pcre && extras="${extras}m_regex_pcre.cpp,"
103 use posix && extras="${extras}m_regex_posix.cpp,"
104 use postgres && extras="${extras}m_pgsql.cpp,"
105 use sqlite && extras="${extras}m_sqlite3.cpp,"
106 use ssl && extras="${extras}m_ssl_openssl.cpp,"
107 use tre && extras="${extras}m_regex_tre.cpp,"
108
109 use !ssl && essl=""
110 use !gnutls && egnutls=""
111
112 if [ -n "${extras}" ]; then
113 ./configure --disable-interactive --enable-extras=${extras}
114 fi
115
116 ./configure \
117 --with-cc="$(tc-getCXX)" \
118 --disable-interactive \
119 --prefix="/usr/$(get_libdir)/${PN}" \
120 --config-dir="/etc/${PN}" \
121 --data-dir="/var/lib/${PN}/data" \
122 --log-dir="/var/log/${PN}" \
123 --binary-dir="/usr/bin" \
124 --module-dir="/usr/$(get_libdir)/${PN}/modules" \
125 ${essl} ${egnutls} ${dipv6} || die
126 }
127
128 src_compile() {
129 emake V=1 LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}"
130 }
131
132 src_install() {
133 emake INSTUID=${PN} \
134 BINPATH="${D}/usr/bin" \
135 BASE="${D}/usr/$(get_libdir)/${PN}/inspircd.launcher" \
136 MODPATH="${D}/usr/$(get_libdir)/${PN}/modules/" \
137 CONPATH="${D}/etc/${PN}" install
138
139 insinto "/usr/include/${PN}"
140 doins include/*
141
142 diropts -o"${PN}" -g"${PN}" -m0700
143 dodir "/var/lib/${PN}"
144 dodir "/var/lib/${PN}/data"
145
146 newinitd "${FILESDIR}/${P}-init" "${PN}"
147 keepdir "/var/log/${PN}"/
148 }
149
150 pkg_postinst() {
151 elog "Before starting ${PN} the first time, you should create"
152 elog "the /etc/${PN}/${PN}.conf file."
153 elog "You can find example configuration files under /etc/${PN}"
154 elog "Read the ${PN}.conf.example file carefully before "
155 elog "(re)starting the service."
156 elog
157 }