/[gentoo-x86]/net-im/openfire/openfire-3.6.3.ebuild
Gentoo

Contents of /net-im/openfire/openfire-3.6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Mar 22 15:11:38 2011 UTC (3 years, 4 months ago) by pva
Branch: MAIN
Changes since 1.2: +2 -5 lines
Drop PROVIDE=virtual/jabber-server, bug #359125, thank Ulrich Müller for report.

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/openfire/openfire-3.6.3.ebuild,v 1.2 2009/01/15 22:02:08 maekke Exp $
4
5 inherit eutils java-pkg-2 java-ant-2
6
7 MY_P=${PN}_src_${PV//./_}
8 DESCRIPTION="Openfire (formerly wildfire) real time collaboration (RTC) server"
9 HOMEPAGE="http://www.igniterealtime.org/projects/openfire/"
10 SRC_URI="http://www.igniterealtime.org/builds/openfire/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="doc"
16
17 RDEPEND=">=virtual/jre-1.5"
18 DEPEND="net-im/jabber-base
19 ~dev-java/ant-contrib-1.0_beta2
20 >=virtual/jdk-1.5"
21
22 S=${WORKDIR}/${PN}_src
23
24 RESTRICT=""
25
26 pkg_setup() {
27 if [ -f /etc/env.d/98openfire ]; then
28 einfo "This is an upgrade"
29 ewarn "As the plugin API changed, at least these plugins need to be updated also:"
30 ewarn "User Search, IM Gateway, Fastpath, Monitoring"
31 ewarn "hey can be downloaded via Admin Console or at"
32 ewarn "${HOMEPAGE}"
33 else
34 ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:"
35 ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire "
36 ewarn "For more info see bug #139708"
37 sleep 11
38 fi
39 java-pkg-2_pkg_setup
40 }
41
42 src_unpack() {
43 unpack ${A}
44 cd "${S}"
45 epatch "${FILESDIR}"/buildxml.patch
46
47 # TODO should replace jars in build/lib with ones packaged by us -nichoj
48 }
49
50 src_compile() {
51 # Jikes doesn't support -source 1.5
52 java-pkg_filter-compiler jikes
53
54 ANT_TASKS="ant-contrib"
55 eant -f build/build.xml openfire plugins $(use_doc)
56 }
57
58 src_install() {
59 dodir /opt/openfire
60
61 newinitd "${FILESDIR}"/openfire-initd openfire
62 newconfd "${FILESDIR}"/openfire-confd openfire
63
64 dodir /opt/openfire/conf
65 insinto /opt/openfire/conf
66 newins target/openfire/conf/openfire.xml openfire.xml.sample
67
68 dodir /opt/openfire/logs
69 keepdir /opt/openfire/logs
70
71 dodir /opt/openfire/lib
72 insinto /opt/openfire/lib
73 doins target/openfire/lib/*
74
75 dodir /opt/openfire/plugins
76 insinto /opt/openfire/plugins
77 doins -r target/openfire/plugins/*
78
79 dodir /opt/openfire/resources
80 insinto /opt/openfire/resources
81 doins -r target/openfire/resources/*
82
83 if use doc; then
84 dohtml -r documentation/docs/*
85 fi
86 dodoc documentation/dist/*
87
88 #Protect ssl key on upgrade
89 dodir /etc/env.d/
90 echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire
91 }
92
93 pkg_postinst() {
94 chown -R jabber:jabber /opt/openfire
95
96 ewarn If this is a new install, please edit /opt/openfire/conf/openfire.xml.sample
97 ewarn and save it as /opt/openfire/conf/openfire.xml
98 ewarn
99 ewarn The following must be be owned or writable by the jabber user.
100 ewarn /opt/openfire/conf/openfire.xml
101 ewarn
102 ewarn If you are upgrading please have a look at the Wildfire to Openfire Upgrade Guide:
103 ewarn http://wiki.igniterealtime.org/display/WILDFIRE/Wildfire+to+Openfire+Upgrade+Guide
104 ewarn
105 ewarn Also there is a known issue about IQ Packets and connection drops
106 ewarn see http://www.igniterealtime.org/issues/browse/JM-1465 for details
107 }

  ViewVC Help
Powered by ViewVC 1.1.20