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

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Feb 9 09:49:48 UTC 2015


    Date: Monday, February 9, 2015 @ 10:49:48
  Author: mtorromeo
Revision: 127358

archrelease: copy trunk to community-any

Added:
  openfire/repos/community-any/PKGBUILD
    (from rev 127357, openfire/trunk/PKGBUILD)
  openfire/repos/community-any/openfire.conf
    (from rev 127357, openfire/trunk/openfire.conf)
  openfire/repos/community-any/openfire.install
    (from rev 127357, openfire/trunk/openfire.install)
  openfire/repos/community-any/openfire.service
    (from rev 127357, openfire/trunk/openfire.service)
  openfire/repos/community-any/user.conf
    (from rev 127357, openfire/trunk/user.conf)
Deleted:
  openfire/repos/community-any/PKGBUILD
  openfire/repos/community-any/openfire.conf
  openfire/repos/community-any/openfire.install
  openfire/repos/community-any/openfire.service

------------------+
 PKGBUILD         |  111 +++++++++++++++++++++++++++--------------------------
 openfire.conf    |    6 +-
 openfire.install |   18 +-------
 openfire.service |   28 ++++++-------
 user.conf        |    1 
 5 files changed, 79 insertions(+), 85 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-09 09:49:39 UTC (rev 127357)
+++ PKGBUILD	2015-02-09 09:49:48 UTC (rev 127358)
@@ -1,53 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: Pierre Schmitz <pierre at archlinux.de>
-
-pkgname=openfire
-pkgver=3.9.3
-pkgrel=1
-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')
-
-build() {
-	cd "$srcdir/openfire_src/build"
-	rm -rf ../src/resources/nativeAuth/
-	ant openfire
-# 	ant plugins
-}
-
-package() {
-	cd "$srcdir/openfire_src/target/openfire"
-
-	install -dm755 "$pkgdir/usr/lib" "$pkgdir/usr/share/openfire/resources"
-	install -dm750 "$pkgdir/etc/openfire" "$pkgdir/var/log/openfire"
-
-	install -Dm644 "$srcdir/openfire.conf" "$pkgdir/etc/conf.d/openfire"
-	install -Dm644 "$srcdir/openfire.service" "$pkgdir/usr/lib/systemd/system/openfire.service"
-
-	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')

Copied: openfire/repos/community-any/PKGBUILD (from rev 127357, openfire/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-02-09 09:49:48 UTC (rev 127358)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=openfire
+pkgver=3.9.3
+pkgrel=2
+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
+
+	cd "$pkgdir"
+	chown -Rh 115:115 var/log/openfire usr/share/openfire etc/openfire
+}
+
+sha256sums=('37001835a3007f115214aa83f2a48f8c33bbf3576937f4d964d9eb3de3933ad2'
+            'c8a612abee90bdc9a2869e562a4bbbf596159c60adcd23368833a0e2ca27c1d4'
+            '772332b66a90935ddb8075eb10eab9b95a84caa45908bb3fa5861d7fa148399c'
+            'f44b92b2b17cee66293caa10f50eeb83475390591c25ab4f7c8be3878465c137')

Deleted: openfire.conf
===================================================================
--- openfire.conf	2015-02-09 09:49:39 UTC (rev 127357)
+++ openfire.conf	2015-02-09 09:49:48 UTC (rev 127358)
@@ -1,3 +0,0 @@
-# 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

Copied: openfire/repos/community-any/openfire.conf (from rev 127357, openfire/trunk/openfire.conf)
===================================================================
--- openfire.conf	                        (rev 0)
+++ openfire.conf	2015-02-09 09:49:48 UTC (rev 127358)
@@ -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

Deleted: openfire.install
===================================================================
--- openfire.install	2015-02-09 09:49:39 UTC (rev 127357)
+++ openfire.install	2015-02-09 09:49:48 UTC (rev 127358)
@@ -1,15 +0,0 @@
-post_install() {
-  getent group openfire >/dev/null 2>&1 || groupadd -r openfire &>/dev/null;
-  getent passwd openfire >/dev/null 2>&1 || useradd -rg openfire -d /usr/share/openfire -s /bin/false openfire &>/dev/null
-
-  chown -R openfire:openfire var/log/openfire usr/share/openfire etc/openfire
-}
-
-post_upgrade() {
-  post_install
-}
-
-pre_remove() {
-  getent passwd openfire >/dev/null 2>&1 && userdel openfire &> /dev/null
-  getent group openfire >/dev/null 2>&1 && groupdel openfire &> /dev/null
-}

Copied: openfire/repos/community-any/openfire.install (from rev 127357, openfire/trunk/openfire.install)
===================================================================
--- openfire.install	                        (rev 0)
+++ openfire.install	2015-02-09 09:49:48 UTC (rev 127358)
@@ -0,0 +1,3 @@
+post_install() {
+  systemd-sysusers openfire.conf
+}

Deleted: openfire.service
===================================================================
--- openfire.service	2015-02-09 09:49:39 UTC (rev 127357)
+++ openfire.service	2015-02-09 09:49:48 UTC (rev 127358)
@@ -1,14 +0,0 @@
-[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

Copied: openfire/repos/community-any/openfire.service (from rev 127357, openfire/trunk/openfire.service)
===================================================================
--- openfire.service	                        (rev 0)
+++ openfire.service	2015-02-09 09:49:48 UTC (rev 127358)
@@ -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

Copied: openfire/repos/community-any/user.conf (from rev 127357, openfire/trunk/user.conf)
===================================================================
--- user.conf	                        (rev 0)
+++ user.conf	2015-02-09 09:49:48 UTC (rev 127358)
@@ -0,0 +1 @@
+u openfire 115 "openfire user" /usr/share/openfire



More information about the arch-commits mailing list