diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-30 11:19:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-30 11:19:18 +0100 |
commit | 62f67115b5c46134c34f88f4b1cbdacc19384c0a (patch) | |
tree | 0a76b14de203a4c23040e5665e39df8de9867745 /net-im/openfire | |
parent | 265dbe5dbc14c199299496c6db8fce3f76647015 (diff) |
gentoo resync : 30.09.2018
Diffstat (limited to 'net-im/openfire')
-rw-r--r-- | net-im/openfire/Manifest | 1 | ||||
-rw-r--r-- | net-im/openfire/openfire-4.2.3-r1.ebuild | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/net-im/openfire/Manifest b/net-im/openfire/Manifest index dca7997bf6e5..2aa18d7380c4 100644 --- a/net-im/openfire/Manifest +++ b/net-im/openfire/Manifest @@ -10,5 +10,6 @@ EBUILD openfire-4.1.0.ebuild 2875 BLAKE2B 6cb7b4da9c43e66bc2520ccbb9c520af2b7071 EBUILD openfire-4.1.4.ebuild 2877 BLAKE2B ff6480b34681afe96e3c69dd099dda70b19635a6a1298a998d0895898663fdcfb630417198d5014eaa72144dc0996dd8d0f927bf8d49e3ce5e34ca6fc17a95de SHA512 fbf36088c9e99e7b86a1a1e37a7a0f4213a370407ddd94f230af373e8e33126e68ad72532ecaa17560586ab479609c2db911506b7fdf4e947041bccd30047583 EBUILD openfire-4.1.5.ebuild 2877 BLAKE2B ff6480b34681afe96e3c69dd099dda70b19635a6a1298a998d0895898663fdcfb630417198d5014eaa72144dc0996dd8d0f927bf8d49e3ce5e34ca6fc17a95de SHA512 fbf36088c9e99e7b86a1a1e37a7a0f4213a370407ddd94f230af373e8e33126e68ad72532ecaa17560586ab479609c2db911506b7fdf4e947041bccd30047583 EBUILD openfire-4.2.2.ebuild 2877 BLAKE2B 19b2278da0c1a57499b62c6a329c7c1d01563e73842be2012fa8aab5880daaa8c68e6133dcc707b73375966a4e064577266c14ac6593b24961463e474d9a552c SHA512 1a38c942abd5aeb3fcb011ed21a2383d14ccffa9be6d8a834ac33d9952088e7f06bb194d0c0888897f8d4cc30255fd03ba588070f1543ac6dc7257a4639c23aa +EBUILD openfire-4.2.3-r1.ebuild 2345 BLAKE2B bc79ff8ab445e0f5d956bab9d99a289c410928c45b61e3bf6e438f1bc338fc1014866b9e434d2db10d1c3c3e3860816389f86715bf7fbb433d4e0d2e63506e4b SHA512 2748a0b5702f9689af20770f17a9c5498d976c76de1f833487e2d22b4ef47f16137d128777f22406c40398bf8abb2181556f8736fdd5402b04e4a8e0af0a0d22 EBUILD openfire-4.2.3.ebuild 2349 BLAKE2B 8097d183be7508fee0086a78644c238b87698f1b3ca3902e5b7caf4102103a98bdeee80d33fc367d1c4faebf38e5e35da6a486543884e143d2481a2fe22458ac SHA512 dbd52c2f47add0453c487085e008836aaf37b36e7d20350ca9cc70dd22874880087b30111dc741e09dac0463d3d55c4fcecb143e6127b571d0041de291a8c694 MISC metadata.xml 462 BLAKE2B 7229da017ec6ea3c83be2faa7672b89392acc44c9df5cfab3536e593f3267371954de62d547b976e2bf7fb5ea176ea647436ca4969ed9c9f8b3d70c54e710d60 SHA512 dcac14fdaac6da7b164c1a5083b162909aa6cf6834087e0d0f7ae02f7fada74731eb3979790ab7831bd834c301caf44a7d9e593b51c9fcafbcfd921ebf993dd3 diff --git a/net-im/openfire/openfire-4.2.3-r1.ebuild b/net-im/openfire/openfire-4.2.3-r1.ebuild new file mode 100644 index 000000000000..ea631de1f712 --- /dev/null +++ b/net-im/openfire/openfire-4.2.3-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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() { + 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 + + fowners -R jabber:jabber /opt/openfire +} + +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 +} |