diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-im/openfire |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-im/openfire')
-rw-r--r-- | net-im/openfire/Manifest | 12 | ||||
-rw-r--r-- | net-im/openfire/files/openfire-confd | 11 | ||||
-rw-r--r-- | net-im/openfire/files/openfire-initd | 29 | ||||
-rw-r--r-- | net-im/openfire/files/openfire.service | 13 | ||||
-rw-r--r-- | net-im/openfire/metadata.xml | 13 | ||||
-rw-r--r-- | net-im/openfire/openfire-4.1.0.ebuild | 107 | ||||
-rw-r--r-- | net-im/openfire/openfire-4.1.4.ebuild | 107 | ||||
-rw-r--r-- | net-im/openfire/openfire-4.1.5.ebuild | 107 |
8 files changed, 399 insertions, 0 deletions
diff --git a/net-im/openfire/Manifest b/net-im/openfire/Manifest new file mode 100644 index 000000000000..6544c4815f38 --- /dev/null +++ b/net-im/openfire/Manifest @@ -0,0 +1,12 @@ +AUX openfire-confd 491 SHA256 60f2ef123218338bbcdf2fb99c4f55740dab21f28e80073a157f1d63c99c05f5 SHA512 c35e00f7e6b4136c1e8ab71b9221a91f3821a536be54681567cd5948243b9b1575056324c104cf038df8191777361b5eed8a1917185aead431a8f5343f1ed698 WHIRLPOOL c4a82a28363cca33fd8184010616122b85f4842bf10606cb0f71e8c6a027f29ae11e67d3483c99bfbadb385cff91726b3cc4e9b05ff0bed299a9c46568bd219b +AUX openfire-initd 632 SHA256 05f398d8598f33cc86eec01c7676e226b797d3f20beb0956a1ac50e7be4209ed SHA512 29dfb750e0d177b2983889d81374f997df95991d773d497c2b8a212281f0763b950f9415dcb82928a60e8c4e90e5f87719f527ec723e04d2b2bdc2b0ce8ad6d2 WHIRLPOOL ebea03096b4857650051e712d94b51697dc297cde7b55c61ba80980eba4772b4ba813fa6eeb290e7d60dbc40619f657e9ffe048b4b71472b83e81f78602e9cc5 +AUX openfire.service 364 SHA256 543c83c5e3b2fd4dea7763d681c16989c0431ef3e4a7043e79e46dff14ebf4f0 SHA512 3dbf25d1566b1d1bdbd9f67deb30456451ffe2fa9d247c66e2bc45b3dc6a0fd91c0fc47d6e4ba5001217225f0a2bd6c2b60eb3056003cc580a10f0560a1fe231 WHIRLPOOL f95f8977777faf9ed8a74ac0d28f600a6838497cdf1cf61bcd230ed7188003f53379728e69127bf28c348d9cd394beabe0cbd3f6ff313718d98bf50a60b0175c +DIST openfire_src_4_1_0.tar.gz 103449811 SHA256 3e52b27ac9ed5af1acb7065e84a416ad075994445b554e78d7c966724612cbf2 SHA512 3a4e26c260f6a91ece6e6d3fc7c3302b6f1735725ce2686bab8773981dad63ef653a25748852c32e4df8f6bde2882db4043d94b69eb774a5280285fd5b7cd96b WHIRLPOOL da56663dc9cdf831e04aebddff2eb2705b9cb603a0b5110fee1dc00d41252050ba326c84883fb69894ac064a339a11e22ef44c35348de0bb655f55bc8c34c72d +DIST openfire_src_4_1_4.tar.gz 103457596 SHA256 46aa8fe815b941c423a4575b35204a6b3c74b7746a49420d6444bc018cd2257b SHA512 e9b7bb62656b376ffc52db5403c262d5a986698282ac9eec02d3a893076cc6df3f4666e908672a9d65cb313505fcc377fb3d7bb62f30d665aa8523cab7d714bd WHIRLPOOL 13009d922ebe292380c4b9cafcd1ef13a1bb119a728762da7c1b7f62d4515577f1e63014fbdaeba596cacd463c97935768f31611c67ed62d951840ded77d9aac +DIST openfire_src_4_1_5.tar.gz 103508870 SHA256 f24c34ec2673dce0f9321237538e954ea767535ed7f17a2574e344170555de5b SHA512 9ccdd2916492ab23a71856ded8024f6dea73491810ee80c8284597eaf8d2fd55ccc47c7d1da704a487aba727761fdc50f0f6baa26349673fe74dabf0f2b36e73 WHIRLPOOL 5983868a5af739e351e83582d652bab173d2cc503fbc4afc0dc43823261ede5fc9da4d257fa2bfeb4ef600f84e5fd2f8472d2804b5b5d8df277c4c11cbd63030 +EBUILD openfire-4.1.0.ebuild 2875 SHA256 f22236881ddadffc220af38472e1caefeb4d7dfead4cfb4d5652d68b267ccff5 SHA512 b5e1a11513de5a1afcfb51a46f024d83a3819230d254a17e32f66f17f96e2a4ee41ce2ddea4b79b2b699e7f3671f3ba816153cec64118d0961119b312324c917 WHIRLPOOL 32bc3ce49695c05b3ff46504a6193b6b51d13d3e862570d7bba7c42f4535c40e079177ecb143455010922c020c513c84946f1fa584060088e99145ddb49a728e +EBUILD openfire-4.1.4.ebuild 2877 SHA256 f78a6e617ed8a5defd69b680ad6dec5aef9a453a0b66c95e331ff3e3201b6e80 SHA512 fbf36088c9e99e7b86a1a1e37a7a0f4213a370407ddd94f230af373e8e33126e68ad72532ecaa17560586ab479609c2db911506b7fdf4e947041bccd30047583 WHIRLPOOL d6a191ac58ab4e51c985216687d69ee14fbf1b763ee0296a1e7cf66df919dde655f319728e0a0e068d80cd4746d89aa9359d9b44770d86605c09c2ccad94307a +EBUILD openfire-4.1.5.ebuild 2877 SHA256 f78a6e617ed8a5defd69b680ad6dec5aef9a453a0b66c95e331ff3e3201b6e80 SHA512 fbf36088c9e99e7b86a1a1e37a7a0f4213a370407ddd94f230af373e8e33126e68ad72532ecaa17560586ab479609c2db911506b7fdf4e947041bccd30047583 WHIRLPOOL d6a191ac58ab4e51c985216687d69ee14fbf1b763ee0296a1e7cf66df919dde655f319728e0a0e068d80cd4746d89aa9359d9b44770d86605c09c2ccad94307a +MISC ChangeLog 5152 SHA256 e4ec783a323d6a6469af32532bd4012165d510e6643449d07d4fdca8d671c5ce SHA512 7fe1785bcf95606a35d0805658b36c3ecfb90098ae2876c2c485493bcbe35d78aa8875a2fc507baca8bd31a666120d4bc464e4262632681d08ac74c54910e79a WHIRLPOOL 2d11c350e655649e3ad6f4e1b5e18d0ec9d53480e8b12832901a02666603a9a8758de1efc34562f971aa79f2723213b923f702286e1dce229d09dfe48efa3ced +MISC ChangeLog-2015 16423 SHA256 220892faa5e2afedef517f343eac4690079d6ba1a81242578d7209e113a4fdc7 SHA512 116dc0b0e667fd0a20f49c89f064913b9ec521b21e61d71f07f5c46771a0e3d628e021a45dc3ae70cc1bb0ff0630261ebc4540842f4ea160191f32078feb00db WHIRLPOOL 788a15e1fe56fa685f3cff5590a323ad82431cbf7f7fffab31dd6f6a191f770ee9a6ff60620ea56059622bb11dab574995dc80aeeab6f7412f0528aed8506804 +MISC metadata.xml 462 SHA256 0b4915fb5a545e3e4a6d097df85dba8a86892ee400197e4b331ee2e80600a2a5 SHA512 dcac14fdaac6da7b164c1a5083b162909aa6cf6834087e0d0f7ae02f7fada74731eb3979790ab7831bd834c301caf44a7d9e593b51c9fcafbcfd921ebf993dd3 WHIRLPOOL 2682ac2ffa51253f222db6f1c99b209fefa42e0ed6874c7cb1aa4f4362085ba2076f20f5d9da299062aa7a10c2d3d6f64d5e835e42beae76029cab724d236eb5 diff --git a/net-im/openfire/files/openfire-confd b/net-im/openfire/files/openfire-confd new file mode 100644 index 000000000000..35caecef20cc --- /dev/null +++ b/net-im/openfire/files/openfire-confd @@ -0,0 +1,11 @@ +OPENFIRE_HOME=/opt/openfire +OPENFIRE_LIB="${OPENFIRE_HOME}/lib" +OPENFIRE_OPTS="-Xmx256m -DopenfireHome=${OPENFIRE_HOME} -Dopenfire.lib.dir=${OPENFIRE_LIB}" +OPENFIRE_CLASS="-classpath ${OPENFIRE_LIB}/startup.jar" +OPENFIRE_JAR="-jar ${OPENFIRE_LIB}/startup.jar" +OPENFIRE_ARGS="-server ${OPENFIRE_OPTS} ${OPENFIRE_CLASS} ${OPENFIRE_JAR}" + + +#JVM used by the openfire server. You can see a list of available vm's in /usr/lib/jvm/ +#But remenber that openfire needs a 1.5 jvm +GENTOO_VM=sun-jdk-1.5 diff --git a/net-im/openfire/files/openfire-initd b/net-im/openfire/files/openfire-initd new file mode 100644 index 000000000000..281e5197af2c --- /dev/null +++ b/net-im/openfire/files/openfire-initd @@ -0,0 +1,29 @@ +#!/sbin/openrc-run + +depend() { + need net + provide jabber-server +} + +start() { + [ -d /var/run/jabber ] || mkdir /var/run/jabber + #source /etc/env.d/java/20sun-jdk-1.5.0.06 + #OPENFIRE_CMD="${JAVA_HOME}/bin/java" + OPENFIRE_CMD=`GENTOO_VM=${GENTOO_VM} java-config -J` + + ebegin "Starting Openfire Server" + start-stop-daemon \ + --user jabber \ + --background \ + --make-pidfile \ + --pidfile /var/run/jabber/openfire.pid \ + --start \ + --exec ${OPENFIRE_CMD} -- ${OPENFIRE_ARGS} > /var/log/openfire.log 2>&1 + eend +} + +stop() { + ebegin "Stopping Openfire Messenger" + start-stop-daemon --pidfile /var/run/jabber/openfire.pid --stop + eend +} diff --git a/net-im/openfire/files/openfire.service b/net-im/openfire/files/openfire.service new file mode 100644 index 000000000000..6f2ff26ed497 --- /dev/null +++ b/net-im/openfire/files/openfire.service @@ -0,0 +1,13 @@ +[Unit] +Description=Openfire XMPP Server +After=network.target + +[Service] +User=jabber +Group=jabber +PrivateTmp=true +ExecStart=/usr/bin/java -server -Xmx256m -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib -classpath /opt/openfire/lib/startup.jar -jar /opt/openfire/lib/startup.jar +SuccessExitStatus=143 SIGKILL + +[Install] +WantedBy=multi-user.target diff --git a/net-im/openfire/metadata.xml b/net-im/openfire/metadata.xml new file mode 100644 index 000000000000..ecc7df224583 --- /dev/null +++ b/net-im/openfire/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + </maintainer> + <longdescription> + Openfire is a Java implementation of a complete Jabber + server. It includes a web based administration interface, conference + support and a web/client support system. + </longdescription> +</pkgmetadata> 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 000000000000..380dd1027786 --- /dev/null +++ b/net-im/openfire/openfire-4.1.0.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/net-im/openfire/openfire-4.1.4.ebuild b/net-im/openfire/openfire-4.1.4.ebuild new file mode 100644 index 000000000000..e6feaf1a438d --- /dev/null +++ b/net-im/openfire/openfire-4.1.4.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/net-im/openfire/openfire-4.1.5.ebuild b/net-im/openfire/openfire-4.1.5.ebuild new file mode 100644 index 000000000000..e6feaf1a438d --- /dev/null +++ b/net-im/openfire/openfire-4.1.5.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |