From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 90CF2139085 for ; Wed, 21 Dec 2016 21:44:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F114221C04E; Wed, 21 Dec 2016 21:44:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE55821C04E for ; Wed, 21 Dec 2016 21:44:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C5CDA341027 for ; Wed, 21 Dec 2016 21:44:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E4B224B9 for ; Wed, 21 Dec 2016 21:44:21 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1482356644.9e89e0c6efe176517e174c1ed4aab556f013c532.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/openfire/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/openfire/Manifest net-im/openfire/openfire-4.1.0.ebuild X-VCS-Directories: net-im/openfire/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 9e89e0c6efe176517e174c1ed4aab556f013c532 X-VCS-Branch: master Date: Wed, 21 Dec 2016 21:44:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 31a5d00e-7055-4753-b1e5-1d319a53b1b9 X-Archives-Hash: a2bebf2f1969ca142eef12307d851307 commit: 9e89e0c6efe176517e174c1ed4aab556f013c532 Author: Sergei Trofimovich gentoo org> AuthorDate: Wed Dec 21 21:43:50 2016 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Dec 21 21:44:04 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e89e0c6 net-im/openfire: bump up to 4.1.0 Package-Manager: Portage-2.3.3, Repoman-2.3.1 net-im/openfire/Manifest | 1 + net-im/openfire/openfire-4.1.0.ebuild | 108 ++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) diff --git a/net-im/openfire/Manifest b/net-im/openfire/Manifest index f45c277..c2537f6 100644 --- a/net-im/openfire/Manifest +++ b/net-im/openfire/Manifest @@ -1,3 +1,4 @@ DIST openfire_src_4_0_2.tar.gz 98972324 SHA256 62e7a8a735431d45f5ad72a8ae9603743277372702e782ea514323bfd80a4efb SHA512 444762fec588d4b205c0d6247098861b246eb3f74061dfe47314a33daeb57e228e62132efac3d50fbffd31bd779ba986d0b59afe375d27f3f2923cecbd4f873a WHIRLPOOL 3259e09f1bf422415b0722bff96524be6831ee8d104b91b15fc2b8b25569da5e5f4920ad08080c4e44f1d9c74049c8b0344bbe534b0c3809483745e2452d08e9 DIST openfire_src_4_0_3.tar.gz 99135040 SHA256 2eae0ac43826e0e084363c8640fa26ac6ec1369aa354bd2bdb268c2f801b2e55 SHA512 d610ac3d20f1d369f4ad5a695dccec6f5523d65675f6cc78cc6728ea03ee860668dae4fbfe13bf627df1f3e34b72306894f06d63cd3e32a93d3b47211e07a631 WHIRLPOOL 0887e71b4090fdd0c4236054b3df3791dc30da978bb45e3742459f0f3aed60d9402a9586d4a71038185edbf4c3dfb59fd79387cd3e7ce0e0038dca351f7be734 DIST openfire_src_4_0_4.tar.gz 99136077 SHA256 66a7b4f00f2f15e6899b0fd8375914838b9401e5defe6dc3b1236c62e7f379a9 SHA512 9d6b80b3d96ba180ad9598fe07926eb1ae617d202842aec1ee460b1511a24d1b93de203fd5bbf20fd08ef738ae5d3e603e741b9856829fdde4d02007595ab50b WHIRLPOOL 3f6b3b5011ea0508351d90f6248e07fb503f5e7212dcca1ef77fd9fe7f3ac6ae5d0a156083edb74f867a871e5f4d2472937031d8ea6c7a4721d8ce7fa69c42a1 +DIST openfire_src_4_1_0.tar.gz 103449811 SHA256 3e52b27ac9ed5af1acb7065e84a416ad075994445b554e78d7c966724612cbf2 SHA512 3a4e26c260f6a91ece6e6d3fc7c3302b6f1735725ce2686bab8773981dad63ef653a25748852c32e4df8f6bde2882db4043d94b69eb774a5280285fd5b7cd96b WHIRLPOOL da56663dc9cdf831e04aebddff2eb2705b9cb603a0b5110fee1dc00d41252050ba326c84883fb69894ac064a339a11e22ef44c35348de0bb655f55bc8c34c72d diff --git a/net-im/openfire/openfire-4.1.0.ebuild b/net-im/openfire/openfire-4.1.0.ebuild new file mode 100644 index 00000000..957cc4c --- /dev/null +++ b/net-im/openfire/openfire-4.1.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils java-pkg-2 java-ant-2 systemd + +MY_P=${PN}_src_${PV//./_} +DESCRIPTION="Openfire (formerly wildfire) real time collaboration (RTC) server" +HOMEPAGE="http://www.igniterealtime.org/projects/openfire/" +SRC_URI="http://www.igniterealtime.org/builds/openfire/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=">=virtual/jre-1.7" +DEPEND="net-im/jabber-base + ~dev-java/ant-contrib-1.0_beta2 + >=virtual/jdk-1.7" + +S=${WORKDIR}/${PN}_src + +pkg_setup() { + if [[ -f /etc/env.d/98openfire ]]; then + einfo "This is an upgrade" + ewarn "As the plugin API changed, at least these plugins need to be updated also:" + ewarn "User Search, IM Gateway, Fastpath, Monitoring" + ewarn "they can be downloaded via Admin Console or at" + ewarn " ${HOMEPAGE}" + else + ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:" + ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire " + ewarn "For more info see bug #139708" + sleep 11 + fi + java-pkg-2_pkg_setup +} + +src_compile() { + # Jikes doesn't support -source 1.5 + java-pkg_filter-compiler jikes + + ANT_TASKS="ant-contrib" + eant -f build/build.xml openfire plugins $(use_doc) + + # delete nativeAuth prebuilt libs: + # uses outdated unmaintained libshaj, does not support amd64 + rm -rfv target/openfire/resources/nativeAuth || die +} + +src_install() { + dodir /opt/openfire + + newinitd "${FILESDIR}"/openfire-initd openfire + newconfd "${FILESDIR}"/openfire-confd openfire + systemd_dounit "${FILESDIR}"/${PN}.service + + dodir /opt/openfire/conf + insinto /opt/openfire/conf + newins target/openfire/conf/openfire.xml openfire.xml.sample + newins target/openfire/conf/security.xml security.xml.sample + + dodir /opt/openfire/logs + keepdir /opt/openfire/logs + + dodir /opt/openfire/lib + insinto /opt/openfire/lib + doins target/openfire/lib/* + + dodir /opt/openfire/plugins + insinto /opt/openfire/plugins + doins -r target/openfire/plugins/* + + dodir /opt/openfire/resources + insinto /opt/openfire/resources + doins -r target/openfire/resources/* + + if use doc; then + dohtml -r documentation/docs/* + fi + dodoc documentation/dist/* + + #Protect ssl key on upgrade + dodir /etc/env.d/ + echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire +} + +pkg_postinst() { + local src + local dst + + # http://community.igniterealtime.org/thread/52289 + for dst in "${ROOT}"/opt/openfire/conf/{openfire,security}.xml + do + src="${dst}".sample + if [[ -f "${dst}" ]]; then + einfo "Leaving old '${dst}'" + else + einfo "Created default '${dst}'. Please edit." + cp -v "${src}" "${dst}" || ewarn "cp '${dst}' failed" + chmod -v 0600 "${dst}" || ewarn "chmod '${dst}' failed" + fi + done + chown -R jabber:jabber "${ROOT}"/opt/openfire +}