blob: 88b5488533229543fd466318943db75c2a59e9ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#!/bin/sh
#
# $NetBSD: gen-scripts.sh,v 1.2 2003/01/02 06:40:33 jlam Exp $
IASP_CLASSPATH=
for classpath in ${WRKSRC}/lib/*.jar ${WRKSRC}/servlets; do
destpath=`${ECHO} $classpath | ${SED} "s,${WRKSRC}/,${IASP}/,"`
if [ -z "$IASP_CLASSPATH" ]; then
IASP_CLASSPATH="$destpath"
else
IASP_CLASSPATH="$IASP_CLASSPATH:$destpath"
fi
done
${CAT} > ${WRKSRC}/iasp-classpath.conf << EOF
# This shell script fragment defines:
#
# IASP_CLASSPATH the list of jar files for the iASP server environment
#
IASP_CLASSPATH="${IASP_CLASSPATH}"
EOF
${CAT} > ${WRKSRC}/iasp-common.conf << EOF
# This shell script fragment contains the common settings for JAVA_HOME
# and CLASSPATH used by the iASP control scripts.
#
. ${IASP}/iasp-classpath.conf
if [ -z "\${JAVA_HOME}" ]; then
JAVA_HOME="${JAVA_HOME}"
fi
if [ -z "\${CLASSPATH}" ]; then
for file in \${JAVA_HOME}/lib/classes.zip \${JAVA_HOME}/lib/tools.jar
do
if [ -f \$file ]; then
if [ -z "\${IASP_CLASSPATH}" ]; then
CLASSPATH="$file"
else
CLASSPATH="\${CLASSPATH}:$file"
fi
fi
done
if [ -z "\${CLASSPATH}" ]; then
CLASSPATH="\${IASP_CLASSPATH}"
else
CLASSPATH="\${CLASSPATH}:\${IASP_CLASSPATH}"
fi
fi
export CLASSPATH JAVA_HOME
if [ -z "\${JAVA}" ]; then
JAVA="\${JAVA_HOME}/bin/java"
fi
EOF
${CAT} > ${WRKSRC}/start-server.sh << EOF
#!${SH}
. ${IASP}/iasp-common.conf
eval exec \${JAVA} servlet.http.HttpServer
EOF
${CHMOD} 555 ${WRKSRC}/start-server.sh
${CAT} > ${WRKSRC}/stop-server.sh << EOF
#!${SH}
. ${IASP}/iasp-common.conf
eval exec \${JAVA} servlet.http.HttpServerControl webserver
EOF
${CHMOD} 555 ${WRKSRC}/stop-server.sh
${CAT} > ${WRKSRC}/start-admin.sh << EOF
#!${SH}
. ${IASP}/iasp-common.conf
eval exec \${JAVA} servlet.webserver.WebHttpServer
EOF
${CHMOD} 555 ${WRKSRC}/start-admin.sh
${CAT} > ${WRKSRC}/stop-admin.sh << EOF
#!${SH}
. ${IASP}/iasp-common.conf
eval exec \${JAVA} servlet.http.HttpServerControl adminserver
EOF
${CHMOD} 555 ${WRKSRC}/stop-admin.sh
${CAT} > ${WRKSRC}/connector.sh << EOF
#!${SH}
. ${IASP}/iasp-common.conf
eval exec \${JAVA} connector.iasp_connector
EOF
${CHMOD} 555 ${WRKSRC}/connector.sh
|