Author: rmeggins
Update of /cvs/dirsec/dsmlgw/misc In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22524/dsmlgw/misc
Modified Files: dsmlgw.cfg server-config.wsdd Added Files: dsmlgw-deploy.wsdd fedora-ds-dsmlgw.spec log4j.properties logging.properties Log Message: initial commit of dsmlgw - updated license to plain old GPLv2 - updated to use axis1.4
--- NEW FILE dsmlgw-deploy.wsdd --- <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <service name="dsmlgw" provider="Handler"> <parameter name="handlerClass" value="com.netscape.dsml.gateway.gatewayHandler"/> </service> </deployment>
--- NEW FILE fedora-ds-dsmlgw.spec --- %define major_version 1.1 %define minor_version 0
%define pkgname dirsrv %define shortname dsmlgw
Name: fedora-ds-dsmlgw Version: %{major_version}.%{minor_version} Release: 1%{?dist} Summary: Fedora Directory Server DSML Gateway
Group: Applications/System License: GPLv2 URL: http://directory.fedoraproject.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Source: http://directory.fedoraproject.org/sources/%%7Bname%7D-%%7Bversion%7D.tar.bz... Requires: java-1.7.0-icedtea BuildRequires: java-1.7.0-icedtea-devel BuildRequires: ant >= 1.6.2 BuildRequires: ldapjdk BuildRequires: axis BuildRequires: jakarta-commons-codec BuildRequires: classpathx-jaf
%description A DSML to LDAP gateway. The application runs as a Java web application. The application is a DSMLv2 service that translates incoming DSMLv2 requests into LDAP and sends the requests to an LDAP server, gets the LDAP response, and translates that back into a DSMLv2 response. The jar file includes classes that can be used for command line utilities: * dsmlClient * dsmlSearch * LDIF2DSML - converts LDIF files to DSML format * DSML2LDIF - converts DSML to LDIF format
%prep %setup -q
%build %{ant} \ -Dglobaldist.dir=%{_javadir} \ -Dldapdist.dir=%{_javadir} \ -Daxis.dir=%{_javadir}/axis \ -Dbuild.dir=`pwd`/built \ -Ddist.dir=`pwd`/built
%install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_javadir} install -m644 built/%{shortname}.jar $RPM_BUILD_ROOT%{_javadir}/%{shortname}-%{version}.jar mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/data install -m644 dsml/*.dsml $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/data
# create symlinks pushd $RPM_BUILD_ROOT%{_javadir} ln -s %{shortname}-%{version}.jar %{shortname}-%{major_version}.jar ln -s %{shortname}-%{version}.jar %{shortname}.jar popd
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc LICENSE %{_javadir}/%{shortname}-%{version}.jar %{_javadir}/%{shortname}-%{major_version}.jar %{_javadir}/%{shortname}.jar %{_datadir}/%{pkgname}/data/*.dsml
%changelog * Mon Apr 7 2008 Rich Megginson rmeggins@redhat.com 1.1.0-1 - Initial creation
--- NEW FILE log4j.properties --- # axis uses log4j - these are the log settings for axis # Set root category priority to INFO and its only appender to CONSOLE. #log4j.rootCategory=INFO, CONSOLE log4j.rootCategory=INFO, CONSOLE, LOGFILE
# Set the enterprise logger category to FATAL and its only appender to CONSOLE. log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
# CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold=INFO log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
# LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=${catalina.base}/logs/axis.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.Threshold=INFO log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d %-4r [%t] %-5p %c %x - %m%n
--- NEW FILE logging.properties --- # we write logs to files and to the console handlers = org.apache.juli.FileHandler,java.util.logging.ConsoleHandler
############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################
# log INFO level and higher to log file org.apache.juli.FileHandler.level = INFO org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = dsmlgw. org.apache.juli.FileHandler.formatter = java.util.logging.SimpleFormatter
# log WARNING level and higher to console (catalina.out using Tomcat) java.util.logging.ConsoleHandler.level = WARNING java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
# you can set gateway and class level debugging #com.netscape.dsml.gateway.level = INFO #com.netscape.dsml.gateway.gatewayHandler.level = FINER #com.netscape.dsml.gateway.Configuration.level = FINEST
Index: dsmlgw.cfg =================================================================== RCS file: /cvs/dirsec/dsmlgw/misc/dsmlgw.cfg,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- dsmlgw.cfg 26 Apr 2007 22:29:03 -0000 1.1.1.1 +++ dsmlgw.cfg 18 Apr 2008 16:43:38 -0000 1.2 @@ -11,25 +11,6 @@ # this Program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA. # -# In addition, as a special exception, Red Hat, Inc. gives You the additional -# right to link the code of this Program with code not covered under the GNU -# General Public License ("Non-GPL Code") and to distribute linked combinations -# including the two, subject to the limitations in this paragraph. Non-GPL Code -# permitted under this exception must only link to the code of this Program -# through those well defined interfaces identified in the file named EXCEPTION -# found in the source code files (the "Approved Interfaces"). The files of -# Non-GPL Code may instantiate templates or use macros or inline functions from -# the Approved Interfaces without causing the resulting work to be covered by -# the GNU General Public License. Only Red Hat, Inc. may make changes or -# additions to the list of Approved Interfaces. You must obey the GNU General -# Public License in all respects for all of the Program code and other code used -# in conjunction with the Program except the Non-GPL Code covered by this -# exception. If you modify this file, you may extend this exception to your -# version of the file, but you are not obligated to do so. If you do not wish to -# provide this exception without modification, you must delete this exception -# statement from your version and license this file solely under the GPL without -# exception. -# # # Copyright (C) 2005 Red Hat, Inc. # All rights reserved.
Index: server-config.wsdd =================================================================== RCS file: /cvs/dirsec/dsmlgw/misc/server-config.wsdd,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- server-config.wsdd 26 Apr 2007 22:29:03 -0000 1.1.1.1 +++ server-config.wsdd 18 Apr 2008 16:43:38 -0000 1.2 @@ -12,25 +12,6 @@ this Program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- In addition, as a special exception, Red Hat, Inc. gives You the additional - right to link the code of this Program with code not covered under the GNU - General Public License ("Non-GPL Code") and to distribute linked combinations - including the two, subject to the limitations in this paragraph. Non-GPL Code - permitted under this exception must only link to the code of this Program - through those well defined interfaces identified in the file named EXCEPTION - found in the source code files (the "Approved Interfaces"). The files of - Non-GPL Code may instantiate templates or use macros or inline functions from - the Approved Interfaces without causing the resulting work to be covered by - the GNU General Public License. Only Red Hat, Inc. may make changes or - additions to the list of Approved Interfaces. You must obey the GNU General - Public License in all respects for all of the Program code and other code used - in conjunction with the Program except the Non-GPL Code covered by this - exception. If you modify this file, you may extend this exception to your - version of the file, but you are not obligated to do so. If you do not wish to - provide this exception without modification, you must delete this exception - statement from your version and license this file solely under the GPL without - exception. -
Copyright (C) 2005 Red Hat, Inc. All rights reserved.
389-commits@lists.fedoraproject.org