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.3-r1.ebuild ChangeLog
Date: Wed, 01 Apr 2015 20:13:38
Message-Id: 20150401201332.A323315029@oystercatcher.gentoo.org
1 slyfox 15/04/01 20:13:31
2
3 Modified: ChangeLog
4 Added: openfire-3.9.3-r1.ebuild
5 Log:
6 Remove nativeAuth plugin support (bug #net-im/openfire by Berthold Humkamp).
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
9
10 Revision Changes Path
11 1.64 net-im/openfire/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 5 Aug 2014 18:34:04 -0000 1.63
24 +++ ChangeLog 1 Apr 2015 20:13:31 -0000 1.64
25 @@ -1,6 +1,11 @@
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.63 2014/08/05 18:34:04 mrueg Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v 1.64 2015/04/01 20:13:31 slyfox Exp $
31 +
32 +*openfire-3.9.3-r1 (01 Apr 2015)
33 +
34 + 01 Apr 2015; Sergei Trofimovich <slyfox@g.o> +openfire-3.9.3-r1.ebuild:
35 + Remove nativeAuth plugin support (bug #net-im/openfire by Berthold Humkamp).
36
37 05 Aug 2014; Manuel RĂ¼ger <mrueg@g.o> openfire-3.9.2-r1.ebuild,
38 openfire-3.9.3.ebuild:
39
40
41
42 1.1 net-im/openfire/openfire-3.9.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openfire-3.9.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 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.3-r1.ebuild,v 1.1 2015/04/01 20:13:31 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 pkg_setup() {
73 if [ -f /etc/env.d/98openfire ]; then
74 einfo "This is an upgrade"
75 ewarn "As the plugin API changed, at least these plugins need to be updated also:"
76 ewarn "User Search, IM Gateway, Fastpath, Monitoring"
77 ewarn "they can be downloaded via Admin Console or at"
78 ewarn " ${HOMEPAGE}"
79 else
80 ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:"
81 ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire "
82 ewarn "For more info see bug #139708"
83 sleep 11
84 fi
85 java-pkg-2_pkg_setup
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91 epatch "${FILESDIR}"/${PN}-3.8.0-buildxml.patch
92 epatch "${FILESDIR}"/buildxml-ant.patch
93
94 # TODO should replace jars in build/lib with ones packaged by us -nichoj
95 }
96
97 src_compile() {
98 # Jikes doesn't support -source 1.5
99 java-pkg_filter-compiler jikes
100
101 ANT_TASKS="ant-contrib"
102 eant -f build/build.xml openfire plugins $(use_doc)
103
104 # delete nativeAuth prebuilt libs:
105 # uses outdated unmaintained libshaj, does not support amd64
106 rm -rfv target/openfire/resources/nativeAuth || dir
107 }
108
109 src_install() {
110 dodir /opt/openfire
111
112 newinitd "${FILESDIR}"/openfire-initd openfire
113 newconfd "${FILESDIR}"/openfire-confd openfire
114 systemd_dounit "${FILESDIR}"/${PN}.service
115
116 dodir /opt/openfire/conf
117 insinto /opt/openfire/conf
118 newins target/openfire/conf/openfire.xml openfire.xml.sample
119 newins target/openfire/conf/security.xml security.xml.sample
120
121 dodir /opt/openfire/logs
122 keepdir /opt/openfire/logs
123
124 dodir /opt/openfire/lib
125 insinto /opt/openfire/lib
126 doins target/openfire/lib/*
127
128 dodir /opt/openfire/plugins
129 insinto /opt/openfire/plugins
130 doins -r target/openfire/plugins/*
131
132 dodir /opt/openfire/resources
133 insinto /opt/openfire/resources
134 doins -r target/openfire/resources/*
135
136 if use doc; then
137 dohtml -r documentation/docs/*
138 fi
139 dodoc documentation/dist/*
140
141 #Protect ssl key on upgrade
142 dodir /etc/env.d/
143 echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire
144 }
145
146 pkg_postinst() {
147 local src
148 local dst
149
150 # http://community.igniterealtime.org/thread/52289
151 for dst in "${ROOT}"/opt/openfire/conf/{openfire,security}.xml
152 do
153 src="${dst}".sample
154 if [[ -f "${dst}" ]]; then
155 einfo "Leaving old '${dst}'"
156 else
157 einfo "Created default '${dst}'. Please edit."
158 cp -v "${src}" "${dst}" || ewarn "cp '${dst}' failed"
159 chmod -v 0600 "${dst}" || ewarn "chmod '${dst}' failed"
160 fi
161 done
162 chown -R jabber:jabber "${ROOT}"/opt/openfire
163 }