aboutsummaryrefslogtreecommitdiffstats
path: root/community/openfire/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/openfire/APKBUILD')
-rw-r--r--community/openfire/APKBUILD86
1 files changed, 86 insertions, 0 deletions
diff --git a/community/openfire/APKBUILD b/community/openfire/APKBUILD
new file mode 100644
index 0000000000..fa16717877
--- /dev/null
+++ b/community/openfire/APKBUILD
@@ -0,0 +1,86 @@
+# Contributor: Taner Tas <taner76@gmail.com>
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=openfire
+pkgver=4.7.1
+pkgrel=0
+pkgdesc="Openfire is a cross-platform real-time collaboration server based on the XMPP (Jabber) protocol."
+url="https://www.igniterealtime.org/projects/openfire/"
+# riscv64 blocked by openjdk8
+arch="all !riscv64"
+license="Apache-2.0"
+depends="java-jre-headless"
+makedepends="maven"
+subpackages="$pkgname-plugins::noarch $pkgname-openrc"
+source="
+ $pkgname-$pkgver.tar.gz::https://github.com/igniterealtime/Openfire/archive/refs/tags/v$pkgver.tar.gz
+ $pkgname.initd
+ $pkgname.confd
+ $pkgname.logrotate
+ "
+pkgusers="openfire"
+pkggroups="openfire"
+install="
+ $pkgname.pre-install
+ openfire.post-install
+ openfire.post-upgrade
+ "
+options="net !check" # No test suite
+_ofhome="/var/lib/openfire"
+builddir="$srcdir/Openfire-$pkgver"
+
+build() {
+ rm -rf distribution/src/nativeAuth
+ make
+}
+
+package() {
+ install -dm0755 "$pkgdir/$_ofhome"
+ install -dm0755 "$pkgdir/$_ofhome"/plugins
+
+ cp -r distribution/target/distribution-base/conf "$pkgdir/$_ofhome"/
+ cp -r distribution/target/distribution-base/lib "$pkgdir/$_ofhome"/
+ cp -r distribution/target/distribution-base/resources "$pkgdir/$_ofhome"/
+ cp -r distribution/target/distribution-base/plugins/admin "$pkgdir/$_ofhome"/plugins/
+
+ find "$pkgdir" -type f -exec chmod 0644 {} \;
+ find "$pkgdir" -type d -exec chmod 0755 {} \;
+ find "$pkgdir" -type d -exec chmod u-s,g-s {} \;
+
+ chmod 0700 "$pkgdir/$_ofhome"/conf \
+ "$pkgdir/$_ofhome"/resources/security
+
+ cd "$pkgdir/$_ofhome"/conf
+ for i in openfire.xml security.xml
+ do
+ mv "$i" "$i".default
+ chmod 0600 "$i".default
+ done
+
+ cd "$pkgdir/$_ofhome"/resources/security
+ for i in client.truststore keystore truststore
+ do
+ mv "$i" "$i".default
+ chmod 0600 "$i".default
+ done
+
+ chown -R $pkgusers:$pkggroups "$pkgdir/$_ofhome"
+
+ install -Dm0755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -Dm0644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install -Dm0644 "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
+
+}
+
+plugins() {
+ cd "$builddir"
+ install -dm755 "$subpkgdir/$_ofhome"/plugins
+ cp distribution/target/distribution-base/plugins/*.jar "$subpkgdir/$_ofhome"/plugins/
+ chown -R $pkgusers:$pkggroups "$subpkgdir/$_ofhome"
+}
+
+sha512sums="
+7da8143a67df5cfb9cb4d0653e7cd06240f0421c1e8c10055545162353a17422a7e7b60274f67270c4d79e3adba140ec2c88a4bcb1814f83dec4dbd428236db9 openfire-4.7.1.tar.gz
+95a486898b84c4b7b0e3a60ceb7ccbb5d383451228b9c5090dc58513afc9513095e6c124e2ef170912376a7179d058b106d3bbd69db7b7204ff5f1be13823bdc openfire.initd
+e952b1dbf10df6c8303f6e71ae08853a1901cbf92f059c3dc927e0085365e6c4752d2c5ddaa9ce1da944a164ee0f29b1057e10a61840814bff3722020253b5bf openfire.confd
+e17684600700c85d366549b7ac9fec64b9abcd1fd53e131e2d5b9d53514865ad0eacb25618dfc6c264af25fb880e761cdd7349bdcbc22c1f65a6fa7444dcd2a7 openfire.logrotate
+"