Gentoo Archives: gentoo-commits

From: "Nathan Phillip Brink (binki)" <binki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/unrealircd: metadata.xml ChangeLog unrealircd-3.2.9_rc2.ebuild
Date: Wed, 27 Jul 2011 12:41:30
Message-Id: 20110727124119.CD5FC20051@flycatcher.gentoo.org
1 binki 11/07/27 12:41:19
2
3 Modified: metadata.xml ChangeLog
4 Added: unrealircd-3.2.9_rc2.ebuild
5 Log:
6 Bump to unrealircd-3.2.9_rc2 with a refactored ebuild using EAPI=4, taking advantage of a somewhat-fixed ./configure, and new initscripts.
7
8 (Portage version: 2.2.0_alpha46-r1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 net-irc/unrealircd/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/metadata.xml?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/metadata.xml?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/metadata.xml?r1=1.4&r2=1.5
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/unrealircd/metadata.xml,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- metadata.xml 26 Jun 2011 16:59:45 -0000 1.4
24 +++ metadata.xml 27 Jul 2011 12:41:19 -0000 1.5
25 @@ -7,6 +7,7 @@
26 <name>Nathan Phillip Brink</name>
27 </maintainer>
28 <use>
29 + <flag name='extban-stacking'>Enable extended channel bans (such as +b ~c: and +b ~n:) to contain other extended bans instead of just hostmasks.</flag>
30 <flag name='hub'>Enable hub support</flag>
31 <flag name='spoof'>Enable the spoof protection</flag>
32 <flag name='prefixaq'>Enable chanadmin and chanowner prefixes</flag>
33
34
35
36 1.87 net-irc/unrealircd/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?rev=1.87&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?rev=1.87&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?r1=1.86&r2=1.87
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v
45 retrieving revision 1.86
46 retrieving revision 1.87
47 diff -u -r1.86 -r1.87
48 --- ChangeLog 26 Jun 2011 16:59:45 -0000 1.86
49 +++ ChangeLog 27 Jul 2011 12:41:19 -0000 1.87
50 @@ -1,6 +1,14 @@
51 # ChangeLog for net-irc/unrealircd
52 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.86 2011/06/26 16:59:45 binki Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.87 2011/07/27 12:41:19 binki Exp $
55 +
56 +*unrealircd-3.2.9_rc2 (27 Jul 2011)
57 +
58 + 27 Jul 2011; Nathan Phillip Brink <binki@g.o>
59 + +unrealircd-3.2.9_rc2.ebuild, +files/unrealircd.confd-r1,
60 + +files/unrealircd.initd, metadata.xml:
61 + Bump to unrealircd-3.2.9_rc2 with a refactored ebuild using EAPI=4, taking
62 + advantage of a somewhat-fixed ./configure, and new initscripts.
63
64 26 Jun 2011; Nathan Phillip Brink <binki@g.o> metadata.xml:
65 Set myself (binki) as unrealircd's maintainer.
66
67
68
69 1.1 net-irc/unrealircd/unrealircd-3.2.9_rc2.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.9_rc2.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.9_rc2.ebuild?rev=1.1&content-type=text/plain
73
74 Index: unrealircd-3.2.9_rc2.ebuild
75 ===================================================================
76 # Copyright 1999-2011 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.9_rc2.ebuild,v 1.1 2011/07/27 12:41:19 binki Exp $
79
80 EAPI=4
81
82 inherit eutils autotools ssl-cert versionator multilib
83
84 MY_P=Unreal${PV/_/-}
85
86 DESCRIPTION="An advanced Internet Relay Chat daemon"
87 HOMEPAGE="http://www.unrealircd.com/"
88 SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz"
89
90 SLOT="0"
91 LICENSE="GPL-2"
92 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux"
93 IUSE="curl ipv6 +extban-stacking +operoverride +spoof operoverride-verify +prefixaq
94 showlistmodes shunnotices ssl topicisnuhost +usermod zlib"
95
96 RDEPEND="ssl? ( dev-libs/openssl )
97 zlib? ( sys-libs/zlib )
98 curl? ( net-misc/curl[ares] )
99 dev-libs/tre
100 >=net-dns/c-ares-1.7"
101 DEPEND="${RDEPEND}
102 >=sys-apps/sed-4
103 >=dev-util/pkgconfig-0.25"
104
105 S=${WORKDIR}/Unreal$(get_version_component_range 1-2)
106
107 pkg_setup() {
108 enewuser unrealircd
109 }
110
111 src_prepare() {
112 # QA check against bundled pkgs
113 rm extras/*.gz || die
114
115 sed -i \
116 -e "s:ircd\.pid:${EPREFIX}/var/run/unrealircd/ircd.pid:" \
117 -e "s:ircd\.log:${EPREFIX}/var/log/unrealircd/ircd.log:" \
118 -e "s:debug\.log:${EPREFIX}/var/log/unrealircd/debug.log:" \
119 -e "s:ircd\.tune:${EPREFIX}/var/lib/unrealircd/ircd.tune:" \
120 include/config.h \
121 || die "sed failed"
122 }
123
124 src_configure() {
125 econf \
126 --with-listen=5 \
127 --with-dpath="${EPREFRIX}"/etc/unrealircd \
128 --with-spath="${EPREFIX}"/usr/bin/unrealircd \
129 --with-nick-history=2000 \
130 --with-sendq=3000000 \
131 --with-bufferpool=18 \
132 --with-permissions=0600 \
133 --with-fd-setsize=1024 \
134 --with-system-cares \
135 --with-system-tre \
136 --enable-dynamic-linking \
137 $(use_enable curl libcurl "${EPREFIX}"/usr) \
138 $(use_enable ipv6 inet6) \
139 $(use_enable prefixaq) \
140 $(use_enable spoof nospoof) \
141 $(use_enable ssl ssl "${EPREFIX}"/usr) \
142 $(use_enable zlib ziplinks "${EPREFIX}"/usr) \
143 $(use_with showlistmodes) \
144 $(use_with topicisnuhost) \
145 $(use_with shunnotices) \
146 $(use_with !operoverride no-operoverride) \
147 $(use_with operoverride-verify) \
148 $(use_with !usermod disableusermod) \
149 $(use_with !extban-stacking disable-extendedban-stacking)
150 }
151
152 src_install() {
153 keepdir /var/{lib,log,run}/unrealircd
154
155 newbin src/ircd unrealircd
156
157 exeinto /usr/$(get_libdir)/unrealircd/modules
158 doexe src/modules/*.so
159
160 dodir /etc/unrealircd
161 dosym /var/lib/unrealircd /etc/unrealircd/tmp
162
163 insinto /etc/unrealircd
164 doins {badwords.*,help,spamfilter,dccallow}.conf
165 newins doc/example.conf unrealircd.conf
166
167 insinto /etc/unrealircd/aliases
168 doins aliases/*.conf
169 insinto /etc/unrealircd/networks
170 doins networks/*.network
171
172 local so_suffix=so
173 [[ ${CHOST} == -*mingw* ]] && so_suffix=dll
174 sed -i \
175 -e s:src/modules:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \
176 -e '/loadmodule.*\.'${so_suffix}'/s;^//;;' \
177 -e s:ircd\\.log:"${EPREFIX}"/var/log/unrealircd/ircd.log: \
178 "${ED}"/etc/unrealircd/unrealircd.conf \
179 || die
180
181 dodoc \
182 Changes Donation Unreal.nfo networks/makenet \
183 ircdcron/{ircd.cron,ircdchk} \
184 || die "dodoc failed"
185 dohtml doc/*.html
186
187 newinitd "${FILESDIR}"/unrealircd.initd unrealircd
188 newconfd "${FILESDIR}"/unrealircd.confd-r1 unrealircd
189
190 fperms 700 /etc/unrealircd
191 fowners -R unrealircd /{etc,var/{lib,log,run}}/unrealircd
192 }
193
194 pkg_postinst() {
195 # Move docert call from scr_install() to install_cert in pkg_postinst for
196 # bug #201682
197 if use ssl ; then
198 if [[ ! -f "${EROOT}"/etc/unrealircd/server.cert.key ]]; then
199 install_cert /etc/unrealircd/server.cert
200 chown unrealircd "${EROOT}"/etc/unrealircd/server.cert.*
201 ln -snf server.cert.key "${EROOT}"/etc/unrealircd/server.key.pem
202 fi
203 fi
204
205 local unrealircd_conf="${EROOT}"/etc/unrealircd/unrealircd.conf
206 # Fix up the default cloak keys.
207 if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then
208 ebegin "Generating cloak-keys"
209 local keys=(
210 "$(unrealircd -k 2>&1 | sed -n -e 2p)"
211 "$(unrealircd -k 2>&1 | sed -n -e 2p)"
212 "$(unrealircd -k 2>&1 | sed -n -e 2p)"
213 )
214 [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]
215 eend $?
216
217 ebegin "Substituting cloak-keys into ${unrealircd_conf}"
218 sed -i \
219 -e '/cloak-keys/ {
220 n
221 s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/
222 n
223 s/"and another one";/"'"${keys[1]}"'";/
224 n
225 s/"and another one";/"'"${keys[2]}"'";/
226 }' \
227 "${unrealircd_conf}"
228 eend $?
229 fi
230
231 elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
232 elog
233 elog "You can find example cron scripts here:"
234 elog " /usr/share/doc/${PF}/ircd.cron.gz"
235 elog " /usr/share/doc/${PF}/ircdchk.gz"
236 elog
237 elog "You can also use /etc/init.d/unrealircd to start at boot"
238 }