1 |
fauli 10/11/05 11:37:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: inspircd-1.2.8.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.31 net-irc/inspircd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.31&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?rev=1.31&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/ChangeLog?r1=1.30&r2=1.31 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v |
19 |
retrieving revision 1.30 |
20 |
retrieving revision 1.31 |
21 |
diff -u -r1.30 -r1.31 |
22 |
--- ChangeLog 17 Jun 2010 22:02:18 -0000 1.30 |
23 |
+++ ChangeLog 5 Nov 2010 11:37:38 -0000 1.31 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-irc/inspircd |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.30 2010/06/17 22:02:18 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.31 2010/11/05 11:37:38 fauli Exp $ |
29 |
+ |
30 |
+*inspircd-1.2.8 (05 Nov 2010) |
31 |
+ |
32 |
+ 05 Nov 2010; Christian Faulhammer <fauli@g.o> |
33 |
+ +inspircd-1.2.8.ebuild: |
34 |
+ version bump |
35 |
|
36 |
17 Jun 2010; Patrick Lauer <patrick@g.o> inspircd-1.1.19.ebuild: |
37 |
Migrating away from deprecated postgres virtuals |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-irc/inspircd/inspircd-1.2.8.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-1.2.8.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/inspircd/inspircd-1.2.8.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: inspircd-1.2.8.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/inspircd-1.2.8.ebuild,v 1.1 2010/11/05 11:37:38 fauli Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils toolchain-funcs multilib |
54 |
|
55 |
DESCRIPTION="InspIRCd - The Modular C++ IRC Daemon" |
56 |
HOMEPAGE="http://www.inspircd.org/" |
57 |
SRC_URI="http://www.inspircd.org/downloads/InspIRCd-${PV}.tar.bz2 |
58 |
mirror://sourceforge/${PN}/InspIRCd-${PV}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~x86" |
63 |
IUSE="openssl gnutls ipv6 mysql postgres sqlite zlib ldap" |
64 |
|
65 |
RDEPEND=" |
66 |
dev-lang/perl |
67 |
openssl? ( dev-libs/openssl ) |
68 |
gnutls? ( net-libs/gnutls ) |
69 |
mysql? ( virtual/mysql ) |
70 |
postgres? ( dev-db/postgresql-server ) |
71 |
sqlite? ( >=dev-db/sqlite-3.0 ) |
72 |
ldap? ( net-nds/openldap )" |
73 |
DEPEND="${RDEPEND}" |
74 |
|
75 |
S="${WORKDIR}/inspircd" |
76 |
|
77 |
src_prepare() { |
78 |
local SQL=0 |
79 |
cd src/modules || die |
80 |
|
81 |
if use zlib ; then |
82 |
cp extra/m_ziplink.cpp . || die |
83 |
fi |
84 |
|
85 |
if use openssl ; then |
86 |
cp extra/m_ssl_openssl.cpp . || die |
87 |
fi |
88 |
|
89 |
if use gnutls ; then |
90 |
cp extra/m_ssl_gnutls.cpp . || die |
91 |
fi |
92 |
|
93 |
if use ldap ; then |
94 |
cp extra/m_ldapauth.cpp . || die |
95 |
fi |
96 |
|
97 |
if use mysql ; then |
98 |
SQL=1 |
99 |
cp extra/m_mysql.cpp . || die |
100 |
fi |
101 |
if use postgres ; then |
102 |
SQL=1 |
103 |
cp extra/m_pgsql.cpp . || die |
104 |
fi |
105 |
if use sqlite ; then |
106 |
SQL=1 |
107 |
cp extra/m_sqlite3.cpp . || die |
108 |
fi |
109 |
if [ ${SQL} -eq 1 ] ; then |
110 |
cp extra/m_sql{auth.cpp,log.cpp,oper.cpp,utils.cpp,utils.h,v2.h} . || die |
111 |
fi |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
# ./configure doesn't know --disable-gnutls, -ipv6 and -openssl options, |
116 |
# so should be used only --enable-like. |
117 |
local myconf="" |
118 |
use gnutls && myconf="--enable-gnutls" |
119 |
use ipv6 && myconf="${myconf} --enable-ipv6 --enable-remote-ipv6" |
120 |
use openssl && myconf="${myconf} --enable-openssl" |
121 |
|
122 |
# allow inspircd to be built by root |
123 |
touch .force-root-ok || die |
124 |
|
125 |
./configure ${myconf} \ |
126 |
--enable-epoll \ |
127 |
--prefix="/usr/$(get_libdir)/inspircd" \ |
128 |
--config-dir="/etc/inspircd" \ |
129 |
--binary-dir="/usr/bin" \ |
130 |
--library-dir="/usr/$(get_libdir)/inspircd" \ |
131 |
--module-dir="/usr/$(get_libdir)/inspircd/modules" \ |
132 |
|| die "configure failed" |
133 |
./configure -modupdate || die "modupdate failed" |
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
emake CC="$(tc-getCXX)" || die "emake failed" |
138 |
} |
139 |
|
140 |
src_install() { |
141 |
# the inspircd buildsystem does not create these, its configure script |
142 |
# does. so, we have to make sure they are there. |
143 |
dodir /usr/$(get_libdir)/inspircd || die |
144 |
dodir /usr/$(get_libdir)/inspircd/modules || die |
145 |
dodir /etc/inspircd || die |
146 |
dodir /var/log/inspircd || die |
147 |
dodir /usr/include/inspircd || die |
148 |
|
149 |
emake install \ |
150 |
LIBPATH="${D}/usr/$(get_libdir)/inspircd/" \ |
151 |
MODPATH="${D}/usr/$(get_libdir)/inspircd/modules/" \ |
152 |
CONPATH="${D}/etc/inspircd" \ |
153 |
BINPATH="${D}/usr/bin" \ |
154 |
BASE="${D}/usr/$(get_libdir)/inspircd/inspircd.launcher" || die |
155 |
|
156 |
insinto /usr/include/inspircd/ |
157 |
doins include/* || die |
158 |
|
159 |
newinitd "${FILESDIR}"/init.d_inspircd inspircd || die |
160 |
|
161 |
keepdir "/var/log/inspircd/" |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
enewgroup inspircd |
166 |
enewuser inspircd -1 -1 -1 inspircd |
167 |
chown -R inspircd:inspircd "${ROOT}"/etc/inspircd |
168 |
chmod 700 "${ROOT}"/etc/inspircd |
169 |
|
170 |
chmod 750 "${ROOT}"/var/log/inspircd |
171 |
chown -R inspircd:inspircd "${ROOT}"/var/log/inspircd |
172 |
|
173 |
chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/inspircd |
174 |
chmod -R 755 "${ROOT}"/usr/$(get_libdir)/inspircd |
175 |
|
176 |
chmod -R 755 "${ROOT}"/usr/bin/inspircd |
177 |
} |