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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 22 15:11:38 2011 UTC (3 years, 4 months ago) by pva
Branch: MAIN
Changes since 1.3: +1 -4 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.7.0.ebuild,v 1.3 2011/03/08 14:52:50 tomka 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 epatch "${FILESDIR}"/buildxml-ant.patch
47
48 # TODO should replace jars in build/lib with ones packaged by us -nichoj
49 }
50
51 src_compile() {
52 # Jikes doesn't support -source 1.5
53 java-pkg_filter-compiler jikes
54
55 ANT_TASKS="ant-contrib"
56 eant -f build/build.xml openfire plugins $(use_doc)
57 }
58
59 src_install() {
60 dodir /opt/openfire
61
62 newinitd "${FILESDIR}"/openfire-initd openfire
63 newconfd "${FILESDIR}"/openfire-confd openfire
64
65 dodir /opt/openfire/conf
66 insinto /opt/openfire/conf
67 newins target/openfire/conf/openfire.xml openfire.xml.sample
68
69 dodir /opt/openfire/logs
70 keepdir /opt/openfire/logs
71
72 dodir /opt/openfire/lib
73 insinto /opt/openfire/lib
74 doins target/openfire/lib/*
75
76 dodir /opt/openfire/plugins
77 insinto /opt/openfire/plugins
78 doins -r target/openfire/plugins/*
79
80 dodir /opt/openfire/resources
81 insinto /opt/openfire/resources
82 doins -r target/openfire/resources/*
83
84 if use doc; then
85 dohtml -r documentation/docs/*
86 fi
87 dodoc documentation/dist/*
88
89 #Protect ssl key on upgrade
90 dodir /etc/env.d/
91 echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire
92 }
93
94 pkg_postinst() {
95 chown -R jabber:jabber /opt/openfire
96
97 ewarn If this is a new install, please edit /opt/openfire/conf/openfire.xml.sample
98 ewarn and save it as /opt/openfire/conf/openfire.xml
99 ewarn
100 ewarn The following must be be owned or writable by the jabber user.
101 ewarn /opt/openfire/conf/openfire.xml
102 }

  ViewVC Help
Powered by ViewVC 1.1.20