Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/openfire: openfire-3.9.2.ebuild ChangeLog
Date: Thu, 01 May 2014 07:11:55
Message-Id: 20140501071148.C27C62004C@flycatcher.gentoo.org
1 slyfox 14/05/01 07:11:48
2
3 Modified: ChangeLog
4 Added: openfire-3.9.2.ebuild
5 Log:
6 Version bump. Among others fixes CVE-2014-2741. Uncontrolled Resource Consumption with XMPP-Layer Compression, bug #507242 by Agostino Sarubbo.
7
8 (Portage version: 2.2.10_p15/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
9
10 Revision Changes Path
11 1.57 net-im/openfire/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.57&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.57&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?r1=1.56&r2=1.57
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v
20 retrieving revision 1.56
21 retrieving revision 1.57
22 diff -u -r1.56 -r1.57
23 --- ChangeLog 4 Mar 2014 20:11:36 -0000 1.56
24 +++ ChangeLog 1 May 2014 07:11:48 -0000 1.57
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-im/openfire
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v 1.56 2014/03/04 20:11:36 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v 1.57 2014/05/01 07:11:48 slyfox Exp $
30 +
31 +*openfire-3.9.2 (01 May 2014)
32 +
33 + 01 May 2014; Sergei Trofimovich <slyfox@g.o> +openfire-3.9.2.ebuild:
34 + Version bump. Among others fixes CVE-2014-2741. Uncontrolled Resource
35 + Consumption with XMPP-Layer Compression, bug #507242 by Agostino Sarubbo.
36
37 04 Mar 2014; Agostino Sarubbo <ago@g.o> openfire-3.8.2-r1.ebuild:
38 Stable for x86, wrt bug #501390
39
40
41
42 1.1 net-im/openfire/openfire-3.9.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openfire-3.9.2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-im/openfire/openfire-3.9.2.ebuild,v 1.1 2014/05/01 07:11:48 slyfox Exp $
52
53 inherit eutils java-pkg-2 java-ant-2 systemd
54
55 MY_P=${PN}_src_${PV//./_}
56 DESCRIPTION="Openfire (formerly wildfire) real time collaboration (RTC) server"
57 HOMEPAGE="http://www.igniterealtime.org/projects/openfire/"
58 SRC_URI="http://www.igniterealtime.org/builds/openfire/${MY_P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="doc"
64
65 RDEPEND=">=virtual/jre-1.5"
66 DEPEND="net-im/jabber-base
67 ~dev-java/ant-contrib-1.0_beta2
68 >=virtual/jdk-1.5"
69
70 S=${WORKDIR}/${PN}_src
71
72 QA_PREBUILT="opt/openfire/resources/nativeAuth/*.so"
73
74 pkg_setup() {
75 if [ -f /etc/env.d/98openfire ]; then
76 einfo "This is an upgrade"
77 ewarn "As the plugin API changed, at least these plugins need to be updated also:"
78 ewarn "User Search, IM Gateway, Fastpath, Monitoring"
79 ewarn "they can be downloaded via Admin Console or at"
80 ewarn " ${HOMEPAGE}"
81 else
82 ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:"
83 ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire "
84 ewarn "For more info see bug #139708"
85 sleep 11
86 fi
87 java-pkg-2_pkg_setup
88 }
89
90 src_unpack() {
91 unpack ${A}
92 cd "${S}"
93 epatch "${FILESDIR}"/${PN}-3.8.0-buildxml.patch
94 epatch "${FILESDIR}"/buildxml-ant.patch
95
96 # TODO should replace jars in build/lib with ones packaged by us -nichoj
97 }
98
99 src_compile() {
100 # Jikes doesn't support -source 1.5
101 java-pkg_filter-compiler jikes
102
103 ANT_TASKS="ant-contrib"
104 eant -f build/build.xml openfire plugins $(use_doc)
105 }
106
107 src_install() {
108 dodir /opt/openfire
109
110 newinitd "${FILESDIR}"/openfire-initd openfire
111 newconfd "${FILESDIR}"/openfire-confd openfire
112 systemd_dounit "${FILESDIR}"/${PN}.service
113
114 dodir /opt/openfire/conf
115 insinto /opt/openfire/conf
116 newins target/openfire/conf/openfire.xml openfire.xml.sample
117
118 dodir /opt/openfire/logs
119 keepdir /opt/openfire/logs
120
121 dodir /opt/openfire/lib
122 insinto /opt/openfire/lib
123 doins target/openfire/lib/*
124
125 dodir /opt/openfire/plugins
126 insinto /opt/openfire/plugins
127 doins -r target/openfire/plugins/*
128
129 dodir /opt/openfire/resources
130 insinto /opt/openfire/resources
131 doins -r target/openfire/resources/*
132
133 if use doc; then
134 dohtml -r documentation/docs/*
135 fi
136 dodoc documentation/dist/*
137
138 #Protect ssl key on upgrade
139 dodir /etc/env.d/
140 echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire
141 }
142
143 pkg_postinst() {
144 chown -R jabber:jabber /opt/openfire
145
146 ewarn If this is a new install, please edit /opt/openfire/conf/openfire.xml.sample
147 ewarn and save it as /opt/openfire/conf/openfire.xml
148 ewarn
149 ewarn The following must be be owned or writable by the jabber user.
150 ewarn /opt/openfire/conf/openfire.xml
151 }