[arch-commits] Commit in openfire/repos/community-any (5 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Feb 9 10:01:42 UTC 2015


    Date: Monday, February 9, 2015 @ 11:01:42
  Author: mtorromeo
Revision: 127362

No fixed uid/gid to avoid problems with older installations

Added:
  openfire/repos/community-any/PKGBUILD
  openfire/repos/community-any/openfire.conf
  openfire/repos/community-any/openfire.install
  openfire/repos/community-any/openfire.service
Modified:
  openfire/repos/community-any/user.conf

------------------+
 PKGBUILD         |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 openfire.conf    |    3 ++
 openfire.install |    8 +++++++
 openfire.service |   14 +++++++++++++
 user.conf        |    2 -
 5 files changed, 81 insertions(+), 1 deletion(-)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-02-09 10:01:42 UTC (rev 127362)
@@ -0,0 +1,55 @@
+# $Id: PKGBUILD 127360 2015-02-09 10:00:01Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=openfire
+pkgver=3.9.3
+pkgrel=3
+pkgdesc="High performance XMPP (Jabber) server."
+arch=('any')
+url='http://www.igniterealtime.org/projects/openfire/'
+license=('GPL')
+depends=('java-runtime-headless')
+makedepends=('apache-ant')
+install='openfire.install'
+backup=(
+	'etc/openfire/openfire.xml' 'etc/openfire/openfire.xml' 'etc/openfire/openfire.xml' \
+	'etc/conf.d/openfire' 'etc/openfire/security/keystore' 'etc/openfire/security/truststore' \
+	'etc/openfire/security/client.truststore')
+source=("http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_src_${pkgver//./_}.tar.gz" \
+	'openfire.conf' 'openfire.service' 'user.conf')
+
+build() {
+	cd "$srcdir"/openfire_src/build
+	rm -rf ../src/resources/nativeAuth/
+	ant openfire
+# 	ant plugins
+}
+
+package() {
+	cd "$pkgdir"
+	install -dm755 usr/lib usr/share/openfire/resources etc/openfire var/log/openfire
+
+	cd "$srcdir"
+	install -Dm644 openfire.conf "$pkgdir"/etc/conf.d/openfire
+	install -Dm644 openfire.service "$pkgdir"/usr/lib/systemd/system/openfire.service
+	install -Dm644 user.conf "$pkgdir"/usr/lib/sysusers.d/openfire.conf
+
+	cd openfire_src/target/openfire
+	rm -rf bin logs
+
+	cp -R conf/* "$pkgdir"/etc/openfire/
+	ln -s /etc/openfire "$pkgdir"/usr/share/openfire/conf
+
+	cp -R resources/security "$pkgdir"/etc/openfire/
+	ln -s /etc/openfire/security "$pkgdir"/usr/share/openfire/resources/security
+
+	cp -R plugins "$pkgdir"/usr/share/openfire/
+	cp -R resources/{database,spank} "$pkgdir"/usr/share/openfire/resources/
+	cp -R lib "$pkgdir"/usr/lib/openfire
+}
+
+sha256sums=('37001835a3007f115214aa83f2a48f8c33bbf3576937f4d964d9eb3de3933ad2'
+            'c8a612abee90bdc9a2869e562a4bbbf596159c60adcd23368833a0e2ca27c1d4'
+            '772332b66a90935ddb8075eb10eab9b95a84caa45908bb3fa5861d7fa148399c'
+            '743d07158d40f3690684a078d5f35c53c819e45d4ff0c2016b0f33662363614f')

Added: openfire.conf
===================================================================
--- openfire.conf	                        (rev 0)
+++ openfire.conf	2015-02-09 10:01:42 UTC (rev 127362)
@@ -0,0 +1,3 @@
+# If you wish to set any specific options to pass to the JVM, you can
+# set them with the following variable.
+#OPENFIRE_OPTS="-Xmx1024m"
\ No newline at end of file

Added: openfire.install
===================================================================
--- openfire.install	                        (rev 0)
+++ openfire.install	2015-02-09 10:01:42 UTC (rev 127362)
@@ -0,0 +1,8 @@
+post_install() {
+  systemd-sysusers openfire.conf
+  chown -R openfire:openfire var/log/openfire usr/share/openfire etc/openfire
+}
+
+post_upgrade() {
+  post_install
+}

Added: openfire.service
===================================================================
--- openfire.service	                        (rev 0)
+++ openfire.service	2015-02-09 10:01:42 UTC (rev 127362)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Openfire XMPP Server
+After=network.target
+
+[Service]
+Type=simple
+User=openfire
+Group=openfire
+PrivateTmp=true
+ExecStart=/usr/bin/java -server -DopenfireHome=/usr/share/openfire -Dopenfire.lib.dir=/usr/lib/openfire -classpath /usr/lib/openfire/startup.jar -jar /usr/lib/openfire/startup.jar
+SuccessExitStatus=143 SIGKILL
+
+[Install]
+WantedBy=multi-user.target

Modified: user.conf
===================================================================
--- user.conf	2015-02-09 10:00:16 UTC (rev 127361)
+++ user.conf	2015-02-09 10:01:42 UTC (rev 127362)
@@ -1 +1 @@
-u openfire 115 "openfire user" /usr/share/openfire
+u openfire - "openfire user" /usr/share/openfire



More information about the arch-commits mailing list