1 |
commit: ac2dedbbfc84bc56154be8c3b57ddfe342b94658 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 16 09:43:16 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 16 09:45:46 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac2dedbb |
7 |
|
8 |
net-im/openfire: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
net-im/openfire/Manifest | 1 - |
14 |
net-im/openfire/openfire-4.1.0.ebuild | 107 ---------------------------------- |
15 |
2 files changed, 108 deletions(-) |
16 |
|
17 |
diff --git a/net-im/openfire/Manifest b/net-im/openfire/Manifest |
18 |
index 2b4ef4e77e1..b05b5f8cfe0 100644 |
19 |
--- a/net-im/openfire/Manifest |
20 |
+++ b/net-im/openfire/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST openfire_src_4_1_0.tar.gz 103449811 BLAKE2B 4635da8c1c59f66b488951aa8844a4517e7a2a644dbb97f88ff508237127d8852bbaacd9eae7bc608839ccbe9a679a11da3d5539642d478c15b9edcb7b10e90c SHA512 3a4e26c260f6a91ece6e6d3fc7c3302b6f1735725ce2686bab8773981dad63ef653a25748852c32e4df8f6bde2882db4043d94b69eb774a5280285fd5b7cd96b |
23 |
DIST openfire_src_4_2_3.tar.gz 113557155 BLAKE2B f01bfb57ee76be4dfea11d450534f66f1b50450095cf2d752f910352057ab421f72603b8a79f809f1e9aef20004bb90e9514e68dccb95de709083de9410e4a57 SHA512 8b968c94fcd779544c90de34172b00d472dc2e42142f2aa5eda01f0e0c3dda903a3b9b6d82286916bb1ae8f97fb12f0a94aeb42fad1df0b2dd47e951e03b8523 |
24 |
|
25 |
diff --git a/net-im/openfire/openfire-4.1.0.ebuild b/net-im/openfire/openfire-4.1.0.ebuild |
26 |
deleted file mode 100644 |
27 |
index 380dd102778..00000000000 |
28 |
--- a/net-im/openfire/openfire-4.1.0.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,107 +0,0 @@ |
31 |
-# Copyright 1999-2016 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=5 |
35 |
- |
36 |
-inherit eutils java-pkg-2 java-ant-2 systemd |
37 |
- |
38 |
-MY_P=${PN}_src_${PV//./_} |
39 |
-DESCRIPTION="Openfire (formerly wildfire) real time collaboration (RTC) server" |
40 |
-HOMEPAGE="http://www.igniterealtime.org/projects/openfire/" |
41 |
-SRC_URI="http://www.igniterealtime.org/builds/openfire/${MY_P}.tar.gz" |
42 |
- |
43 |
-LICENSE="GPL-2" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="amd64 x86" |
46 |
-IUSE="doc" |
47 |
- |
48 |
-RDEPEND=">=virtual/jre-1.7" |
49 |
-DEPEND="net-im/jabber-base |
50 |
- ~dev-java/ant-contrib-1.0_beta2 |
51 |
- >=virtual/jdk-1.7" |
52 |
- |
53 |
-S=${WORKDIR}/${PN}_src |
54 |
- |
55 |
-pkg_setup() { |
56 |
- if [[ -f /etc/env.d/98openfire ]]; then |
57 |
- einfo "This is an upgrade" |
58 |
- ewarn "As the plugin API changed, at least these plugins need to be updated also:" |
59 |
- ewarn "User Search, IM Gateway, Fastpath, Monitoring" |
60 |
- ewarn "they can be downloaded via Admin Console or at" |
61 |
- ewarn " ${HOMEPAGE}" |
62 |
- else |
63 |
- ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:" |
64 |
- ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire " |
65 |
- ewarn "For more info see bug #139708" |
66 |
- sleep 11 |
67 |
- fi |
68 |
- java-pkg-2_pkg_setup |
69 |
-} |
70 |
- |
71 |
-src_compile() { |
72 |
- # Jikes doesn't support -source 1.5 |
73 |
- java-pkg_filter-compiler jikes |
74 |
- |
75 |
- ANT_TASKS="ant-contrib" |
76 |
- eant -f build/build.xml openfire plugins $(use_doc) |
77 |
- |
78 |
- # delete nativeAuth prebuilt libs: |
79 |
- # uses outdated unmaintained libshaj, does not support amd64 |
80 |
- rm -rfv target/openfire/resources/nativeAuth || die |
81 |
-} |
82 |
- |
83 |
-src_install() { |
84 |
- dodir /opt/openfire |
85 |
- |
86 |
- newinitd "${FILESDIR}"/openfire-initd openfire |
87 |
- newconfd "${FILESDIR}"/openfire-confd openfire |
88 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
89 |
- |
90 |
- dodir /opt/openfire/conf |
91 |
- insinto /opt/openfire/conf |
92 |
- newins target/openfire/conf/openfire.xml openfire.xml.sample |
93 |
- newins target/openfire/conf/security.xml security.xml.sample |
94 |
- |
95 |
- dodir /opt/openfire/logs |
96 |
- keepdir /opt/openfire/logs |
97 |
- |
98 |
- dodir /opt/openfire/lib |
99 |
- insinto /opt/openfire/lib |
100 |
- doins target/openfire/lib/* |
101 |
- |
102 |
- dodir /opt/openfire/plugins |
103 |
- insinto /opt/openfire/plugins |
104 |
- doins -r target/openfire/plugins/* |
105 |
- |
106 |
- dodir /opt/openfire/resources |
107 |
- insinto /opt/openfire/resources |
108 |
- doins -r target/openfire/resources/* |
109 |
- |
110 |
- if use doc; then |
111 |
- dohtml -r documentation/docs/* |
112 |
- fi |
113 |
- dodoc documentation/dist/* |
114 |
- |
115 |
- #Protect ssl key on upgrade |
116 |
- dodir /etc/env.d/ |
117 |
- echo 'CONFIG_PROTECT="/opt/openfire/resources/security/"' > "${D}"/etc/env.d/98openfire |
118 |
-} |
119 |
- |
120 |
-pkg_postinst() { |
121 |
- local src |
122 |
- local dst |
123 |
- |
124 |
- # http://community.igniterealtime.org/thread/52289 |
125 |
- for dst in "${ROOT}"/opt/openfire/conf/{openfire,security}.xml |
126 |
- do |
127 |
- src="${dst}".sample |
128 |
- if [[ -f "${dst}" ]]; then |
129 |
- einfo "Leaving old '${dst}'" |
130 |
- else |
131 |
- einfo "Created default '${dst}'. Please edit." |
132 |
- cp -v "${src}" "${dst}" || ewarn "cp '${dst}' failed" |
133 |
- chmod -v 0600 "${dst}" || ewarn "chmod '${dst}' failed" |
134 |
- fi |
135 |
- done |
136 |
- chown -R jabber:jabber "${ROOT}"/opt/openfire |
137 |
-} |