1 |
nimiux 12/07/07 12:35:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: inspircd-2.0.7.ebuild |
5 |
Log: |
6 |
[net-irc/inspircd] Revision bump to 2.0.7. |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.51 net-irc/inspircd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.51&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.51&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?r1=1.50&r2=1.51 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v |
20 |
retrieving revision 1.50 |
21 |
retrieving revision 1.51 |
22 |
diff -u -r1.50 -r1.51 |
23 |
--- ChangeLog 23 Jun 2012 17:16:04 -0000 1.50 |
24 |
+++ ChangeLog 7 Jul 2012 12:35:20 -0000 1.51 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-irc/inspircd |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.50 2012/06/23 17:16:04 nimiux Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.51 2012/07/07 12:35:20 nimiux Exp $ |
30 |
+ |
31 |
+*inspircd-2.0.7 (07 Jul 2012) |
32 |
+ |
33 |
+ 07 Jul 2012; Chema Alonso <nimiux@g.o> +inspircd-2.0.7.ebuild, |
34 |
+ +files/inspircd-2.0.7-fix-path-builds.patch, +files/inspircd-2.0.7-init: |
35 |
+ Revision bump to 2.0.7 |
36 |
|
37 |
23 Jun 2012; Chema Alonso <nimiux@g.o> inspircd-2.0.6_rc1.ebuild, |
38 |
+files/inspircd-2.0.6_rc1-gcc-4.7.patch, metadata.xml: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-irc/inspircd/inspircd-2.0.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-2.0.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-2.0.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: inspircd-2.0.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 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.7.ebuild,v 1.1 2012/07/07 12:35:20 nimiux Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit eutils flag-o-matic multilib |
56 |
|
57 |
DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd" |
58 |
HOMEPAGE="http://inspircd.github.com/" |
59 |
SRC_URI="http://github.com/inspircd/inspircd/downloads/InspIRCd-${PV}.tar.bz2" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="geoip gnutls ipv6 ldap mysql postgres sqlite ssl" |
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 |
sqlite? ( >=dev-db/sqlite-3.0 )" |
75 |
DEPEND="${RDEPEND}" |
76 |
|
77 |
S="${WORKDIR}/${PN}" |
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}/${PF}-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 ldap && extras="${extras}m_ldapauth.cpp," |
100 |
use mysql && extras="${extras}m_mysql.cpp," |
101 |
use postgres && extras="${extras}m_pgsql.cpp," |
102 |
use sqlite && extras="${extras}m_sqlite3.cpp," |
103 |
use ssl && extras="${extras}m_ssl_openssl.cpp," |
104 |
|
105 |
# allow inspircd to be built by root |
106 |
touch .force-root-ok || die |
107 |
|
108 |
if [ -n "${extras}" ]; then |
109 |
./configure --disable-interactive \ |
110 |
--enable-extras=${extras} || die |
111 |
fi |
112 |
|
113 |
use !ssl && essl="" |
114 |
use !gnutls && egnutls="" |
115 |
use ipv6 && dipv6="" |
116 |
|
117 |
./configure \ |
118 |
--disable-interactive \ |
119 |
--prefix="/usr/$(get_libdir)/${PN}" \ |
120 |
--config-dir="/etc/${PN}" \ |
121 |
--binary-dir="/usr/bin" \ |
122 |
--module-dir="/usr/$(get_libdir)/${PN}/modules" \ |
123 |
${essl} ${egnutls} ${dipv6} || die |
124 |
} |
125 |
|
126 |
src_compile() { |
127 |
append-cxxflags -Iinclude -fPIC |
128 |
emake LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
emake INSTUID=${PN} \ |
133 |
BINPATH="${D}/usr/bin" \ |
134 |
BASE="${D}/usr/$(get_libdir)/${PN}/inspircd.launcher" \ |
135 |
MODPATH="${D}/usr/$(get_libdir)/${PN}/modules/" \ |
136 |
CONPATH="${D}/etc/${PN}" install |
137 |
|
138 |
insinto /usr/include/"${PN}" |
139 |
doins include/* |
140 |
|
141 |
diropts -o"${PN}" -g"${PN}" |
142 |
dodir "/var/run/${PN}" "/var/lib/${PN}/data" |
143 |
|
144 |
newinitd "${FILESDIR}/${PF}-init" "${PN}" |
145 |
keepdir "/var/log/${PN}"/ |
146 |
} |
147 |
|
148 |
pkg_postinst() { |
149 |
elog "Before starting ${PN} the first time you should create" |
150 |
elog "the /etc/${PN}/${PN}.conf file." |
151 |
elog "You can find example configuration files under /etc/${PN}" |
152 |
elog "Read the ${PN}.conf.example file carefully before starting " |
153 |
elog "the service." |
154 |
elog |
155 |
} |