openbsd-ports/databases/jxplorer/files/jxplorer
aanriot 3e1e9a4ee2 JXplorer is an open source ldap browser originally developed by Computer
Associates' eTrust Directory development lab. It is a standards
compliant general purpose ldap browser that can be used to read and
search any ldap directory, or any X500 directory with an ldap
interface.

tested by matthieu@, ok mbalmer@
2007-05-31 18:13:15 +00:00

40 lines
878 B
Bash
Executable File

#!/bin/sh
# $OpenBSD: jxplorer,v 1.1.1.1 2007/05/31 18:13:15 aanriot Exp $
# jxplorer runtime wrapper
PATH=%%PREFIX%%/share/jxplorer/
DIRS="plugins security"
FILES="bookmarks.txt jxconfig.txt quicksearch.txt search_filters.txt"
LINKS="htmldocs icons images templates"
# create user preferences if they don't exist
if [ ! -d $HOME/.jxplorer/ ]; then
for d in $DIRS; do
/bin/mkdir -p $HOME/.jxplorer/$d
done
for f in $FILES; do
/usr/bin/touch $HOME/.jxplorer/$f
done
for l in $LINKS; do
/bin/ln -s $PATH/$l $HOME/.jxplorer/
done
/bin/cp $PATH/security/cacerts $HOME/.jxplorer/security/cacerts
/bin/cp $PATH/security/clientcerts $HOME/.jxplorer/security/clientcerts
fi
# jxplorer is creating stuff in the working directory so go there
cd $HOME/.jxplorer/
if [ "$1" = "console" ] ; then
/bin/sh $PATH/jxplorer.sh console
else
/bin/sh $PATH/jxplorer.sh
fi