1 |
cla 07/12/25 12:30:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ircd-hybrid-7.2.3.ebuild |
5 |
Log: |
6 |
Version bump. Thanks to James Spahlinger (eagle-101 on irc) for patches |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.27 net-irc/ircd-hybrid/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/ircd-hybrid/ChangeLog?rev=1.27&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/ircd-hybrid/ChangeLog?rev=1.27&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/ircd-hybrid/ChangeLog?r1=1.26&r2=1.27 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v |
19 |
retrieving revision 1.26 |
20 |
retrieving revision 1.27 |
21 |
diff -u -r1.26 -r1.27 |
22 |
--- ChangeLog 21 May 2007 10:29:30 -0000 1.26 |
23 |
+++ ChangeLog 25 Dec 2007 12:30:31 -0000 1.27 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-irc/ircd-hybrid |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.26 2007/05/21 10:29:30 welp Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.27 2007/12/25 12:30:31 cla Exp $ |
29 |
+ |
30 |
+*ircd-hybrid-7.2.3 (25 Dec 2007) |
31 |
+ |
32 |
+ 25 Dec 2007; Dawid Węgliński <cla@g.o> |
33 |
+ +files/7.2.3-default-config.patch, +ircd-hybrid-7.2.3.ebuild: |
34 |
+ Version bump. Thanks to James Spahlinger <intelligent.nerd@×××××.com> for |
35 |
+ patches. |
36 |
|
37 |
21 May 2007; Peter Weller <welp@g.o> ircd-hybrid-7.2.2.ebuild: |
38 |
multilib-strict fix for amd64 - bug 178519 |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ircd-hybrid-7.2.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild,v 1.1 2007/12/25 12:30:31 cla Exp $ |
52 |
|
53 |
inherit eutils multilib toolchain-funcs |
54 |
|
55 |
# Additional configuration options |
56 |
MAX_NICK_LENGTH=30 |
57 |
MAX_CLIENTS=512 |
58 |
MAX_TOPIC_LENGTH=390 |
59 |
ENABLE_SMALL_NETWORK=0 |
60 |
ENABLE_EFNET=0 |
61 |
|
62 |
IUSE="debug ssl static zlib contrib" |
63 |
|
64 |
DESCRIPTION="IRCD-Hybrid - High Performance Internet Relay Chat" |
65 |
HOMEPAGE="http://ircd-hybrid.com/" |
66 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" |
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~ppc ~x86" |
70 |
|
71 |
RDEPEND=" |
72 |
zlib? ( >=sys-libs/zlib-1.1.4-r2 ) |
73 |
ssl? ( >=dev-libs/openssl-0.9.7d )" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
>=sys-devel/flex-2.5.4a-r5 |
77 |
>=sys-devel/bison-1.875 |
78 |
>=sys-devel/gettext-0.12.1" |
79 |
|
80 |
pkg_setup() { |
81 |
enewgroup hybrid |
82 |
enewuser hybrid -1 -1 -1 hybrid |
83 |
} |
84 |
|
85 |
src_unpack() { |
86 |
unpack ${A} |
87 |
epatch "${FILESDIR}"/7.2.3-default-config.patch |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
local myconf="" |
92 |
|
93 |
ewarn |
94 |
ewarn "Server administrators are encouraged to customize some variables in" |
95 |
ewarn "the ebuild if actually deploying hybrid in an IRC network." |
96 |
ewarn "The values below reflect a usable configuration but may not be" |
97 |
ewarn "suitable for large networks in production environments." |
98 |
ewarn |
99 |
ewarn "To change the default settings below you must edit the ebuild." |
100 |
ewarn |
101 |
ewarn "Maximum nick length = ${MAX_NICK_LENGTH}" |
102 |
ewarn " topic length = ${MAX_TOPIC_LENGTH}" |
103 |
ewarn " number of clients = ${MAX_CLIENTS}" |
104 |
ewarn |
105 |
|
106 |
if [ ${ENABLE_SMALL_NETWORK} -eq 1 ] |
107 |
then |
108 |
einfo "Configuring for small networks." |
109 |
myconf="${myconf} --enable-small-net" |
110 |
else |
111 |
myconf="${myconf} --disable-small-net" |
112 |
fi |
113 |
if [ ${ENABLE_EFNET} -eq 1 ] |
114 |
then |
115 |
einfo "Configuring for Efnet." |
116 |
myconf="${myconf} --enable-efnet" |
117 |
else |
118 |
myconf="${myconf} --disable-efnet" |
119 |
fi |
120 |
|
121 |
epause 5 |
122 |
|
123 |
econf \ |
124 |
--exec-prefix=/usr \ |
125 |
--bindir=/usr/bin \ |
126 |
--sysconfdir=/etc/ircd \ |
127 |
--includedir=/usr/include \ |
128 |
--with-nicklen=${MAX_NICK_LENGTH} \ |
129 |
--with-topiclen=${MAX_TOPIC_LENGTH} \ |
130 |
--with-maxconn=${MAX_CLIENTS} \ |
131 |
$(use_enable zlib) \ |
132 |
$(use_enable ssl openssl) \ |
133 |
$(use_enable !static shared-modules) \ |
134 |
$(use_enable debug assert) \ |
135 |
${myconf} \ |
136 |
|| die "econf failed" |
137 |
emake || die "emake failed" |
138 |
|
139 |
# Build respond binary for using rsa keys instead of plain text oper passwords. |
140 |
use ssl && $(tc-getCC) ${CFLAGS} -o respond tools/rsa_respond/respond.c -lcrypto |
141 |
|
142 |
# Build contrib Modules if requested by useflag contrib |
143 |
if use contrib; then |
144 |
cd "${S}"/contrib |
145 |
make || dir "make in contrib failed" |
146 |
fi |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
dodir /usr/$(get_libdir)/ircd-hybrid-7 |
151 |
keepdir /var/run/ircd /var/log/ircd |
152 |
|
153 |
make DESTDIR="${D}" install || die "make install failed" |
154 |
|
155 |
insinto /usr/share/ircd-hybrid-7/messages |
156 |
doins messages/*.lang || die "doins failed" |
157 |
|
158 |
mv "${D}"/usr/{modules,$(get_libdir)/ircd-hybrid-7} |
159 |
mv "${D}"/usr/bin/{,ircd-}mkpasswd |
160 |
mv "${D}"/etc/ircd/{example,ircd}.conf |
161 |
|
162 |
sed -i \ |
163 |
-e s:/usr/local/ircd/modules:/usr/$(get_libdir)/ircd-hybrid-7/modules: \ |
164 |
"${D}"/etc/ircd/ircd.conf |
165 |
|
166 |
use ssl && dosbin "${S}"/respond |
167 |
|
168 |
dodoc BUGS ChangeLog Hybrid-team RELNOTES TODO |
169 |
docinto doc |
170 |
dodoc doc/*.txt doc/server-version-info |
171 |
docinto doc/technical |
172 |
dodoc doc/technical/* |
173 |
|
174 |
newinitd "${FILESDIR}"/init.d_ircd-7.2.1 ircd |
175 |
|
176 |
# Install contrib Modules if requested by useflag contrib |
177 |
if use contrib; then |
178 |
cd "${S}"/contrib |
179 |
make DESTDIR="${D}" install || die "make install contrib failed" |
180 |
fi |
181 |
} |
182 |
|
183 |
pkg_postinst() { |
184 |
chown -R hybrid:hybrid "${ROOT}"/etc/ircd "${ROOT}"/var/{log,run}/ircd |
185 |
chmod 700 "${ROOT}"/etc/ircd "${ROOT}"/var/log/ircd |
186 |
|
187 |
if use ssl |
188 |
then |
189 |
elog "To create an RSA keypair for crypted links execute:" |
190 |
elog "emerge --config =${CATEGORY}/${PF}" |
191 |
fi |
192 |
} |
193 |
|
194 |
pkg_config() { |
195 |
einfo "Generating 2048 bit RSA keypair /etc/ircd/ircd.rsa." |
196 |
einfo "The public key is stored in /etc/ircd/ircd.pub." |
197 |
|
198 |
openssl genrsa -rand "${ROOT}"/var/run/random-seed -out "${ROOT}"/etc/ircd/ircd.rsa 2048 |
199 |
openssl rsa -in "${ROOT}"/etc/ircd/ircd.rsa -pubout -out "${ROOT}"/etc/ircd/ircd.pub |
200 |
|
201 |
chown hybrid:hybrid "${ROOT}"/etc/ircd/ircd.rsa "${ROOT}"/etc/ircd/ircd.pub |
202 |
chmod 600 "${ROOT}"/etc/ircd/ircd.rsa |
203 |
chmod 644 "${ROOT}"/etc/ircd/ircd.pub |
204 |
|
205 |
einfo "Update the RSA keypair in /etc/ircd/ircd.conf and /REHASH." |
206 |
} |
207 |
|
208 |
|
209 |
|
210 |
-- |
211 |
gentoo-commits@g.o mailing list |