package init
This commit is contained in:
parent
c98677e268
commit
3c94f9e0bd
25
sslext-1.2-0.pom
Normal file
25
sslext-1.2-0.pom
Normal file
@ -0,0 +1,25 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>sslext</groupId>
|
||||
<artifactId>sslext</artifactId>
|
||||
<name>sslext</name>
|
||||
<version>1.2-0</version>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache Software License, Version 1.1</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-1.1</url>
|
||||
<comments></comments>
|
||||
</license>
|
||||
</licenses>
|
||||
<organization>
|
||||
<name>Steve Ditlinger</name>
|
||||
<url>http://sslext.sourceforge.net/</url>
|
||||
</organization>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>struts</groupId>
|
||||
<artifactId>struts</artifactId>
|
||||
<version>1.2.7</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
29
sslext-1.2-SecureRequestUtils.patch
Normal file
29
sslext-1.2-SecureRequestUtils.patch
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/org/apache/struts/util/SecureRequestUtils.java 2004-09-27 02:02:23.000000000 +0200
|
||||
+++ src/org/apache/struts/util/SecureRequestUtils.java-gil 2011-09-10 11:25:12.260719716 +0200
|
||||
@@ -358,10 +358,10 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
- Enumeration enum = aRequest.getAttributeNames();
|
||||
+ Enumeration mune = aRequest.getAttributeNames();
|
||||
Map map = new HashMap();
|
||||
- while (enum.hasMoreElements()) {
|
||||
- String name = (String) enum.nextElement();
|
||||
+ while (mune.hasMoreElements()) {
|
||||
+ String name = (String) mune.nextElement();
|
||||
map.put(name, aRequest.getAttribute(name));
|
||||
}
|
||||
aRequest.getSession().setAttribute(STOWED_REQUEST_ATTRIBS, map);
|
||||
@@ -534,9 +534,9 @@
|
||||
*/
|
||||
private static Map getParameterMap(HttpServletRequest request) {
|
||||
Map map = new HashMap();
|
||||
- Enumeration enum = request.getParameterNames();
|
||||
- while (enum.hasMoreElements()) {
|
||||
- String name = (String) enum.nextElement();
|
||||
+ Enumeration mune = request.getParameterNames();
|
||||
+ while (mune.hasMoreElements()) {
|
||||
+ String name = (String) mune.nextElement();
|
||||
String[] values = request.getParameterValues(name);
|
||||
map.put(name, values);
|
||||
}
|
||||
39
sslext-1.2-build.patch
Normal file
39
sslext-1.2-build.patch
Normal file
@ -0,0 +1,39 @@
|
||||
--- build.xml 2004-09-18 21:56:33.000000000 +0200
|
||||
+++ build.xml-gil 2012-06-06 11:11:15.937687091 +0200
|
||||
@@ -5,14 +5,24 @@
|
||||
<property name="classes" value="${web-inf}/classes"/>
|
||||
<property name="lib" value="${web-inf}/lib"/>
|
||||
<!-- <property name="build.compiler" value="jikes"/> -->
|
||||
- <property name="j2ee.lib" value="../lib/j2ee12.jar"/>
|
||||
+ <property name="j2ee.lib" value="/usr/share/java/tomcat-servlet-3.0-api.jar"/>
|
||||
<property file="buildsslext.properties"/>
|
||||
|
||||
<path id="class.path">
|
||||
<pathelement path="${src}"/>
|
||||
<pathelement path="${j2ee.lib}"/>
|
||||
- <fileset dir="${lib}">
|
||||
- <include name="**/*.jar"/>
|
||||
+ <fileset dir="/usr/share/java/">
|
||||
+ <include name="commons-beanutils.jar"/>
|
||||
+ <include name="commons-collections.jar"/>
|
||||
+ <include name="commons-digester.jar"/>
|
||||
+ <include name="commons-fileupload.jar"/>
|
||||
+ <include name="commons-logging.jar"/>
|
||||
+ <include name="commons-validator.jar"/>
|
||||
+ <include name="oro.jar"/>
|
||||
+ <include name="struts/core.jar"/>
|
||||
+ <include name="struts/taglib.jar"/>
|
||||
+ <include name="struts/tiles.jar"/>
|
||||
+ <include name="tomcat-jsp-2.2-api.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
@@ -26,6 +36,8 @@
|
||||
destdir="${classes}"
|
||||
classpathref="class.path"
|
||||
debug="on"
|
||||
+ source="1.5"
|
||||
+ target="1.5"
|
||||
/>
|
||||
</target>
|
||||
|
||||
46
sslext-1.2-javadocs.patch
Normal file
46
sslext-1.2-javadocs.patch
Normal file
@ -0,0 +1,46 @@
|
||||
--- build.xml 2012-07-09 17:55:25.669707599 +0200
|
||||
+++ build.xml-gil 2012-07-09 17:55:37.292140796 +0200
|
||||
@@ -26,6 +26,14 @@
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
+ <path id="javadoc.classpath">
|
||||
+ <path refid="class.path"/>
|
||||
+ <pathelement location="${classes}/**"/>
|
||||
+ <fileset dir="${lib}">
|
||||
+ <include name="sslext.jar"/>
|
||||
+ </fileset>
|
||||
+ </path>
|
||||
+
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
</target>
|
||||
@@ -144,6 +152,28 @@
|
||||
/>
|
||||
</target>
|
||||
|
||||
+ <target name="javadoc" description="generates javadocs">
|
||||
+ <mkdir dir="docs"/>
|
||||
+ <tstamp>
|
||||
+ <format property="year" pattern="yyyy" />
|
||||
+ </tstamp>
|
||||
+ <!-- Locale must be before any doclet parameters -->
|
||||
+ <javadoc
|
||||
+ packagenames="*"
|
||||
+ Locale="en_US"
|
||||
+ sourcepath="${src}"
|
||||
+ destdir="docs"
|
||||
+ author="true"
|
||||
+ version="true"
|
||||
+ private="false"
|
||||
+ use="true"
|
||||
+ windowtitle="Struts SSL Switching Extension">
|
||||
+ <doctitle><![CDATA[<h2>Struts SSL Switching Extension</h2>]]></doctitle>
|
||||
+ <bottom><![CDATA[<i>Copyright 1999, ${year} The Apache Software Foundation, All Rights Reserved</i>]]></bottom>
|
||||
+ <classpath refid="javadoc.classpath"/>
|
||||
+ </javadoc>
|
||||
+ </target>
|
||||
+
|
||||
<target name="make-bin-zips" depends="make-jar, make-bin-tar, make-bin-zip">
|
||||
</target>
|
||||
|
||||
26
sslext-1.2-pom.patch
Normal file
26
sslext-1.2-pom.patch
Normal file
@ -0,0 +1,26 @@
|
||||
--- pom.xml 2005-11-08 22:53:43.000000000 +0100
|
||||
+++ pom.xml-gil 2012-05-27 05:19:18.277207739 +0200
|
||||
@@ -17,9 +17,19 @@
|
||||
</organization>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
- <groupId>struts</groupId>
|
||||
- <artifactId>struts</artifactId>
|
||||
- <version>1.2.7</version>
|
||||
+ <groupId>org.apache.struts</groupId>
|
||||
+ <artifactId>struts-core</artifactId>
|
||||
+ <version>1.3.10</version>
|
||||
+ </dependency>
|
||||
+ <dependency>
|
||||
+ <groupId>org.apache.struts</groupId>
|
||||
+ <artifactId>struts-taglib</artifactId>
|
||||
+ <version>1.3.10</version>
|
||||
+ </dependency>
|
||||
+ <dependency>
|
||||
+ <groupId>org.apache.struts</groupId>
|
||||
+ <artifactId>struts-tiles</artifactId>
|
||||
+ <version>1.3.10</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
\ Manca newline alla fine del file
|
||||
BIN
sslext-1.2-realclean-src-cvs.tar.gz
Normal file
BIN
sslext-1.2-realclean-src-cvs.tar.gz
Normal file
Binary file not shown.
134
sslext.spec
Normal file
134
sslext.spec
Normal file
@ -0,0 +1,134 @@
|
||||
Name: sslext
|
||||
Version: 1.2
|
||||
Release: 15%{?dist}
|
||||
Summary: Struts SSL Switching Extension
|
||||
License: ASL 1.1
|
||||
Url: http://sslext.sourceforge.net/
|
||||
#cvs -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext login
|
||||
#cvs -z3 -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext export -r Release1_2_1 sslext120
|
||||
#rm -rf sslext120/web/WEB-INF/lib/*.jar
|
||||
#rm -rf sslext120/sslext-struts1.2-*.*
|
||||
#rm -rf $(find sslext120 -name "CVS")
|
||||
#rm -rf $(find sslext120 -name "*.class")
|
||||
#rm -rf $(find sslext120 -name "*.bak")
|
||||
# non free
|
||||
# rm -rf sslext120/web/WEB-INF/web-app_2_3.dtd
|
||||
#mv sslext120 sslext-1.2
|
||||
#tar czf sslext-1.2-realclean-src-cvs.tar.gz sslext-1.2
|
||||
Source0: sslext-%{version}-realclean-src-cvs.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/sslext/sslext/%{version}-0/sslext-%{version}-0.pom
|
||||
Patch0: %{name}-%{version}-build.patch
|
||||
# fix build java5+
|
||||
Patch1: %{name}-%{version}-SecureRequestUtils.patch
|
||||
# update struts reference
|
||||
Patch2: %{name}-%{version}-pom.patch
|
||||
# build apis documentation
|
||||
Patch3: %{name}-%{version}-javadocs.patch
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: javapackages-local
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-beanutils
|
||||
BuildRequires: apache-commons-collections
|
||||
BuildRequires: apache-commons-digester
|
||||
BuildRequires: apache-commons-fileupload
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: apache-commons-validator
|
||||
BuildRequires: jakarta-oro
|
||||
BuildRequires: struts
|
||||
BuildRequires: tomcat-jsp-2.3-api
|
||||
BuildRequires: tomcat-servlet-4.0-api
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Extension to the Struts framework that allows developers to configure web
|
||||
applications to automatically switch between the HTTP and HTTPS protocols.
|
||||
Configuration is performed within the Struts config XML file.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
mkdir -p web/WEB-INF/classes
|
||||
%patch0 -p0
|
||||
sed -i "s|tomcat-servlet-3.0-api|tomcat-servlet-api|" build.xml
|
||||
sed -i "s|tomcat-jsp-2.2-api|tomcat-jsp-api|" build.xml
|
||||
sed -i "s|1.5|1.6|" build.xml
|
||||
%patch1 -p0
|
||||
cp -p %{SOURCE1} pom.xml
|
||||
%patch2 -p0
|
||||
%patch3 -p0
|
||||
|
||||
%build
|
||||
|
||||
export CLASSPATH=$(build-classpath tomcat-servlet-api tomcat-jsp-api)
|
||||
%ant compile make-jar javadoc
|
||||
|
||||
%install
|
||||
%mvn_artifact pom.xml web/WEB-INF/lib/%{name}.jar
|
||||
%mvn_file %{name}:%{name} %{name}
|
||||
%mvn_install -J docs
|
||||
|
||||
%files -f .mfiles
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
|
||||
%changelog
|
||||
* Mon Feb 11 2019 Troy Dawson <tdawson@redhat.com> - 1.2-15
|
||||
- Fix FTBFS (#1606413)
|
||||
-- Change BuildRequires: from tomcat-servlet-3.1-api to tomcat-servlet-4.0-api
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Mar 04 2015 gil cattaneo <puntogil@libero.it> 1.2-8
|
||||
- use servlet api 3.1
|
||||
- use new javapackages macros
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2-6
|
||||
- Use Requires: java-headless rebuild (#1067528)
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Jul 09 2012 gil cattaneo <puntogil@libero.it> 1.2-2
|
||||
- removed non-free file
|
||||
- fixed spelling errors in description
|
||||
- added missing dependencies
|
||||
- added javadoc sub package
|
||||
|
||||
* Sun May 27 2012 gil cattaneo <puntogil@libero.it> 1.2-1
|
||||
- initial rpm
|
||||
4
sslext.yaml
Normal file
4
sslext.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
Loading…
x
Reference in New Issue
Block a user