1 |
jdhore 12/12/26 18:54:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: unrealircd-3.2.10.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha149/cvs/Linux i686, signed Manifest commit with key 23E9E900) |
9 |
|
10 |
Revision Changes Path |
11 |
1.97 net-irc/unrealircd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?rev=1.97&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?rev=1.97&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/ChangeLog?r1=1.96&r2=1.97 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v |
20 |
retrieving revision 1.96 |
21 |
retrieving revision 1.97 |
22 |
diff -u -r1.96 -r1.97 |
23 |
--- ChangeLog 3 May 2012 06:27:13 -0000 1.96 |
24 |
+++ ChangeLog 26 Dec 2012 18:54:02 -0000 1.97 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-irc/unrealircd |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.96 2012/05/03 06:27:13 jdhore Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.97 2012/12/26 18:54:02 jdhore Exp $ |
30 |
+ |
31 |
+*unrealircd-3.2.10 (26 Dec 2012) |
32 |
+ |
33 |
+ 26 Dec 2012; Jeff Horelick <jdhore@g.o> +unrealircd-3.2.10.ebuild, |
34 |
+ metadata.xml: |
35 |
+ Version bump |
36 |
|
37 |
03 May 2012; Jeff Horelick <jdhore@g.o> unrealircd-3.2.9.ebuild: |
38 |
dev-util/pkgconfig -> virtual/pkgconfig |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-irc/unrealircd/unrealircd-3.2.10.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.10.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.10.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: unrealircd-3.2.10.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/unrealircd/unrealircd-3.2.10.ebuild,v 1.1 2012/12/26 18:54:02 jdhore Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit eutils ssl-cert versionator multilib user |
56 |
|
57 |
MY_P=Unreal${PV/_/-} |
58 |
|
59 |
DESCRIPTION="An advanced Internet Relay Chat daemon" |
60 |
HOMEPAGE="http://www.unrealircd.com/" |
61 |
SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz" |
62 |
|
63 |
SLOT="0" |
64 |
LICENSE="GPL-2" |
65 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux" |
66 |
IUSE="curl ipv6 +extban-stacking +operoverride operoverride-verify +prefixaq |
67 |
showlistmodes shunnotices ssl topicisnuhost +usermod zlib" |
68 |
|
69 |
RDEPEND="ssl? ( dev-libs/openssl ) |
70 |
zlib? ( sys-libs/zlib ) |
71 |
curl? ( net-misc/curl[ares] ) |
72 |
dev-libs/tre |
73 |
>=net-dns/c-ares-1.7" |
74 |
DEPEND="${RDEPEND} |
75 |
>=sys-apps/sed-4 |
76 |
virtual/pkgconfig" |
77 |
|
78 |
S=${WORKDIR}/Unreal$(get_version_component_range 1-3) |
79 |
|
80 |
pkg_setup() { |
81 |
enewuser unrealircd |
82 |
} |
83 |
|
84 |
src_prepare() { |
85 |
# QA check against bundled pkgs |
86 |
rm extras/*.gz || die |
87 |
|
88 |
sed -i \ |
89 |
-e "s:ircd\.pid:${EPREFIX}/var/run/unrealircd/ircd.pid:" \ |
90 |
-e "s:ircd\.log:${EPREFIX}/var/log/unrealircd/ircd.log:" \ |
91 |
-e "s:debug\.log:${EPREFIX}/var/log/unrealircd/debug.log:" \ |
92 |
-e "s:ircd\.tune:${EPREFIX}/var/lib/unrealircd/ircd.tune:" \ |
93 |
include/config.h \ |
94 |
|| die "sed failed" |
95 |
} |
96 |
|
97 |
src_configure() { |
98 |
econf \ |
99 |
--with-listen=5 \ |
100 |
--with-dpath="${EPREFIX}"/etc/unrealircd \ |
101 |
--with-spath="${EPREFIX}"/usr/bin/unrealircd \ |
102 |
--with-nick-history=2000 \ |
103 |
--with-sendq=3000000 \ |
104 |
--with-bufferpool=18 \ |
105 |
--with-permissions=0600 \ |
106 |
--with-fd-setsize=1024 \ |
107 |
--with-system-cares \ |
108 |
--with-system-tre \ |
109 |
--enable-dynamic-linking \ |
110 |
$(use_enable curl libcurl "${EPREFIX}"/usr) \ |
111 |
$(use_enable ipv6 inet6) \ |
112 |
$(use_enable prefixaq) \ |
113 |
$(use_enable ssl ssl "${EPREFIX}"/usr) \ |
114 |
$(use_enable zlib ziplinks "${EPREFIX}"/usr) \ |
115 |
$(use_with showlistmodes) \ |
116 |
$(use_with topicisnuhost) \ |
117 |
$(use_with shunnotices) \ |
118 |
$(use_with !operoverride no-operoverride) \ |
119 |
$(use_with operoverride-verify) \ |
120 |
$(use_with !usermod disableusermod) \ |
121 |
$(use_with !extban-stacking disable-extendedban-stacking) |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
keepdir /var/{lib,log,run}/unrealircd |
126 |
|
127 |
newbin src/ircd unrealircd |
128 |
|
129 |
exeinto /usr/$(get_libdir)/unrealircd/modules |
130 |
doexe src/modules/*.so |
131 |
|
132 |
dodir /etc/unrealircd |
133 |
dosym /var/lib/unrealircd /etc/unrealircd/tmp |
134 |
|
135 |
insinto /etc/unrealircd |
136 |
doins {badwords.*,help,spamfilter,dccallow}.conf |
137 |
newins doc/example.conf unrealircd.conf |
138 |
|
139 |
insinto /etc/unrealircd/aliases |
140 |
doins aliases/*.conf |
141 |
|
142 |
local so_suffix=so |
143 |
[[ ${CHOST} == -*mingw* ]] && so_suffix=dll |
144 |
sed -i \ |
145 |
-e s:src/modules:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \ |
146 |
-e '/loadmodule.*\.'${so_suffix}'/s;^//;;' \ |
147 |
-e s:ircd\\.log:"${EPREFIX}"/var/log/unrealircd/ircd.log: \ |
148 |
"${ED}"/etc/unrealircd/unrealircd.conf \ |
149 |
|| die |
150 |
|
151 |
dodoc \ |
152 |
Changes Donation Unreal.nfo \ |
153 |
ircdcron/{ircd.cron,ircdchk} \ |
154 |
|| die "dodoc failed" |
155 |
dohtml doc/*.html |
156 |
|
157 |
newinitd "${FILESDIR}"/unrealircd.initd unrealircd |
158 |
newconfd "${FILESDIR}"/unrealircd.confd-r1 unrealircd |
159 |
|
160 |
fperms 700 /etc/unrealircd |
161 |
fowners -R unrealircd /{etc,var/{lib,log,run}}/unrealircd |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
# Move docert call from scr_install() to install_cert in pkg_postinst for |
166 |
# bug #201682 |
167 |
if use ssl ; then |
168 |
if [[ ! -f "${EROOT}"/etc/unrealircd/server.cert.key ]]; then |
169 |
install_cert /etc/unrealircd/server.cert |
170 |
chown unrealircd "${EROOT}"/etc/unrealircd/server.cert.* |
171 |
ln -snf server.cert.key "${EROOT}"/etc/unrealircd/server.key.pem |
172 |
fi |
173 |
fi |
174 |
|
175 |
local unrealircd_conf="${EROOT}"/etc/unrealircd/unrealircd.conf |
176 |
# Fix up the default cloak keys. |
177 |
if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then |
178 |
ebegin "Generating cloak-keys" |
179 |
local keys=( |
180 |
$(unrealircd -k 2>&1 | tail -n 3) |
181 |
) |
182 |
[[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]] |
183 |
eend $? |
184 |
|
185 |
ebegin "Substituting cloak-keys into ${unrealircd_conf}" |
186 |
sed -i \ |
187 |
-e '/cloak-keys/ { |
188 |
n |
189 |
s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/ |
190 |
n |
191 |
s/"and another one";/"'"${keys[1]}"'";/ |
192 |
n |
193 |
s/"and another one";/"'"${keys[2]}"'";/ |
194 |
}' \ |
195 |
"${unrealircd_conf}" |
196 |
eend $? |
197 |
fi |
198 |
|
199 |
elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf" |
200 |
elog |
201 |
elog "You can find example cron scripts here:" |
202 |
elog " /usr/share/doc/${PF}/ircd.cron.gz" |
203 |
elog " /usr/share/doc/${PF}/ircdchk.gz" |
204 |
elog |
205 |
elog "You can also use /etc/init.d/unrealircd to start at boot" |
206 |
} |