diff options
-rw-r--r-- | network/openfire/README | 12 | ||||
-rw-r--r-- | network/openfire/README.SLACKWARE | 12 | ||||
-rw-r--r-- | network/openfire/openfire.SlackBuild | 37 | ||||
-rw-r--r-- | network/openfire/openfire.info | 6 | ||||
-rw-r--r-- | network/openfire/slack-desc | 14 |
5 files changed, 49 insertions, 32 deletions
diff --git a/network/openfire/README b/network/openfire/README index 7485f7dfd0..6edb1a6a57 100644 --- a/network/openfire/README +++ b/network/openfire/README @@ -1,8 +1,8 @@ -Openfire is a real time collaboration (RTC) server written in Java and -licensed under the Open Source Apache License. It uses the only widely -adopted open protocol for instant messaging, XMPP (also called Jabber). -Openfire is incredibly easy to setup and administer, but offers -rock-solid security and performance. +Openfire is a real time collaboration (RTC) server licensed under the +Open Source Apache License. It uses the only widely adopted open +protocol for instant messaging, XMPP (also called Jabber). Openfire is +incredibly easy to setup and administer, but offers rock-solid security +and performance. This script repacks the tar.gz into a slackware package. @@ -16,4 +16,4 @@ for example: useradd -u 265 -g 265 -c "Openfire Server" -m openfire -See README.SLACKWARE for setup details. +See README.SLACKWARE for more setup details. diff --git a/network/openfire/README.SLACKWARE b/network/openfire/README.SLACKWARE index 1746c640f4..4d200b65dd 100644 --- a/network/openfire/README.SLACKWARE +++ b/network/openfire/README.SLACKWARE @@ -1,4 +1,5 @@ ## Startup + To have this start upon each boot, add the following lines to /etc/rc.d/rc.local @@ -7,10 +8,17 @@ To have this start upon each boot, add the following lines to /etc/rc.d/rc.openfire start fi -to stop it at shutdown, add a similar entry substituting -"start" with "stop" in /etc/rc.d/rc.local_shutdown. +You will also want to put the following into /etc/rc.d/rc.local_shutdown +(if that file does not exist, create it and make it executable): + + # Stop openfire + if [ -x /etc/rc.d/rc.openfire ]; then + /etc/rc.d/rc.openfire stop + fi + ## Setup + For information about setup see: http://www.howtoforge.com/how-to-set-up-an-openfire-instant-messaging-server-on-centos-5.6 http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/database.html diff --git a/network/openfire/openfire.SlackBuild b/network/openfire/openfire.SlackBuild index a7724796d0..44fb36eabb 100644 --- a/network/openfire/openfire.SlackBuild +++ b/network/openfire/openfire.SlackBuild @@ -1,11 +1,10 @@ #!/bin/sh # -# Slackware build script for Zeromq-jzmq -# Written by Mário Antunes (mario.antunes@av.it.pt) -# Modified by the slackbuilds.org project +# Slackware build script for openfire +# Written by Mário Antunes (mariolpantunes@gmail.com) PRGNAM=openfire -VERSION=${VERSION:-3.7.1} +VERSION=${VERSION:-4.1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -24,9 +23,6 @@ OPENFIRE_UID=${OPENFIRE_UID:-265} OPENFIRE_GROUP=${OPENFIRE_GROUP:-openfire} OPENFIRE_GID=${OPENFIRE_GID:-265} -# Installation path -PREFIX=/opt/openfire - bailout() { echo " You must have a $OPENFIRE_USER user and $OPENFIRE_GROUP group to run this script. " echo " Something like this should suffice for most systems: " @@ -49,16 +45,18 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP - rm -rf $PRGNAM tar xvf $CWD/$PRGNAM\_$SRCVER.tar.gz cd $PRGNAM chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Installation path +PREFIX=/opt/$PRGNAM mkdir -p $PKG$PREFIX/ cp -a bin/ $PKG$PREFIX/ @@ -72,6 +70,17 @@ cp -a resources/ $PKG$PREFIX/ mkdir -p $PKG/var/log/$PRGNAM chown -R $OPENFIRE_USER:$OPENFIRE_GROUP $PKG$PREFIX $PKG/var/log/$PRGNAM +mkdir -p $PKG/etc/profile.d +cat << EOF > $PKG/etc/profile.d/$PRGNAM.sh +#!/bin/sh +export openfireHome=/opt/openfire +EOF +cat << EOF > $PKG/etc/profile.d/$PRGNAM.csh +#!/bin/csh +setenv openfireHome /opt/openfire +EOF +chmod 755 $PKG/etc/profile.d/* + mkdir -p $PKG/etc/rc.d sed \ -e "s|@OPENFIRE_USER@|$OPENFIRE_USER|" \ @@ -79,8 +88,8 @@ sed \ $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM chmod 755 $PKG/etc/rc.d/rc.$PRGNAM -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ - grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.html documentation/ $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/network/openfire/openfire.info b/network/openfire/openfire.info index 06d9ee99cc..25817fc247 100644 --- a/network/openfire/openfire.info +++ b/network/openfire/openfire.info @@ -1,8 +1,8 @@ PRGNAM="openfire" -VERSION="3.7.1" +VERSION="4.1.4" HOMEPAGE="http://www.igniterealtime.org/projects/openfire/" -DOWNLOAD="http://download.igniterealtime.org/openfire/openfire_3_7_1.tar.gz" -MD5SUM="ccc26d9ab01e0b08b67e419a8c028395" +DOWNLOAD="https://github.com/igniterealtime/Openfire/releases/download/v4.1.4/openfire_4_1_4.tar.gz" +MD5SUM="64842b2853db006165a67c80dc91edc7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jdk" diff --git a/network/openfire/slack-desc b/network/openfire/slack-desc index c05e9f32cd..354e149aca 100644 --- a/network/openfire/slack-desc +++ b/network/openfire/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| openfire: openfire (XMPP server) openfire: -openfire: Openfire is a real time collaboration (RTC) server written in Java -openfire: and licensed under the Open Source Apache License. -openfire: It uses the only widely adopted open protocol for instant messaging, -openfire: XMPP (also called Jabber). -openfire: Openfire is incredibly easy to setup and administer, but offers -openfire: rock-solid security and performance. +openfire: Openfire is a real time collaboration (RTC) server licensed under the +openfire: Open Source Apache License. It uses the only widely adopted open +openfire: protocol for instant messaging, XMPP (also called Jabber). Openfire +openfire: is incredibly easy to setup and administer, but offers rock-solid +openfire: security and performance. +openfire: +openfire: openfire: -openfire: homepage: http://www.igniterealtime.org/projects/openfire/ openfire: |