1 |
gurligebis 09/07/18 12:08:51 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: psybnc-2.3.2.9-r2.ebuild |
5 |
Removed: psybnc-2.3.2.9-r1.ebuild |
6 |
Log: |
7 |
Adding support for multiple networks, fixing bug 273658 |
8 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 net-irc/psybnc/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/metadata.xml?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/metadata.xml?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/metadata.xml?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/psybnc/metadata.xml,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- metadata.xml 3 Jan 2009 15:43:22 -0000 1.4 |
24 |
+++ metadata.xml 18 Jul 2009 12:08:51 -0000 1.5 |
25 |
@@ -9,6 +9,7 @@ |
26 |
<use> |
27 |
<flag name='oidentd'>Adds support for oidentd</flag> |
28 |
<flag name='scripting'>Adds scripting support</flag> |
29 |
+ <flag name='multinetwork'>Adds support for multiple networks</flag> |
30 |
</use> |
31 |
<longdescription>psyBNC is a multi-user and multi-server gateway to IRC networks</longdescription> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.11 net-irc/psybnc/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/ChangeLog?rev=1.11&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/ChangeLog?rev=1.11&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/ChangeLog?r1=1.10&r2=1.11 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v |
45 |
retrieving revision 1.10 |
46 |
retrieving revision 1.11 |
47 |
diff -u -r1.10 -r1.11 |
48 |
--- ChangeLog 4 Jan 2009 16:47:05 -0000 1.10 |
49 |
+++ ChangeLog 18 Jul 2009 12:08:51 -0000 1.11 |
50 |
@@ -1,6 +1,13 @@ |
51 |
# ChangeLog for net-irc/psybnc |
52 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v 1.10 2009/01/04 16:47:05 gurligebis Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v 1.11 2009/07/18 12:08:51 gurligebis Exp $ |
55 |
+ |
56 |
+*psybnc-2.3.2.9-r2 (18 Jul 2009) |
57 |
+ |
58 |
+ 18 Jul 2009; Bjarke Istrup Pedersen <gurligebis@g.o> |
59 |
+ -psybnc-2.3.2.9-r1.ebuild, +psybnc-2.3.2.9-r2.ebuild, |
60 |
+ +files/psybnc-2.3.2.9-multinetwork.patch, metadata.xml: |
61 |
+ Adding support for multiple networks, fixing bug #273658 |
62 |
|
63 |
04 Jan 2009; Bjarke Istrup Pedersen <gurligebis@g.o> |
64 |
psybnc-2.3.2.9-r1.ebuild: |
65 |
|
66 |
|
67 |
|
68 |
1.1 net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: psybnc-2.3.2.9-r2.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2009 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild,v 1.1 2009/07/18 12:08:51 gurligebis Exp $ |
78 |
|
79 |
inherit eutils versionator toolchain-funcs flag-o-matic |
80 |
MY_PV="$(replace_version_separator 3 -)" |
81 |
PSYBNC_HOME="/var/lib/psybnc" |
82 |
|
83 |
DESCRIPTION="psyBNC is a multi-user and multi-server gateway to IRC networks" |
84 |
HOMEPAGE="http://www.psybnc.at/index.html" |
85 |
SRC_URI="http://www.psybnc.at/download/beta/psyBNC-${MY_PV}.tar.gz" |
86 |
|
87 |
LICENSE="GPL-2" |
88 |
SLOT="0" |
89 |
KEYWORDS="~amd64 ~sparc ~x86" |
90 |
IUSE="ipv6 ssl oidentd scripting multinetwork" |
91 |
|
92 |
DEPEND="ssl? ( >=dev-libs/openssl-0.9.7d ) |
93 |
oidentd? ( >=net-misc/oidentd-2.0 )" |
94 |
RDEPEND="${DEPEND}" |
95 |
S="${WORKDIR}"/"${PN}" |
96 |
|
97 |
pkg_setup() { |
98 |
enewgroup psybnc |
99 |
enewuser psybnc -1 -1 ${PSYBNC_HOME} psybnc |
100 |
} |
101 |
|
102 |
src_unpack() { |
103 |
unpack ${A} |
104 |
cd "${S}" |
105 |
|
106 |
epatch "${FILESDIR}/compile.diff" |
107 |
|
108 |
# add oidentd |
109 |
use oidentd && epatch "${FILESDIR}/${P}-oidentd.patch" |
110 |
|
111 |
# add scripting support |
112 |
use scripting && epatch "${FILESDIR}/${P}-scripting.patch" |
113 |
|
114 |
# add multinetwork support |
115 |
use scripting && epatch "${FILESDIR}/${P}-multinetwork.patch" |
116 |
|
117 |
# Useless files |
118 |
rm -f */INFO |
119 |
|
120 |
# Prevent stripping the binary |
121 |
sed -i -e "/@strip/ d" tools/autoconf.c |
122 |
|
123 |
# Pretend we already have a certificate, we generate it in pkg_config |
124 |
mkdir key |
125 |
touch key/psybnc.cert.pem |
126 |
|
127 |
if [[ -f ${ROOT}/usr/share/psybnc/salt.h ]] |
128 |
then |
129 |
einfo "Using existing salt.h for password encryption" |
130 |
cp "${ROOT}"/usr/share/psybnc/salt.h salt.h |
131 |
fi |
132 |
} |
133 |
|
134 |
src_compile() { |
135 |
use ipv6 || rm -f tools/chkipv6.c |
136 |
use ssl || rm -f tools/chkssl.c |
137 |
|
138 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed" |
139 |
} |
140 |
|
141 |
src_install() { |
142 |
dobin psybnc |
143 |
|
144 |
insinto /usr/share/psybnc |
145 |
doins -r help lang salt.h |
146 |
fperms 0600 /usr/share/psybnc/salt.h |
147 |
|
148 |
insinto /etc/psybnc |
149 |
doins "${FILESDIR}"/psybnc.conf |
150 |
|
151 |
keepdir "${PSYBNC_HOME}"/{log,motd,scripts} |
152 |
dosym /usr/share/psybnc/lang "${PSYBNC_HOME}"/lang |
153 |
dosym /usr/share/psybnc/help "${PSYBNC_HOME}"/help |
154 |
|
155 |
fowners psybnc:psybnc "${PSYBNC_HOME}"/{,log,motd,scripts} /etc/psybnc/psybnc.conf |
156 |
fperms 0750 "${PSYBNC_HOME}"/{,log,motd,scripts} |
157 |
fperms 0640 /etc/psybnc/psybnc.conf |
158 |
|
159 |
if use ssl |
160 |
then |
161 |
keepdir /etc/psybnc/ssl |
162 |
dosym /etc/psybnc/ssl "${PSYBNC_HOME}"/key |
163 |
else |
164 |
# Drop SSL listener from psybnc.conf |
165 |
sed -i -e "/^# Default SSL listener$/,+4 d" "${D}"/etc/psybnc/psybnc.conf |
166 |
fi |
167 |
|
168 |
if use oidentd |
169 |
then |
170 |
insinto /etc |
171 |
doins "${FILESDIR}"/oidentd.conf.psybnc |
172 |
fperms 640 /etc/oidentd.conf.psybnc |
173 |
# install init-script with oidentd-support |
174 |
newinitd "${FILESDIR}"/psybnc-oidentd.initd psybnc |
175 |
else |
176 |
# install init-script without oidentd-support |
177 |
newinitd "${FILESDIR}"/psybnc.initd psybnc |
178 |
fi |
179 |
|
180 |
newconfd "${FILESDIR}"/psybnc.confd psybnc |
181 |
|
182 |
dodoc CHANGES FAQ README SCRIPTING TODO |
183 |
docinto example-script |
184 |
dodoc scripts/example/DEFAULT.SCRIPT |
185 |
} |
186 |
|
187 |
pkg_config() { |
188 |
if use ssl |
189 |
then |
190 |
if [[ -f ${ROOT}/etc/psybnc/ssl/psybnc.cert.pem || -f ${ROOT}/etc/psybnc/ssl/psybnc.key.pem ]] |
191 |
then |
192 |
ewarn "Existing /etc/psybnc/psybnc.cert.pem or /etc/psybnc/psybnc.key.pem found!" |
193 |
ewarn "Remove /etc/psybnc/psybnc.*.pem and run emerge --config =${CATEGORY}/${PF} again." |
194 |
return |
195 |
fi |
196 |
|
197 |
einfo "Generating certificate request..." |
198 |
openssl req -new -out "${ROOT}"/etc/psybnc/ssl/psybnc.req.pem -keyout "${ROOT}"/etc/psybnc/ssl/psybnc.key.pem -nodes |
199 |
einfo "Generating self-signed certificate..." |
200 |
openssl req -x509 -days 365 -in "${ROOT}"/etc/psybnc/ssl/psybnc.req.pem -key "${ROOT}"/etc/psybnc/ssl/psybnc.key.pem -out "${ROOT}"/etc/psybnc/ssl/psybnc.cert.pem |
201 |
einfo "Setting permissions on files..." |
202 |
chown root:psybnc "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem |
203 |
chmod 0640 "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem |
204 |
fi |
205 |
} |
206 |
|
207 |
pkg_postinst() { |
208 |
if use ssl |
209 |
then |
210 |
elog |
211 |
elog "Please run \"emerge --config =${CATEGORY}/${PF}\" to create needed SSL certificates." |
212 |
fi |
213 |
if use oidentd |
214 |
then |
215 |
elog |
216 |
elog "You have enabled oidentd-support. You will need to set" |
217 |
elog "up your /etc/oident.conf file before running psybnc. An example" |
218 |
elog "for psyBNC can be found under /etc/oident.conf.psybnc." |
219 |
fi |
220 |
elog |
221 |
elog "You can connect to psyBNC on port 23998 with user gentoo and password gentoo." |
222 |
elog "Please edit the psyBNC configuration at /etc/psybnc/psybnc.conf to change this." |
223 |
elog |
224 |
elog "To be able to reuse an existing psybnc.conf, you need to make sure that the" |
225 |
elog "old salt.h is available at /usr/share/psybnc/salt.h when compiling a new" |
226 |
elog "version of psyBNC. It is needed for password encryption and decryption." |
227 |
elog |
228 |
} |