summaryrefslogtreecommitdiff
path: root/security/jeta
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-02-22 12:44:29 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-02-22 12:44:29 +0000
commit2fb21a3f657b2c840d890b085defd77b58dc2a35 (patch)
tree3065c6d565eac24beb80f324fe79169266594d8b /security/jeta
parent- Minor tweaks (diff)
Add port security/jeta:
Jeta is the Horde wrapper around various Java SSH applets. It allows users to login via a terminal window to the server on which the Horde application is running. WWW: http://www.horde.org/jeta/ PR: ports/109095 Submitted by: Beech Rintoul <beech@alaskaparadise.com>
Notes
Notes: svn path=/head/; revision=185696
Diffstat (limited to 'security/jeta')
-rw-r--r--security/jeta/Makefile79
-rw-r--r--security/jeta/distinfo3
-rw-r--r--security/jeta/files/pkg-deinstall.in23
-rw-r--r--security/jeta/files/pkg-install.in23
-rw-r--r--security/jeta/files/pkg-message.in20
-rw-r--r--security/jeta/pkg-descr5
-rw-r--r--security/jeta/pkg-plist60
7 files changed, 213 insertions, 0 deletions
diff --git a/security/jeta/Makefile b/security/jeta/Makefile
new file mode 100644
index 000000000000..caab0235aef2
--- /dev/null
+++ b/security/jeta/Makefile
@@ -0,0 +1,79 @@
+# Ports collection makefile for: jeta
+# Date created: Sat Feb 10, 2007
+# Whom: Beech Rintoul <beech@alaskaparadise.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jeta
+PORTVERSION= 1.0
+CATEGORIES= security www
+MASTER_SITES= HORDE
+DISTNAME= ${PORTNAME}-h3-${PORTVERSION}
+
+MAINTAINER= beech@alaskaparadise.com
+COMMENT= Horde wrapper around various Java SSH applets
+
+RUN_DEPENDS= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde
+
+NO_BUILD= yes
+USE_APACHE= 1.3+ # needed to test APACHE_VERSION
+USE_GETTEXT= yes
+REINPLACE_ARGS= -i.beforeJETA
+
+PORTDOCS= README CHANGES CREDITS INSTALL RELEASE_NOTES
+CONFFILE= prefs.php conf.xml .htaccess conf.xml.beforeJETA
+SUB_DIRS= config jar lib locale po templates themes
+
+LHORDEDIR?= www/horde
+LJETADIR= ${LHORDEDIR}/jeta
+PEARDIR?= ${LOCALBASE}/share/pear
+
+PLIST_SUB= JETADIR=${LJETADIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+SUB_FILES= pkg-message pkg-install pkg-deinstall
+SUB_LIST= JETADIR=${JETADIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR}
+
+JETADIR= ${PREFIX}/${LJETADIR}
+CONFDIR= ${JETADIR}/config
+
+PORTREV_H?= ${LOCALBASE}/include/c-client/portrevision.h
+
+.include <bsd.port.pre.mk>
+
+.if ${APACHE_VERSION} >= 20
+HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/
+.else
+HORDE_INC= ${LOCALBASE}/etc/horde/
+.endif
+
+post-extract:
+ @${MV} ${WRKSRC}/README ${WRKSRC}/docs/
+
+pre-configure:
+ @${REINPLACE_CMD} -e "s:/usr/local:${LOCALBASE}:" ${WRKSRC}/config/conf.xml
+
+do-install:
+ @${INSTALL} -d ${JETADIR}/
+.for REP in ${SUB_DIRS}
+ @${CP} -Rp ${WRKSRC}/${REP} ${JETADIR}/
+.endfor
+ @${CP} -p ${WRKSRC}/*.php ${JETADIR}/
+ @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${JETADIR}/
+ @${CHMOD} -R o-rwx ${CONFDIR}/
+
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d ${DOCSDIR}/
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}/
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.post.mk>
diff --git a/security/jeta/distinfo b/security/jeta/distinfo
new file mode 100644
index 000000000000..3cd06c147b94
--- /dev/null
+++ b/security/jeta/distinfo
@@ -0,0 +1,3 @@
+MD5 (jeta-h3-1.0.tar.gz) = 674449d79e603db2fa88c6de8882ccd4
+SHA256 (jeta-h3-1.0.tar.gz) = 6abf801d70452f1186af1cd6415cde582dcb41b81fe30a1ef09db575cc46bd70
+SIZE (jeta-h3-1.0.tar.gz) = 3213231
diff --git a/security/jeta/files/pkg-deinstall.in b/security/jeta/files/pkg-deinstall.in
new file mode 100644
index 000000000000..9767bd6ef0f7
--- /dev/null
+++ b/security/jeta/files/pkg-deinstall.in
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD:
+#
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+
+if [ -z "${PACKAGE_BUILDING}" ]; then
+ for cf in `ls %%JETADIR%%/config/*php`; do
+ diff -bBqw $cf $cf.dist >/dev/null 2>&1
+ case $? in
+ 0) # original config file, delete it
+ rm -f $cf
+ ;;
+ 1) # config file has been updated, leave it alone
+ ;;
+ *) # not found?
+ ;;
+ esac
+ done
+fi
diff --git a/security/jeta/files/pkg-install.in b/security/jeta/files/pkg-install.in
new file mode 100644
index 000000000000..aece92a67bd8
--- /dev/null
+++ b/security/jeta/files/pkg-install.in
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD:
+#
+
+PATH=/usr/sbin:/usr/bin:/bin ; export PATH
+
+case $2 in
+ PRE-INSTALL)
+ ;;
+
+ POST-INSTALL)
+ if [ -z "${PACKAGE_BUILDING}" ]; then
+ # Copy over sample config files unless they already exist
+
+ for cf in `ls %%JETADIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
+ if [ ! -f $cf ]; then
+ cp -p $cf.dist $cf
+ fi
+ done
+ fi
+ ;;
+esac
diff --git a/security/jeta/files/pkg-message.in b/security/jeta/files/pkg-message.in
new file mode 100644
index 000000000000..eb5587e696b0
--- /dev/null
+++ b/security/jeta/files/pkg-message.in
@@ -0,0 +1,20 @@
+************************************************************************
+Jeta has been installed in %%JETADIR%% with your blank
+configuration files.
+
+Horde must be configured and the tables created; if not, see
+`pkg_info -D -x horde'.
+
+Then, you might have to tune the configuration files located in
+%%CONFDIR%%/.
+
+Then, you must login to Horde as a Horde Administrator to finish the
+configuration. Please read %%DOCSDIR%%/INSTALL.
+
+To protect your configuration files, you have to restart your webserver.
+
+To secure your installation, it is at least recommended that you change
+the default database password used by horde.
+Then, you might change the 'session.save_path' setting in php.ini to a
+directory only readable and writeable by your webserver.
+************************************************************************
diff --git a/security/jeta/pkg-descr b/security/jeta/pkg-descr
new file mode 100644
index 000000000000..45a408facd6e
--- /dev/null
+++ b/security/jeta/pkg-descr
@@ -0,0 +1,5 @@
+Jeta is the Horde wrapper around various Java SSH applets. It allows users
+to login via a terminal window to the server on which the Horde application is
+running.
+
+WWW: http://www.horde.org/jeta/
diff --git a/security/jeta/pkg-plist b/security/jeta/pkg-plist
new file mode 100644
index 000000000000..abc4f3639768
--- /dev/null
+++ b/security/jeta/pkg-plist
@@ -0,0 +1,60 @@
+%%JETADIR%%/config/.htaccess
+%%JETADIR%%/config/conf.xml
+%%JETADIR%%/config/prefs.php.dist
+%%JETADIR%%/config/conf.xml.beforeJETA
+%%JETADIR%%/index.php
+%%JETADIR%%/jar/jta.conf
+%%JETADIR%%/jar/jta26.jar
+%%JETADIR%%/jar/SSHTermApplet-signed.jar
+%%JETADIR%%/jar/SSHTermApplet-jdk1.3.1-dependencies-signed.jar
+%%JETADIR%%/jar/SSHTermApplet-jdkbug-workaround-signed.jar
+%%JETADIR%%/lib/base.php
+%%JETADIR%%/lib/Applet.php
+%%JETADIR%%/lib/.htaccess
+%%JETADIR%%/lib/Applet/jta.php
+%%JETADIR%%/lib/Applet/sshtools.php
+%%JETADIR%%/lib/version.php
+%%JETADIR%%/locale/cs_CZ/LC_MESSAGES/jeta.mo
+%%JETADIR%%/locale/de_DE/LC_MESSAGES/jeta.mo
+%%JETADIR%%/locale/en_US/help.xml
+%%JETADIR%%/locale/es_ES/LC_MESSAGES/jeta.mo
+%%JETADIR%%/locale/fi_FI/LC_MESSAGES/jeta.mo
+%%JETADIR%%/locale/ro_RO/LC_MESSAGES/jeta.mo
+%%JETADIR%%/locale/zh_TW/LC_MESSAGES/jeta.mo
+%%JETADIR%%/main.php
+%%JETADIR%%/po/README
+%%JETADIR%%/po/jeta.pot
+%%JETADIR%%/po/cs_CZ.po
+%%JETADIR%%/po/de_DE.po
+%%JETADIR%%/po/es_ES.po
+%%JETADIR%%/po/fi_FI.po
+%%JETADIR%%/po/ro_RO.po
+%%JETADIR%%/po/zh_TW.po
+%%JETADIR%%/templates/common-header.inc
+%%JETADIR%%/templates/main.html
+%%JETADIR%%/test.php
+%%JETADIR%%/themes/graphics/favicon.ico
+%%JETADIR%%/themes/graphics/jeta.png
+@dirrm %%JETADIR%%/themes/graphics
+@dirrm %%JETADIR%%/themes
+@dirrm %%JETADIR%%/templates
+@dirrm %%JETADIR%%/po
+@dirrm %%JETADIR%%/locale/zh_TW/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/zh_TW
+@dirrm %%JETADIR%%/locale/ro_RO/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/ro_RO
+@dirrm %%JETADIR%%/locale/fi_FI/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/fi_FI
+@dirrm %%JETADIR%%/locale/es_ES/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/es_ES
+@dirrm %%JETADIR%%/locale/en_US
+@dirrm %%JETADIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/de_DE
+@dirrm %%JETADIR%%/locale/cs_CZ/LC_MESSAGES
+@dirrm %%JETADIR%%/locale/cs_CZ
+@dirrm %%JETADIR%%/locale
+@dirrm %%JETADIR%%/lib/Applet
+@dirrm %%JETADIR%%/lib
+@dirrmtry %%JETADIR%%/config
+@dirrmtry %%JETADIR%%/jar
+@dirrmtry %%JETADIR%%