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.ebuild ChangeLog
Date: Tue, 06 May 2014 20:45:34
Message-Id: 20140506204531.1E0ED2004C@flycatcher.gentoo.org
1 slyfox 14/05/06 20:45:30
2
3 Modified: ChangeLog
4 Added: openfire-3.9.3.ebuild
5 Log:
6 Version bump.
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.60 net-im/openfire/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 4 May 2014 08:20:33 -0000 1.59
24 +++ ChangeLog 6 May 2014 20:45:30 -0000 1.60
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.59 2014/05/04 08:20:33 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-im/openfire/ChangeLog,v 1.60 2014/05/06 20:45:30 slyfox Exp $
30 +
31 +*openfire-3.9.3 (06 May 2014)
32 +
33 + 06 May 2014; Sergei Trofimovich <slyfox@g.o> +openfire-3.9.3.ebuild:
34 + Version bump.
35
36 04 May 2014; Agostino Sarubbo <ago@g.o> openfire-3.9.2-r1.ebuild:
37 Stable for amd64, wrt bug #507242
38
39
40
41 1.1 net-im/openfire/openfire-3.9.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/openfire/openfire-3.9.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openfire-3.9.3.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-im/openfire/openfire-3.9.3.ebuild,v 1.1 2014/05/06 20:45:30 slyfox Exp $
51
52 inherit eutils java-pkg-2 java-ant-2 systemd
53
54 MY_P=${PN}_src_${PV//./_}
55 DESCRIPTION="Openfire (formerly wildfire) real time collaboration (RTC) server"
56 HOMEPAGE="http://www.igniterealtime.org/projects/openfire/"
57 SRC_URI="http://www.igniterealtime.org/builds/openfire/${MY_P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="doc"
63
64 RDEPEND=">=virtual/jre-1.5"
65 DEPEND="net-im/jabber-base
66 ~dev-java/ant-contrib-1.0_beta2
67 >=virtual/jdk-1.5"
68
69 S=${WORKDIR}/${PN}_src
70
71 QA_PREBUILT="opt/openfire/resources/nativeAuth/*.so"
72
73 pkg_setup() {
74 if [ -f /etc/env.d/98openfire ]; then
75 einfo "This is an upgrade"
76 ewarn "As the plugin API changed, at least these plugins need to be updated also:"
77 ewarn "User Search, IM Gateway, Fastpath, Monitoring"
78 ewarn "they can be downloaded via Admin Console or at"
79 ewarn " ${HOMEPAGE}"
80 else
81 ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:"
82 ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire "
83 ewarn "For more info see bug #139708"
84 sleep 11
85 fi
86 java-pkg-2_pkg_setup
87 }
88
89 src_unpack() {
90 unpack ${A}
91 cd "${S}"
92 epatch "${FILESDIR}"/${PN}-3.8.0-buildxml.patch
93 epatch "${FILESDIR}"/buildxml-ant.patch
94
95 # TODO should replace jars in build/lib with ones packaged by us -nichoj
96 }
97
98 src_compile() {
99 # Jikes doesn't support -source 1.5
100 java-pkg_filter-compiler jikes
101
102 ANT_TASKS="ant-contrib"
103 eant -f build/build.xml openfire plugins $(use_doc)
104 }
105
106 src_install() {
107 dodir /opt/openfire
108
109 newinitd "${FILESDIR}"/openfire-initd openfire
110 newconfd "${FILESDIR}"/openfire-confd openfire
111 systemd_dounit "${FILESDIR}"/${PN}.service
112
113 dodir /opt/openfire/conf
114 insinto /opt/openfire/conf
115 newins target/openfire/conf/openfire.xml openfire.xml.sample
116 newins target/openfire/conf/security.xml security.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 local src
145 local dst
146
147 # http://community.igniterealtime.org/thread/52289
148 for dst in "${ROOT}"/opt/openfire/conf/{openfire,security}.xml
149 do
150 src="${dst}".sample
151 if [[ -f "${dst}" ]]; then
152 einfo "Leaving old '${dst}'"
153 else
154 einfo "Created default '${dst}'. Please edit."
155 cp -v "${src}" "${dst}" || ewarn "cp '${dst}' failed"
156 chmod -v 0600 "${dst}" || ewarn "chmod '${dst}' failed"
157 fi
158 done
159 chown -R jabber:jabber "${ROOT}"/opt/openfire
160 }