aboutsummaryrefslogtreecommitdiff
path: root/net-im/openfire
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-07-28 23:05:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-07-28 23:05:41 +0000
commitfd52d191327a9f4daf587ac87570081eed7b757c (patch)
treec0d9e4efed0f988310911e2a4658d79035b03fc3 /net-im/openfire
parent7d8c4a26c42bf259e9a30956b9824efc5acee22c (diff)
downloadports-fd52d191327a9f4daf587ac87570081eed7b757c.tar.gz
ports-fd52d191327a9f4daf587ac87570081eed7b757c.zip
Notes
Diffstat (limited to 'net-im/openfire')
-rw-r--r--net-im/openfire/Makefile22
-rw-r--r--net-im/openfire/distinfo6
-rw-r--r--net-im/openfire/pkg-plist17
3 files changed, 26 insertions, 19 deletions
diff --git a/net-im/openfire/Makefile b/net-im/openfire/Makefile
index 9eaef699eed7..a5b52a747b21 100644
--- a/net-im/openfire/Makefile
+++ b/net-im/openfire/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= openfire
-PORTVERSION= 3.3.1
-PORTREVISION= 1
+PORTVERSION= 3.3.2
CATEGORIES= net-im java
MASTER_SITES= http://www.igniterealtime.org/downloadServlet?filename=openfire/
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
@@ -37,8 +36,9 @@ PUSER= openfire
PGROUP= ${PUSER}
MLINKS= ${VARLOG} ${DATADIR}/logs \
- ${VARDB} ${DATADIR}/embedded-db \
- ${ETCDIR} ${DATADIR}/conf
+ ${VARDB} ${DATADIR}/embedded-db \
+ ${ETCDIR} ${DATADIR}/conf \
+ ${ETCDIR} ${DATADIR}/resources/security
do-install:
@@ -49,7 +49,7 @@ do-install:
${MKDIR} ${VARLOG};
${MKDIR} ${VARDB};
- (cd ${INSTALL_WRKSRC}/resources && ${FIND} . \
+ (cd ${INSTALL_WRKSRC}/resources && ${FIND} . \! -path ./security\* \
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/resources)
(cd ${INSTALL_WRKSRC}/plugins && ${FIND} . \
@@ -67,10 +67,22 @@ do-install:
post-install:
${MKDIR} ${EXAMPLESDIR};
${CP} -p ${INSTALL_WRKSRC}/conf/openfire.xml ${EXAMPLESDIR}/openfire.xml
+ ${CP} -p ${INSTALL_WRKSRC}/resources/security/truststore \
+ ${EXAMPLESDIR}/truststore
+ ${CP} -p ${INSTALL_WRKSRC}/resources/security/keystore \
+ ${EXAMPLESDIR}/keystore
@if [ ! -f ${ETCDIR}/openfire.xml ]; then \
${MKDIR} ${ETCDIR}; \
${CP} -p ${INSTALL_WRKSRC}/conf/openfire.xml ${ETCDIR}/openfire.xml; \
fi
+ @if [ ! -f ${ETCDIR}/keystore ]; then \
+ ${CP} -p ${INSTALL_WRKSRC}/resources/security/keystore \
+ ${ETCDIR}/keystore; \
+ fi
+ @if [ ! -f ${ETCDIR}/truststore ]; then \
+ ${CP} -p ${INSTALL_WRKSRC}/resources/security/truststore \
+ ${ETCDIR}/truststore; \
+ fi
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${CHOWN} -R ${PUSER}:${PGROUP} ${ETCDIR}
${CHOWN} -R ${PUSER}:${PGROUP} ${VARDB}
diff --git a/net-im/openfire/distinfo b/net-im/openfire/distinfo
index ec2fa7eed511..111a9d1ce0a3 100644
--- a/net-im/openfire/distinfo
+++ b/net-im/openfire/distinfo
@@ -1,3 +1,3 @@
-MD5 (openfire_src_3_3_1.tar.gz) = a3f7d8bc58f85c7f6a93764ccaa94bd9
-SHA256 (openfire_src_3_3_1.tar.gz) = ace1324862e3906c457b8a20e918d2ac2af3ef328c8259081103de0e1b16ba95
-SIZE (openfire_src_3_3_1.tar.gz) = 48723953
+MD5 (openfire_src_3_3_2.tar.gz) = e156e12e098ee9a4f97ba7be84563233
+SHA256 (openfire_src_3_3_2.tar.gz) = bf8d3a7561d5a569c8fd5e22f384f56c6d6fcabd0a5167240590d873fa0a8377
+SIZE (openfire_src_3_3_2.tar.gz) = 48712324
diff --git a/net-im/openfire/pkg-plist b/net-im/openfire/pkg-plist
index 6229dfa3a168..1f09d568a730 100644
--- a/net-im/openfire/pkg-plist
+++ b/net-im/openfire/pkg-plist
@@ -1,11 +1,17 @@
@unexec %D/etc/rc.d/openfire stop > /dev/null 2>&1 || true
@unexec if cmp -s %D/etc/openfire/openfire.xml %D/%%EXAMPLESDIR%%/openfire.xml; then rm -f %D/etc/openfire/openfire.xml; else echo If permanently deleting this package, %%PREFIX%%/etc/openfire/openfire.xml must be removed manually; fi
+@unexec if cmp -s %D/etc/openfire/keystore %D/%%EXAMPLESDIR%%/keystore; then rm -f %D/etc/openfire/keystore; else echo If permanently deleting this package, %%PREFIX%%/etc/openfire/keystore must be removed manually; fi
+@unexec if cmp -s %D/etc/openfire/truststore %D/%%EXAMPLESDIR%%/truststore; then rm -f %D/etc/openfire/truststore; else echo If permanently deleting this package, %%PREFIX%%/etc/openfire/truststore must be removed manually; fi
@unexec [ -d %D/share/doc/openfire/javadoc ] && rm -rf %D/share/doc/openfire/javadoc
%%EXAMPLESDIR%%/openfire.xml
+%%EXAMPLESDIR%%/keystore
+%%EXAMPLESDIR%%/truststore
@exec [ -d /var/log/openfire ] || mkdir -p /var/log/openfire && chown openfire:openfire /var/log/openfire
@exec [ -d /var/db/openfire ] || mkdir -p /var/db/openfire && chown openfire:openfire /var/db/openfire
@exec [ -d %D/etc/openfire ] || mkdir -p %D/etc/openfire && chown openfire:openfire %D/etc/openfire
@exec [ -f %D/etc/openfire/openfire.xml ] || cp %%EXAMPLESDIR%%/openfire.xml %D/etc/openfire/openfire.xml && chown openfire:openfire %D/etc/openfire/openfire.xml
+@exec [ -f %D/etc/openfire/keystore ] || cp %%EXAMPLESDIR%%/keystore %D/etc/openfire/keystore && chown openfire:openfire %D/etc/openfire/keystore
+@exec [ -f %D/etc/openfire/truststore ] || cp %%EXAMPLESDIR%%/truststore %D/etc/openfire/truststore && chown openfire:openfire %D/etc/openfire/truststore
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.html
%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/changelog.html
@@ -265,23 +271,12 @@ share/java/openfire/resources/nativeAuth/linux-i386/libshaj.so
share/java/openfire/resources/nativeAuth/osx-ppc/libshaj.jnilib
share/java/openfire/resources/nativeAuth/solaris-sparc/libshaj.so
share/java/openfire/resources/nativeAuth/win32-x86/shaj.dll
-share/java/openfire/resources/security/keystore
-share/java/openfire/resources/security/truststore
-share/java/openfire/resources/spank/scripts/prototype.js
-share/java/openfire/resources/spank/scripts/flash.js
share/java/openfire/resources/spank/WEB-INF/web.xml
-share/java/openfire/resources/spank/crossdomain_version6.swf
share/java/openfire/resources/spank/index.html
-share/java/openfire/resources/spank/crossdomain_version8.swf
-share/java/openfire/resources/spank/flash6_gateway.swf
@exec [ -d %%PREFIX%%/%%DATADIR%% ] && chown -R openfire:openfire %%PREFIX%%/%%DATADIR%%
-share/nls/POSIX
-share/nls/en_US.US-ASCII
@dirrm share/java/openfire/resources/spank/WEB-INF
-@dirrm share/java/openfire/resources/spank/scripts
@dirrm share/java/openfire/resources/spank
-@dirrm share/java/openfire/resources/security
@dirrm share/java/openfire/resources/nativeAuth/win32-x86
@dirrm share/java/openfire/resources/nativeAuth/solaris-sparc
@dirrm share/java/openfire/resources/nativeAuth/osx-ppc