[Fedora-directory-commits] dsmlgw build.xml,1.5,1.6
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19593
Modified Files:
build.xml
Log Message:
added server-config.wsdd.in
Index: build.xml
===================================================================
RCS file: /cvs/dirsec/dsmlgw/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 23 Apr 2008 21:38:02 -0000 1.5
+++ build.xml 24 Apr 2008 14:54:25 -0000 1.6
@@ -86,6 +86,26 @@
<available file="${axisdist.dir}" type="dir"
property="havelocalaxisbin"/>
+ <!-- copy a file from file to tofile and replace @token@ with the value -->
+ <presetdef name="copyfilter">
+ <copy file="${src.file}" tofile="${dest.file}">
+ <filterchain>
+ <replacetokens>
+ <token key="package_name" value="${ant.project.name}"/>
+ <token key="runtime_javahome" value="${runtime.java.home}"/>
+ <token key="tomcat_home" value="${tomcat.home}"/>
+ <token key="tomcat_cmd" value="${tomcat.cmd}"/>
+ <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
+ <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
+ <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
+ <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
+ <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
+ <token key="dsmlgwuser" value="${dsmlgwuser}"/>
+ </replacetokens>
+ </filterchain>
+ </copy>
+ </presetdef>
+
<target name="help" description="get help">
<echo>
There are 6 jar files required to build ${ant.project.name}, specified
@@ -157,7 +177,8 @@
<copy file="${mail.jar}" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
<!-- install config files and etc. -->
<copy file="misc/dsmlgw.cfg" todir="${dist.dir}/webapps/axis/WEB-INF/classes"/>
- <copy file="misc/dsmlgw-deploy.wsdd" todir="${dist.dir}/webapps/axis/WEB-INF/classes"/>
+ <copyfilter file="misc/server-config.wsdd.in"
+ tofile="${dist.dir}/webapps/axis/WEB-INF/server-config.wsdd"/>
<copy file="misc/logging.properties" todir="${dist.dir}/webapps/axis/WEB-INF/classes"/>
<copy file="misc/log4j.properties" todir="${dist.dir}/webapps/axis/WEB-INF/classes"/>
</target>
@@ -173,26 +194,6 @@
</war>
</target>
- <!-- copy a file from file to tofile and replace @token@ with the value -->
- <presetdef name="copyfilter">
- <copy file="${src.file}" tofile="${dest.file}">
- <filterchain>
- <replacetokens>
- <token key="package_name" value="${ant.project.name}"/>
- <token key="runtime_javahome" value="${runtime.java.home}"/>
- <token key="tomcat_home" value="${tomcat.home}"/>
- <token key="tomcat_cmd" value="${tomcat.cmd}"/>
- <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
- <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
- <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
- <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
- <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
- <token key="dsmlgwuser" value="${dsmlgwuser}"/>
- </replacetokens>
- </filterchain>
- </copy>
- </presetdef>
-
<target name="makepkg" description="create the distribution package" depends="makewar">
<mkdir dir="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
<mkdir dir="${pkg.dir}${dsmlgwconfigdir}"/>
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc server-config.wsdd.in, NONE, 1.1
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25681
Added Files:
server-config.wsdd.in
Log Message:
added default server-config.wsdd
--- NEW FILE server-config.wsdd.in ---
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="disablePrettyXML" value="true"/>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.Directory" value="@dsmlgwrundir@/attachments"/>
<parameter name="dotNetSoapEncFix" value="true"/>
<parameter name="enableNamespacePrefixOptimization" value="false"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<service name="AdminService" provider="java:MSG">
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<service name="dsmlgw" provider="Handler">
<parameter name="handlerClass" value="com.netscape.dsml.gateway.gatewayHandler"/>
</service>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
</transport>
<transport name="local">
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
</deployment>
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc restart-ds-dsmlgw.in, NONE, 1.1 stop-ds-dsmlgw.in, NONE, 1.1 setup-ds-dsmlgw.in, 1.2, 1.3 start-ds-dsmlgw.in, 1.3, 1.4
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13196/dsmlgw/misc
Modified Files:
setup-ds-dsmlgw.in start-ds-dsmlgw.in
Added Files:
restart-ds-dsmlgw.in stop-ds-dsmlgw.in
Log Message:
added restart and stop commands - clean up setup, start, and build.xml
--- NEW FILE restart-ds-dsmlgw.in ---
#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
@dsmlgwsbindir@/stop-ds-dsmlgw
@dsmlgwsbindir@/start-ds-dsmlgw
--- NEW FILE stop-ds-dsmlgw.in ---
#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# source env. for dsmlgw
[ -f @dsmlgwconfigdir(a)/dsmlgw.env ] && . @dsmlgwconfigdir(a)/dsmlgw.env
kill `cat $CATALINA_PID`
Index: setup-ds-dsmlgw.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/misc/setup-ds-dsmlgw.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- setup-ds-dsmlgw.in 23 Apr 2008 18:28:26 -0000 1.2
+++ setup-ds-dsmlgw.in 23 Apr 2008 21:38:03 -0000 1.3
@@ -169,6 +169,12 @@
fi
done
+# tomcat needs the webapps/ROOT directory too
+if [ -d $dsmlgwdir/webapps/ROOT ] ; then
+ echo $dsmlgwdir/webapps/ROOT exists, skipping . . .
+else
+ ln -s $tomcat_home/webapps/ROOT $dsmlgwdir/webapps/ROOT
+fi
if [ -f "$inffile" ] ; then
hostname=`getValFromInf FullMachineName $inffile`
@@ -200,7 +206,7 @@
echo file $dsmlgwconfigdir/dsmlgw.cfg
echo exists already. If you want to force a reconfiguration, removing
echo your existing configuration and recreating it, run this script
- echo again with the "-r" argument.
+ echo again with the \"-r\" argument.
exit 1
fi
Index: start-ds-dsmlgw.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/misc/start-ds-dsmlgw.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- start-ds-dsmlgw.in 23 Apr 2008 18:29:21 -0000 1.3
+++ start-ds-dsmlgw.in 23 Apr 2008 21:38:03 -0000 1.4
@@ -25,7 +25,8 @@
[ -f @dsmlgwconfigdir(a)/dsmlgw.env ] && . @dsmlgwconfigdir(a)/dsmlgw.env
# if root, use su to execute the startup script - user is set in @initconfigdir@/@package_name@
-if [ "$USER" = "root" ] ; then
+myuid=`id | cut -f1 -d' '`
+if [ "$myuid" = 'uid=0(root)' ] ; then
su $TOMCAT_USER -c "@tomcat_cmd@ $@"
else
@tomcat_cmd@ $@
15 years, 11 months
[Fedora-directory-commits] dsmlgw build.xml,1.4,1.5
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13196/dsmlgw
Modified Files:
build.xml
Log Message:
added restart and stop commands - clean up setup, start, and build.xml
Index: build.xml
===================================================================
RCS file: /cvs/dirsec/dsmlgw/build.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- build.xml 23 Apr 2008 16:55:58 -0000 1.4
+++ build.xml 23 Apr 2008 21:38:02 -0000 1.5
@@ -151,9 +151,7 @@
<target name="pkgwebapp" description="create the webapps layout, prepare for WAR" depends="dist,useaxisbinpkg,copywebappsdir">
<!-- install jar files required at runtime -->
<copy file="${dist.dir}/dsmlgw.jar" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
- <!-- ldapjdk.jar should already be on the system - create symlink during setup
<copy file="${ldapjdk.jar}" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
- -->
<copy file="${codec.jar}" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
<copy file="${activation.jar}" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
<copy file="${mail.jar}" todir="${dist.dir}/webapps/axis/WEB-INF/lib"/>
@@ -174,47 +172,10 @@
</fileset>
</war>
</target>
-
- <target name="makepkg" description="create the distribution package" depends="makewar">
- <mkdir dir="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
- <mkdir dir="${pkg.dir}${dsmlgwconfigdir}"/>
- <mkdir dir="${pkg.dir}${dsmlgwlogdir}"/>
- <mkdir dir="${pkg.dir}${dsmlgwrundir}"/>
- <mkdir dir="${pkg.dir}${dsmlgwsbindir}"/>
- <unjar src="${dist.dir}/dsmlgw.war" dest="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
- <copy file="misc/setup-ds-dsmlgw.in" tofile="${pkg.dir}${dsmlgwsbindir}/setup-ds-dsmlgw">
- <filterchain>
- <replacetokens>
- <token key="package_name" value="${ant.project.name}"/>
- <token key="runtime_javahome" value="${runtime.java.home}"/>
- <token key="tomcat_home" value="${tomcat.home}"/>
- <token key="tomcat_cmd" value="${tomcat.cmd}"/>
- <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
- <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
- <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
- <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
- <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
- <token key="dsmlgwuser" value="${dsmlgwuser}"/>
- </replacetokens>
- </filterchain>
- </copy>
- <copy file="misc/start-ds-dsmlgw.in" tofile="${pkg.dir}${dsmlgwsbindir}/start-ds-dsmlgw">
- <filterchain>
- <replacetokens>
- <token key="package_name" value="${ant.project.name}"/>
- <token key="runtime_javahome" value="${runtime.java.home}"/>
- <token key="tomcat_home" value="${tomcat.home}"/>
- <token key="tomcat_cmd" value="${tomcat.cmd}"/>
- <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
- <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
- <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
- <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
- <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
- <token key="dsmlgwuser" value="${dsmlgwuser}"/>
- </replacetokens>
- </filterchain>
- </copy>
- <copy file="misc/dsmlgw.env.in" tofile="${pkg.dir}${dsmlgwconfigdir}/dsmlgw.env">
+
+ <!-- copy a file from file to tofile and replace @token@ with the value -->
+ <presetdef name="copyfilter">
+ <copy file="${src.file}" tofile="${dest.file}">
<filterchain>
<replacetokens>
<token key="package_name" value="${ant.project.name}"/>
@@ -230,7 +191,32 @@
</replacetokens>
</filterchain>
</copy>
+ </presetdef>
+
+ <target name="makepkg" description="create the distribution package" depends="makewar">
+ <mkdir dir="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
+ <mkdir dir="${pkg.dir}${dsmlgwconfigdir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwlogdir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwrundir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwsbindir}"/>
+ <unjar src="${dist.dir}/dsmlgw.war" dest="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
+ <copyfilter file="misc/setup-ds-dsmlgw.in"
+ tofile="${pkg.dir}${dsmlgwsbindir}/setup-ds-dsmlgw"/>
+ <chmod file="${pkg.dir}${dsmlgwsbindir}/setup-ds-dsmlgw" perm="0755"/>
+ <copyfilter file="misc/start-ds-dsmlgw.in"
+ tofile="${pkg.dir}${dsmlgwsbindir}/start-ds-dsmlgw"/>
+ <chmod file="${pkg.dir}${dsmlgwsbindir}/start-ds-dsmlgw" perm="0755"/>
+ <copyfilter file="misc/stop-ds-dsmlgw.in"
+ tofile="${pkg.dir}${dsmlgwsbindir}/stop-ds-dsmlgw"/>
+ <chmod file="${pkg.dir}${dsmlgwsbindir}/stop-ds-dsmlgw" perm="0755"/>
+ <copyfilter file="misc/restart-ds-dsmlgw.in"
+ tofile="${pkg.dir}${dsmlgwsbindir}/restart-ds-dsmlgw"/>
+ <chmod file="${pkg.dir}${dsmlgwsbindir}/restart-ds-dsmlgw" perm="0755"/>
+ <copyfilter file="misc/dsmlgw.env.in"
+ tofile="${pkg.dir}${dsmlgwconfigdir}/dsmlgw.env"/>
+ <chmod file="${pkg.dir}${dsmlgwconfigdir}/dsmlgw.env" perm="0644"/>
<copy file="misc/dsmlgw.cfg" todir="${pkg.dir}${dsmlgwconfigdir}"/>
+ <chmod file="${pkg.dir}${dsmlgwconfigdir}/dsmlgw.cfg" perm="0644"/>
<tar destfile="${dist.dir}/${ant.project.name}-${version}.tar"
basedir="${pkg.dir}"/>
<gzip zipfile="${dist.dir}/${ant.project.name}-${version}.tar.gz"
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc start-ds-dsmlgw.in,1.2,1.3
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21090
Modified Files:
start-ds-dsmlgw.in
Log Message:
TOMCAT_USER not CATALINA_USER
Index: start-ds-dsmlgw.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/misc/start-ds-dsmlgw.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- start-ds-dsmlgw.in 23 Apr 2008 18:28:53 -0000 1.2
+++ start-ds-dsmlgw.in 23 Apr 2008 18:29:21 -0000 1.3
@@ -26,7 +26,7 @@
# if root, use su to execute the startup script - user is set in @initconfigdir@/@package_name@
if [ "$USER" = "root" ] ; then
- su $CATALINA_USER -c "@tomcat_cmd@ $@"
+ su $TOMCAT_USER -c "@tomcat_cmd@ $@"
else
@tomcat_cmd@ $@
fi
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc start-ds-dsmlgw.in,1.1,1.2
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21063
Modified Files:
start-ds-dsmlgw.in
Log Message:
use su instead of su -
Index: start-ds-dsmlgw.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/misc/start-ds-dsmlgw.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- start-ds-dsmlgw.in 23 Apr 2008 16:55:58 -0000 1.1
+++ start-ds-dsmlgw.in 23 Apr 2008 18:28:53 -0000 1.2
@@ -26,7 +26,7 @@
# if root, use su to execute the startup script - user is set in @initconfigdir@/@package_name@
if [ "$USER" = "root" ] ; then
- su - $CATALINA_USER -c "@tomcat_cmd@ $@"
+ su $CATALINA_USER -c "@tomcat_cmd@ $@"
else
@tomcat_cmd@ $@
fi
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc setup-ds-dsmlgw.in,1.1,1.2
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21023
Modified Files:
setup-ds-dsmlgw.in
Log Message:
update dsmlgw.cfg and dsmlgw.env with correct information
Index: setup-ds-dsmlgw.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/misc/setup-ds-dsmlgw.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- setup-ds-dsmlgw.in 23 Apr 2008 16:55:58 -0000 1.1
+++ setup-ds-dsmlgw.in 23 Apr 2008 18:28:26 -0000 1.2
@@ -55,30 +55,22 @@
# e.g. /etc/dirsrv/dsmlgw
dsmlgwconfigdir="@dsmlgwconfigdir@"
+dsmlgwlogdir="@dsmlgwlogdir@"
+dsmlgwrundir="@dsmlgwrundir@"
basecfgdir=`dirname $dsmlgwconfigdir`
-# default security dir
-securitydir="@securitydir@"
-defaultsecdir=1
+securitydir="@dsmlgwconfigdir@"
# see if there is a $dsmlgwconfigdir/../admin-serv
admservdir=$basecfgdir/admin-serv
if [ -f "$admservdir/local.conf" ] ; then
echo Reading parameters from Administration Server config . . .
host=`getValFromLdif serverHostName "$admservdir/local.conf"`
- port=`getValFromLdif configuration.nsServerPort "$admservdir/local.conf"`
sec=`getValFromLdif configuration.nsServerSecurity "$admservdir/local.conf"`
- if [ "$sec" = "on" ] ; then
- httpurl="https://$host:$port"
- if [ -n "$defaultsecdir" ] ; then
- securitydir="$admservdir"
- defaultsecdir=
- fi
- else
- httpurl="http://$host:$port"
+ if [ "$sec" = "on" -a ! -f $securitydir/cert8.db ] ; then
+ cp $admservdir/cert8.db $securitydir
fi
dsmlgwuser=`ls -l $admservdir/local.conf | awk '{print $3}'`
dsmlgwgroup=`ls -l $admservdir/local.conf | awk '{print $4}'`
- echo Using Administration Server URL $httpurl . . .
else
echo
echo '########################################################################'
@@ -102,20 +94,13 @@
if [ "$sec" = "on" ] ; then
port=`getValFromLdif nsslapd-secureport "$dir/dse.ldif"`
ldapurl="ldaps://$host:$port"
- if [ -n "$defaultsecdir" ] ; then
- securitydir="$dir"
- defaultsecdir=
+ if [ ! -f $securitydir/cert8.db ] ; then
+ cp $dir/cert8.db $securitydir
fi
else
port=`getValFromLdif nsslapd-port "$dir/dse.ldif"`
ldapurl="ldap://$host:$port"
fi
- # get suffix - first non-netscaperoot suffix
- savesuffix="$suffix"
- suffix=`grep ^nsslapd-suffix: $dir/dse.ldif | sed -e 's/^nsslapd-suffix:[ ]*//' | grep -v -i o=netscaperoot | head -1`
- if [ -z "$suffix" ] ; then
- suffix="$savesuffix"
- fi
if [ -z "$dsmlgwuser" ] ; then
dsmlgwuser=`ls -l $dir/dse.ldif | awk '{print $3}'`
fi
@@ -126,7 +111,7 @@
done
if [ -n "$ldapurl" ] ; then
- echo Using Directory Server URL $ldapurl/$suffix . . .
+ echo Using Directory Server URL $ldapurl
fi
# get command line arguments
@@ -188,10 +173,7 @@
if [ -f "$inffile" ] ; then
hostname=`getValFromInf FullMachineName $inffile`
port=`getValFromInf ServerPort $inffile`
- suffix=`getValFromInf Suffix $inffile`
dirmgr=`getValFromInf RootDN $inffile`
- httpport=`getValFromInf Port $inffile`
- httpurl="http://$host:$httpport"
ldapurl="ldap://$host:$port"
infuser=`getValFromInf SysUser $inffile`
infgroup=`getValFromInf SysGroup $inffile`
@@ -208,8 +190,7 @@
dsmlgwgroup="$infgroup"
fi
echo Using parameters from file $inffile . . .
- echo Using Administration Server URL $httpurl . . .
- echo Using Directory Server URL $ldapurl/$suffix . . .
+ echo Using Directory Server URL $ldapurl . . .
fi
if [ -z "$reconfig" -a -f $dsmlgwconfigdir/dsmlgw.cfg ] ; then
@@ -225,19 +206,21 @@
echo Generating config file $dsmlgwconfigdir/dsmlgw.cfg . . .
# generate dsmlgw.cfg in the $dsmlgwconfigdir directory
-rm -f $dsmlgwconfigdir/dsmlgw.conf
-sed -e "s#@host@#$hostname#g" \
- -e "s#@port@#$port#g" \
- -e "s#@httpport@#$httpport#g" \
- -e "s#@suffix@#$suffix#g" \
- -e "s#@dirmgr@#$dirmgr#g" \
- -e "s#^securitypath.*\$#securitypath $securitydir#g" \
- -e "s#@ldapurl@#$ldapurl#g" \
- -e "s#@httpurl@#$httpurl#g" \
- @configdir(a)/dsmlgw.tmpl > $dsmlgwconfigdir/dsmlgw.conf
+rm -f $dsmlgwconfigdir/dsmlgw.cfg
+echo ServerHost=$host > $dsmlgwconfigdir/dsmlgw.cfg
+echo ServerPort=$port >> $dsmlgwconfigdir/dsmlgw.cfg
+echo BindDN=$rootdn >> $dsmlgwconfigdir/dsmlgw.cfg
+echo BindPW= >> $dsmlgwconfigdir/dsmlgw.cfg
+
+echo Updating the user information in $dsmlgwconfigdir/dsmlgw.env . . .
+cp $dsmlgwconfigdir/dsmlgw.env $dsmlgwconfigdir/dsmlgw.env.orig
+sed -e "s/TOMCAT_USER=.*/TOMCAT_USER=$dsmlgwuser/" $dsmlgwconfigdir/dsmlgw.env.orig > $dsmlgwconfigdir/dsmlgw.env
+
+chown -R $dsmlgwuser:$dsmlgwgroup $dsmlgwconfigdir
+chown -R $dsmlgwuser:$dsmlgwgroup $dsmlgwlogdir
+chown -R $dsmlgwuser:$dsmlgwgroup $dsmlgwrundir
-chown $dsmlgwuser:$dsmlgwgroup $dsmlgwconfigdir/dsmlgw.conf
-chmod 0400 $dsmlgwconfigdir/dsmlgw.conf
+chmod 0400 $dsmlgwconfigdir/dsmlgw.cfg
echo
echo The DSML Gateway has been successfully configured.
15 years, 11 months
[Fedora-directory-commits] dsmlgw/misc dsmlgw.env.in, NONE, 1.1 setup-ds-dsmlgw.in, NONE, 1.1 start-ds-dsmlgw.in, NONE, 1.1
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3561/dsmlgw/misc
Added Files:
dsmlgw.env.in setup-ds-dsmlgw.in start-ds-dsmlgw.in
Log Message:
initial commit for packaging - allow fhs, fhsopt, and straight prefix packaging - added setup and start scripts
--- NEW FILE dsmlgw.env.in ---
# This file sets up the environment which the dsmlgw will use
if [ -z "$DSMLGW_CONFIG_DIR" ] ; then
DSMLGW_CONFIG_DIR=@dsmlgwconfigdir@
export DSMLGW_CONFIG_DIR
fi
if [ -z "$CATALINA_HOME" ] ; then
CATALINA_HOME=@dsmlgwdatadir@
export CATALINA_HOME
fi
if [ -z "$CATALINA_PID" ] ; then
CATALINA_PID=@dsmlgwrundir@/@package_name@.pid
export CATALINA_PID
fi
if [ -z "$TOMCAT_USER" ] ; then
TOMCAT_USER=@dsmlgwuser@
export TOMCAT_USER
fi
if [ -z "$CATALINA_TEMP" ] ; then
CATALINA_TEMP=@dsmlgwrundir@/temp
export CATALINA_TEMP
fi
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=@runtime_javahome@
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
fi
--- NEW FILE setup-ds-dsmlgw.in ---
#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
###########################
#
# The general strategy is to create an "instance" of tomcat, so that we
# can use our own logs directory, pid directory, etc. and can run as a
# user of our choosing rather than the default tomcat user
#
##########################
echo '######################################################################'
echo This shell script will configure the DSML Gateway Axis service, as
echo a web application running under Tomcat.
echo
getValFromInf() {
cattr=$1
cfile=$2
rval=`grep ^$cattr $cfile | head -1 | sed -e "s/^$cattr[ ]*=[ ]*//"`
echo $rval
}
getValFromConf() {
cattr=$1
cfile=$2
rval=`grep ^$cattr $cfile | head -1 | sed -e "s/^$cattr[ ]*//"`
echo $rval
}
getValFromLdif() {
cattr=$1
cfile=$2
num=${3:-1}
rval=`grep -i ^$cattr: $cfile | head -$num | sed -e "s/^..*:[ ]*//"`
echo $rval
}
# e.g. /etc/dirsrv/dsmlgw
dsmlgwconfigdir="@dsmlgwconfigdir@"
basecfgdir=`dirname $dsmlgwconfigdir`
# default security dir
securitydir="@securitydir@"
defaultsecdir=1
# see if there is a $dsmlgwconfigdir/../admin-serv
admservdir=$basecfgdir/admin-serv
if [ -f "$admservdir/local.conf" ] ; then
echo Reading parameters from Administration Server config . . .
host=`getValFromLdif serverHostName "$admservdir/local.conf"`
port=`getValFromLdif configuration.nsServerPort "$admservdir/local.conf"`
sec=`getValFromLdif configuration.nsServerSecurity "$admservdir/local.conf"`
if [ "$sec" = "on" ] ; then
httpurl="https://$host:$port"
if [ -n "$defaultsecdir" ] ; then
securitydir="$admservdir"
defaultsecdir=
fi
else
httpurl="http://$host:$port"
fi
dsmlgwuser=`ls -l $admservdir/local.conf | awk '{print $3}'`
dsmlgwgroup=`ls -l $admservdir/local.conf | awk '{print $4}'`
echo Using Administration Server URL $httpurl . . .
else
echo
echo '########################################################################'
echo Error: It appears the Administration Server has not yet been configured.
echo There are configuration files missing from $admservdir
echo Please run setup-ds-admin.pl to create your Administration Server
echo then run this script again.
exit 1
fi
# see if there are any directory servers here
for dir in $basecfgdir/slapd-* ; do
case "$dir" in
*.deleted) continue ;;
esac
if [ -d "$dir" -a -f "$dir/dse.ldif" ] ; then
echo Reading parameters from Directory Server $dir . . .
dirmgr=`getValFromLdif nsslapd-rootdn "$dir/dse.ldif"`
host=`getValFromLdif nsslapd-localhost "$dir/dse.ldif"`
sec=`getValFromLdif nsslapd-security "$dir/dse.ldif"`
if [ "$sec" = "on" ] ; then
port=`getValFromLdif nsslapd-secureport "$dir/dse.ldif"`
ldapurl="ldaps://$host:$port"
if [ -n "$defaultsecdir" ] ; then
securitydir="$dir"
defaultsecdir=
fi
else
port=`getValFromLdif nsslapd-port "$dir/dse.ldif"`
ldapurl="ldap://$host:$port"
fi
# get suffix - first non-netscaperoot suffix
savesuffix="$suffix"
suffix=`grep ^nsslapd-suffix: $dir/dse.ldif | sed -e 's/^nsslapd-suffix:[ ]*//' | grep -v -i o=netscaperoot | head -1`
if [ -z "$suffix" ] ; then
suffix="$savesuffix"
fi
if [ -z "$dsmlgwuser" ] ; then
dsmlgwuser=`ls -l $dir/dse.ldif | awk '{print $3}'`
fi
if [ -z "$dsmlgwgroup" ] ; then
dsmlgwgroup=`ls -l $dir/dse.ldif | awk '{print $4}'`
fi
fi
done
if [ -n "$ldapurl" ] ; then
echo Using Directory Server URL $ldapurl/$suffix . . .
fi
# get command line arguments
inffile=
nextisinffile=
reconfig=
for arg in "$@" ; do
if [ "$arg" = "-r" ]; then
reconfig=1
elif [ "$arg" = "-f" ]; then
nextisinffile=1
elif [ $nextisinffile ]; then
inffile="$arg"
nextisinffile=
fi
done
tomcat_home=@tomcat_home@
if [ -z "$tomcat_home" -o ! -d "$tomcat_home" ] ; then
echo ERROR: tomcat_home is not set to the tomcat directory
exit 1
fi
# CATALINA_HOME points to @datadir@/dsmlgw
# these are the directories we need in order to run an instance of tomcat
# bin server common shared conf temp webapps logs work
# these directories will just be symlinks to the actual tomcat dir - they
# are mostly read-only: bin server common shared conf
# webapps will be a real directory and will contain axis + dsmlgw
# logs will point to the dirsrv/dsmlgw logs directory
# temp and work will point to the run/dsmlgw directory
dsmlgwdir=@dsmlgwdatadir@
for dir in bin server common shared conf ; do
if [ -d $dsmlgwdir/$dir ] ; then
echo $dsmlgwdir/$dir exists, skipping . . .
else
ln -s $tomcat_home/$dir $dsmlgwdir/$dir
fi
done
if [ -d $dsmlgwdir/logs ] ; then
echo $dsmlgwdir/logs exists, skipping . . .
else
ln -s @dsmlgwlogdir@ $dsmlgwdir/logs
fi
for dir in temp work ; do
if [ -d $dsmlgwdir/$dir ] ; then
echo $dsmlgwdir/$dir exists, skipping . . .
else
ln -s @dsmlgwrundir@ $dsmlgwdir/$dir
fi
done
if [ -f "$inffile" ] ; then
hostname=`getValFromInf FullMachineName $inffile`
port=`getValFromInf ServerPort $inffile`
suffix=`getValFromInf Suffix $inffile`
dirmgr=`getValFromInf RootDN $inffile`
httpport=`getValFromInf Port $inffile`
httpurl="http://$host:$httpport"
ldapurl="ldap://$host:$port"
infuser=`getValFromInf SysUser $inffile`
infgroup=`getValFromInf SysGroup $inffile`
if [ -z "$infuser" ] ; then
infuser=`getValFromInf SuiteSpotUserID $inffile`
fi
if [ -z "$infgroup" ] ; then
infgroup=`getValFromInf SuiteSpotGroup $inffile`
fi
if [ -n "$infuser" ] ; then
dsmlgwuser="$infuser"
fi
if [ -n "$infgroup" ] ; then
dsmlgwgroup="$infgroup"
fi
echo Using parameters from file $inffile . . .
echo Using Administration Server URL $httpurl . . .
echo Using Directory Server URL $ldapurl/$suffix . . .
fi
if [ -z "$reconfig" -a -f $dsmlgwconfigdir/dsmlgw.cfg ] ; then
echo
echo '######################################################################'
echo The DSML Gateway has already been configured. The
echo file $dsmlgwconfigdir/dsmlgw.cfg
echo exists already. If you want to force a reconfiguration, removing
echo your existing configuration and recreating it, run this script
echo again with the "-r" argument.
exit 1
fi
echo Generating config file $dsmlgwconfigdir/dsmlgw.cfg . . .
# generate dsmlgw.cfg in the $dsmlgwconfigdir directory
rm -f $dsmlgwconfigdir/dsmlgw.conf
sed -e "s#@host@#$hostname#g" \
-e "s#@port@#$port#g" \
-e "s#@httpport@#$httpport#g" \
-e "s#@suffix@#$suffix#g" \
-e "s#@dirmgr@#$dirmgr#g" \
-e "s#^securitypath.*\$#securitypath $securitydir#g" \
-e "s#@ldapurl@#$ldapurl#g" \
-e "s#@httpurl@#$httpurl#g" \
@configdir(a)/dsmlgw.tmpl > $dsmlgwconfigdir/dsmlgw.conf
chown $dsmlgwuser:$dsmlgwgroup $dsmlgwconfigdir/dsmlgw.conf
chmod 0400 $dsmlgwconfigdir/dsmlgw.conf
echo
echo The DSML Gateway has been successfully configured.
echo '######################################################################'
exit 0
--- NEW FILE start-ds-dsmlgw.in ---
#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# first, look for the shell script config file
# if not found, punt
# source env. for dsmlgw
[ -f @dsmlgwconfigdir(a)/dsmlgw.env ] && . @dsmlgwconfigdir(a)/dsmlgw.env
# if root, use su to execute the startup script - user is set in @initconfigdir@/@package_name@
if [ "$USER" = "root" ] ; then
su - $CATALINA_USER -c "@tomcat_cmd@ $@"
else
@tomcat_cmd@ $@
fi
15 years, 11 months
[Fedora-directory-commits] dsmlgw build.fhs.properties, NONE, 1.1 build.fhsopt.properties, NONE, 1.1 build.prefix.properties, NONE, 1.1 build.properties, 1.1, 1.2 build.xml, 1.3, 1.4
by Doctor Conrad
Author: rmeggins
Update of /cvs/dirsec/dsmlgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3561/dsmlgw
Modified Files:
build.properties build.xml
Added Files:
build.fhs.properties build.fhsopt.properties
build.prefix.properties
Log Message:
initial commit for packaging - allow fhs, fhsopt, and straight prefix packaging - added setup and start scripts
--- NEW FILE build.fhs.properties ---
prefix=/usr
dsmlgwdatadir=${prefix}/share/${project.name.base}/${ant.project.name}
dsmlgwconfigdir=/etc/${project.name.base}/${ant.project.name}
dsmlgwlogdir=/var/log/${project.name.base}/${ant.project.name}
dsmlgwrundir=/var/run/${project.name.base}/${ant.project.name}
dsmlgwsbindir=${prefix}/sbin
--- NEW FILE build.fhsopt.properties ---
dsmlgwdatadir=${prefix}/share/${ant.project.name}
dsmlgwconfigdir=/etc${prefix}/${ant.project.name}
dsmlgwlogdir=/var${prefix}/${ant.project.name}/log
dsmlgwrundir=/var${prefix}/${ant.project.name}/run
dsmlgwsbindir=${prefix}/sbin
--- NEW FILE build.prefix.properties ---
dsmlgwdatadir=${prefix}/share/${ant.project.name}
dsmlgwconfigdir=${prefix}/etc/${ant.project.name}
dsmlgwlogdir=${prefix}/log/${ant.project.name}
dsmlgwrundir=${prefix}/run/${ant.project.name}
dsmlgwsbindir=${prefix}/sbin
Index: build.properties
===================================================================
RCS file: /cvs/dirsec/dsmlgw/build.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.properties 18 Apr 2008 16:43:38 -0000 1.1
+++ build.properties 23 Apr 2008 16:55:58 -0000 1.2
@@ -1,3 +1,11 @@
+project.name.base=dirsrv
+version=1.1.0
+# default prefix to use for packaging
+prefix=/opt/${project.name.base}
+# default user id for tomcat - override to "daemon" on hpux -Ddsmlgwuser=daemon
+dsmlgwuser=nobody
+runtime.java.home=${java.home}
+
axisbin.url=http://apache.mirrors.tds.net/ws/axis/1_4/
#axisbin.dir=/path/to/
axisbin.tgz=axis-bin-1_4.tar.gz
Index: build.xml
===================================================================
RCS file: /cvs/dirsec/dsmlgw/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 21 Apr 2008 17:58:54 -0000 1.3
+++ build.xml 23 Apr 2008 16:55:58 -0000 1.4
@@ -20,6 +20,19 @@
<property file="build.properties" />
<property file="${user.home}/build.properties" />
+ <!-- pkg type is for packaging - there are three different ways
+ to package:
+ fhs - use the FHS layout (/etc, /var, /usr/share)
+ fhsopt - use the FHS for /opt packages (/opt/projectname, /etc/opt/projectname, /var/opt/projectname)
+ prefix - just put everything under a single prefix (/opt/projectname)
+ The default is prefix. To specify a different one, use
+ ant ... -Dpkg.type=fhs
+ -->
+ <property name="pkg.type" value="prefix"/>
+ <!-- prefix, fhs, or fhsopt -->
+ <property file="build.${pkg.type}.properties" />
+ <!-- name of command to use to start tomcat - will be called from start-ds-dsmlgw -->
+ <property name="tomcat.cmd" value="${tomcat.home}/bin/startup.sh"/>
<!-- ******************** Adjustable Properties *********************** -->
<property name="globaldist.dir" location="/usr/share/java" />
@@ -31,7 +44,7 @@
on the command line - otherwise, it will default to using
/usr/share/java and /usr/share/java/axis
-->
- <property name="axisdist.dir" location="/usr/share/java/axis" />
+ <property name="axisdist.dir" location="/usr/share/java/axis" />
<property name="axis.lib.dir" location="/usr/share/java/axis" />
<!-- These are the jars needed for building - the first 3 are usually
@@ -65,6 +78,7 @@
<property name="build.dir" value="${mcom.root}/built/dsmlgw" />
<!-- place to write final jar file and webapps files/dirs -->
<property name="dist.dir" value="${mcom.root}/../dist/dsmlgw" />
+ <property name="pkg.dir" value="${dist.dir}/pkg"/>
<!-- see if we are using the binary axis package and if it is local -->
<available file="${axisdist.dir}/webapps/axis" type="dir"
@@ -160,6 +174,69 @@
</fileset>
</war>
</target>
+
+ <target name="makepkg" description="create the distribution package" depends="makewar">
+ <mkdir dir="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
+ <mkdir dir="${pkg.dir}${dsmlgwconfigdir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwlogdir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwrundir}"/>
+ <mkdir dir="${pkg.dir}${dsmlgwsbindir}"/>
+ <unjar src="${dist.dir}/dsmlgw.war" dest="${pkg.dir}${dsmlgwdatadir}/webapps/axis"/>
+ <copy file="misc/setup-ds-dsmlgw.in" tofile="${pkg.dir}${dsmlgwsbindir}/setup-ds-dsmlgw">
+ <filterchain>
+ <replacetokens>
+ <token key="package_name" value="${ant.project.name}"/>
+ <token key="runtime_javahome" value="${runtime.java.home}"/>
+ <token key="tomcat_home" value="${tomcat.home}"/>
+ <token key="tomcat_cmd" value="${tomcat.cmd}"/>
+ <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
+ <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
+ <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
+ <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
+ <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
+ <token key="dsmlgwuser" value="${dsmlgwuser}"/>
+ </replacetokens>
+ </filterchain>
+ </copy>
+ <copy file="misc/start-ds-dsmlgw.in" tofile="${pkg.dir}${dsmlgwsbindir}/start-ds-dsmlgw">
+ <filterchain>
+ <replacetokens>
+ <token key="package_name" value="${ant.project.name}"/>
+ <token key="runtime_javahome" value="${runtime.java.home}"/>
+ <token key="tomcat_home" value="${tomcat.home}"/>
+ <token key="tomcat_cmd" value="${tomcat.cmd}"/>
+ <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
+ <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
+ <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
+ <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
+ <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
+ <token key="dsmlgwuser" value="${dsmlgwuser}"/>
+ </replacetokens>
+ </filterchain>
+ </copy>
+ <copy file="misc/dsmlgw.env.in" tofile="${pkg.dir}${dsmlgwconfigdir}/dsmlgw.env">
+ <filterchain>
+ <replacetokens>
+ <token key="package_name" value="${ant.project.name}"/>
+ <token key="runtime_javahome" value="${runtime.java.home}"/>
+ <token key="tomcat_home" value="${tomcat.home}"/>
+ <token key="tomcat_cmd" value="${tomcat.cmd}"/>
+ <token key="dsmlgwdatadir" value="${dsmlgwdatadir}"/>
+ <token key="dsmlgwconfigdir" value="${dsmlgwconfigdir}"/>
+ <token key="dsmlgwlogdir" value="${dsmlgwlogdir}"/>
+ <token key="dsmlgwrundir" value="${dsmlgwrundir}"/>
+ <token key="dsmlgwsbindir" value="${dsmlgwsbindir}"/>
+ <token key="dsmlgwuser" value="${dsmlgwuser}"/>
+ </replacetokens>
+ </filterchain>
+ </copy>
+ <copy file="misc/dsmlgw.cfg" todir="${pkg.dir}${dsmlgwconfigdir}"/>
+ <tar destfile="${dist.dir}/${ant.project.name}-${version}.tar"
+ basedir="${pkg.dir}"/>
+ <gzip zipfile="${dist.dir}/${ant.project.name}-${version}.tar.gz"
+ src="${dist.dir}/${ant.project.name}-${version}.tar"/>
+ <delete file="${dist.dir}/${ant.project.name}-${version}.tar"/>
+ </target>
<target name="prepare" description="prepares the output directories">
<mkdir dir="${build.dir}" />
15 years, 11 months