[jets3t/f19] (3 commits) ...Initial import (#847109).
by gil
Summary of changes:
a336de5... Initial import (#847109). (*)
adf02f6... Initial import (#847109). (*)
eefb99f... Initial import (#847109). (*)
(*) This commit already existed in another branch; no separate mail sent
10 years, 11 months
[jets3t] Initial import (#847109).
by gil
commit eefb99fb48c7f4ddcec82b3c6bbb32e854722786
Author: gil <puntogil(a)libero.it>
Date: Tue Jun 11 15:28:26 2013 +0200
Initial import (#847109).
jets3t.spec | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/jets3t.spec b/jets3t.spec
index b7d3d0c..f8ca7f7 100644
--- a/jets3t.spec
+++ b/jets3t.spec
@@ -204,10 +204,20 @@ chmod 0755 %{buildroot}%{_datadir}/%{name}/bin/*
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 %{name}-*.1 %{buildroot}%{_mandir}/man1/
-mkdir -p %{buildroot}%{_sysconfdir}/%{name}
+mkdir -p %{buildroot}%{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/configs
sed -i "s|{jets3t-version}|%{version}|" configs/cockpitlite.properties
cp -pr configs/* %{buildroot}%{_sysconfdir}/%{name}/
-ln -sf ../../../etc/%{name} %{buildroot}%{_datadir}/%{name}/configs
+ln -sf ../../../../etc/%{name}/cockpitlite.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/commons-logging.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/devpay_products.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/%{name}.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/log4j.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/mime.types %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/simplelog.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/synchronize.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/test.properties %{buildroot}%{_datadir}/%{name}/configs/
+ln -sf ../../../../etc/%{name}/uploader.properties %{buildroot}%{_datadir}/%{name}/configs/
+
mkdir -p %{buildroot}%{_datadir}/%{name}/resources
cp -pr resources/* %{buildroot}%{_datadir}/%{name}/resources/
cp -pr servlets %{buildroot}%{_datadir}/%{name}/
10 years, 11 months
[jets3t] Initial import (#847109).
by gil
commit adf02f6e70e33e3d336d1d95c480533ba0b5b72e
Author: gil <puntogil(a)libero.it>
Date: Tue Jun 11 15:05:00 2013 +0200
Initial import (#847109).
jets3t.spec | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/jets3t.spec b/jets3t.spec
index 9e63a15..b7d3d0c 100644
--- a/jets3t.spec
+++ b/jets3t.spec
@@ -236,9 +236,9 @@ cp -pr servlets %{buildroot}%{_datadir}/%{name}/
%dir %{_datadir}/%{name}/servlets
%{_datadir}/%{name}/jars/*
%{_datadir}/%{name}/bin/*
-%{_datadir}/%{name}/configs
-%{_datadir}/%{name}/resources
-%{_datadir}/%{name}/servlets
+%{_datadir}/%{name}/configs/*
+%{_datadir}/%{name}/resources/*
+%{_datadir}/%{name}/servlets/*
%{_mandir}/man1/*
%doc LICENSE-2.0.txt NOTICE.txt
10 years, 11 months
[jets3t] Initial import (#847109).
by gil
commit a336de5575130e42323a6836fa356df286fac7e6
Author: gil <puntogil(a)libero.it>
Date: Tue Jun 11 14:36:48 2013 +0200
Initial import (#847109).
.gitignore | 1 +
cockpit-0.9.0.pom | 28 +
...t-0.8.1-build_properties-rename_apps_jars.patch | 27 +
jets3t-0.8.1-replace_uuid_lib.patch | 44 ++
jets3t-0.9.0-dist-build.patch | 764 ++++++++++++++++++++
jets3t-0.9.0-nuvola-fsf-address.patch | 20 +
jets3t-0.9.0-scripts.patch | 211 ++++++
jets3t-0.9.0.pom | 69 ++
jets3t-cockpit.pod | 21 +
jets3t-cockpitlite.pod | 24 +
jets3t-gui-0.9.0.pom | 28 +
jets3t-synchronize.pod | 184 +++++
jets3t-uploader.pod | 23 +
jets3t.spec | 251 +++++++
sources | 1 +
synchronize-0.9.0.pom | 28 +
16 files changed, 1724 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..954859b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jets3t-0.9.0-clean-src-hg.tar.gz
diff --git a/cockpit-0.9.0.pom b/cockpit-0.9.0.pom
new file mode 100644
index 0000000..9e61513
--- /dev/null
+++ b/cockpit-0.9.0.pom
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>cockpit</artifactId>
+ <version>0.9.0</version>
+ <name>JetS3t Cockpit</name>
+ <description>Cockpit is a graphical Java application for viewing and managing the contents of an Amazon S3 or Google Storage account, and for managing Amazon CloudFront distributions.</description>
+ <url>http://www.jets3t.org/</url>
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>http://bitbucket.org/jmurty/jets3t/src</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>jets3t-gui</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/jets3t-0.8.1-build_properties-rename_apps_jars.patch b/jets3t-0.8.1-build_properties-rename_apps_jars.patch
new file mode 100644
index 0000000..ea9feac
--- /dev/null
+++ b/jets3t-0.8.1-build_properties-rename_apps_jars.patch
@@ -0,0 +1,27 @@
+--- build.properties 2011-09-26 19:27:48.000000000 +0200
++++ build.properties-gil 2011-09-26 20:13:47.089873747 +0200
+@@ -12,6 +12,7 @@
+ dir.scripts=scripts
+ dir.applet=applet
+ dir.servlet=servlet
++dir.servlets=servlet
+ dir.resources=resources
+ dir.apidocs=${dir.dist}/api-docs
+ dir.dist-applets=${dir.dist}/jets3t-${version}/applets
+@@ -19,11 +20,11 @@
+ dir.java-net.website=www
+
+ dist.file.service=jets3t-${version}.jar
+-dist.file.cockpit=cockpit-${version}.jar
+-dist.file.cockpitlite=cockpitlite-${version}.jar
+-dist.file.synchronize=synchronize-${version}.jar
+-dist.file.uploader=uploader-${version}.jar
+-dist.file.gatekeeper=gatekeeper-${version}.war
++dist.file.cockpit=jets3t-cockpit-${version}.jar
++dist.file.cockpitlite=jets3t-cockpitlite-${version}.jar
++dist.file.synchronize=jets3t-synchronize-${version}.jar
++dist.file.uploader=jets3t-uploader-${version}.jar
++dist.file.gatekeeper=jets3t-gatekeeper-${version}.war
+ dist.file.guisupport=jets3t-gui-${version}.jar
+
+ # Comment out the lines below to exclude contributions
diff --git a/jets3t-0.8.1-replace_uuid_lib.patch b/jets3t-0.8.1-replace_uuid_lib.patch
new file mode 100644
index 0000000..9050339
--- /dev/null
+++ b/jets3t-0.8.1-replace_uuid_lib.patch
@@ -0,0 +1,44 @@
+diff -Nru src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java src/org/jets3t/servlets/gatekeeper/impl-gil/DefaultTransactionIdProvider.java
+--- src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java 2011-09-18 20:46:02.000000000 +0200
++++ src/org/jets3t/servlets/gatekeeper/impl-gil/DefaultTransactionIdProvider.java 2011-09-19 18:06:11.567446165 +0200
+@@ -24,8 +24,7 @@
+ import org.jets3t.service.utils.gatekeeper.GatekeeperMessage;
+ import org.jets3t.servlets.gatekeeper.ClientInformation;
+ import org.jets3t.servlets.gatekeeper.TransactionIdProvider;
+-import org.safehaus.uuid.UUID;
+-import org.safehaus.uuid.UUIDGenerator;
++import java.util.UUID;
+
+ /**
+ * Default TransactionIdProvider implementation that generated random-based UUIDs using the
+@@ -51,7 +50,7 @@
+ public String getTransactionId(GatekeeperMessage requestMessage, ClientInformation clientInformation)
+ {
+ // Generate a UUID based on a random generation.
+- UUID uuid = UUIDGenerator.getInstance().generateRandomBasedUUID();
++ UUID uuid = UUID.randomUUID();
+ return uuid.toString();
+ }
+
+diff -Nru src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java src/org/jets3t/servlets/gatekeeper/impl-gil/ExternalUuidProvider.java
+--- src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java 2011-09-18 20:46:02.000000000 +0200
++++ src/org/jets3t/servlets/gatekeeper/impl-gil/ExternalUuidProvider.java 2011-09-19 18:07:04.514451057 +0200
+@@ -24,8 +24,7 @@
+ import org.jets3t.service.utils.gatekeeper.GatekeeperMessage;
+ import org.jets3t.servlets.gatekeeper.ClientInformation;
+ import org.jets3t.servlets.gatekeeper.TransactionIdProvider;
+-import org.safehaus.uuid.UUID;
+-import org.safehaus.uuid.UUIDGenerator;
++import java.util.UUID;
+
+ /**
+ * Uses an externally provided UUID obtained from an application property <tt>externalUUID</tt>
+@@ -52,7 +51,7 @@
+ return externalUuid;
+ }
+ // Use a generated UUID based on a random generation as a fallback if the external UUID isn't available.
+- UUID uuid = UUIDGenerator.getInstance().generateRandomBasedUUID();
++ UUID uuid = UUID.randomUUID();
+ return uuid.toString();
+ }
+
diff --git a/jets3t-0.9.0-dist-build.patch b/jets3t-0.9.0-dist-build.patch
new file mode 100644
index 0000000..c86285e
--- /dev/null
+++ b/jets3t-0.9.0-dist-build.patch
@@ -0,0 +1,764 @@
+--- dist-build.xml 2012-08-09 17:45:42.000000000 +0200
++++ dist-build.xml-gil 2013-05-21 16:26:12.088756889 +0200
+@@ -1,266 +1,275 @@
+-<?xml version="1.0"?>
+-<!-- ======================================================================
+- JetS3t
+- Toolkit and application suite for Amazon's S3 online storage service.
+-
+- James Murty
+- ====================================================================== -->
+-<project name="JetS3t" default="help">
+- <description>
+- JetS3t : Toolkit and application suite for Amazon's S3 online storage service
+- </description>
+-
+- <property file="build.properties"/>
+-
+- <target name="help">
+- <echo>
+-Welcome to the JetS3t ANT build script.
+-
+-The build.xml script will allow you to rebuild the JetS3t suite
+-from the source code included with the distribution. It should
+-make it easier to make your own additions to the library, to
+-build your own versions of applications or applets, and to make
+-JetS3t work the way you want.
+-
+-The first thing you may want to do is recompile JetS3t using
+-the latest version of Java. To do this, modify the debug and
+-build.target properties in the build.properties file and run
+-the "rebuild-all" target.
+-
+-
+-ANT TARGET DESCRIPTIONS
+-
+-rebuild-all : Rebuild the JetS3t Jar files for the library and
+- all applications.
+-compile : Compiles the JetS3t source code, but does not
+- produce Jar files. This target is useful as a
+- quick test to make sure any code changes you make
+- will compile correctly.
+-clean : Removes all the temporary compile/build artifacts
+-
+-help : Displays this help message
+-
+-rebuild-service : Rebuild the library/toolkit files
+-rebuild-cockpit : Rebuild the Cockpit application
+-rebuild-synchronize : Rebuild the Synchronize application
+-rebuild-gatekeeper : Rebuild the Gatekeeper servlet WAR
+-rebuild-uploader : Rebuild the Uploader application
+-rebuild-cockpitlite : Rebuild the CockpitLite application
+-
+-repackage-applets : Repackages all the applet applications.
+- This replaces the contents of the applets
+- directory with applets built from the
+- latest code, and signed with the keystore
+- configured in the build.properties file.
+-repackage-applet-cockpit : Repackage the Cockpit applet
+-repackage-applet-cockpitlite : Repackage the CockpitLite applet
+-repackage-applet-uploader : Repackage the Uploader applet
+-
+-init : Sets dynamic properties required by the
+- build script.
+-unzip-source-code : Unzips the JetS3t source code from src.zip.
+- This target will be called automatically if
+- necessary.
+-zip-source-code : Zips the JetS3t source code to an archive file with a
+- version number: jets3t-src-${version}.zip
+-</echo>
+- </target>
+-
+- <!-- =================================
+- Define the script-wide classpath.
+- ================================= -->
+- <path id="classpath">
+- <fileset dir="${dir.libs}" includes="**/*.jar"/>
+- </path>
+-
+-
+- <target name="rebuild-all"
+- depends="rebuild-service,rebuild-cockpit,rebuild-cockpitlite,rebuild-synchronize,rebuild-uploader,rebuild-gatekeeper"/>
+-
+- <target name="unzip-source-code" unless="src-unzipped">
+- <unzip dest="." src="src.zip" overwrite="false"/>
+- </target>
+-
+- <target name="zip-source-code">
+- <zip
+- destfile="jets3t-src-${version}.zip"
+- basedir="."
+- includes="${dir.src}/**/*.java"/>
+- </target>
+-
+- <target name="init">
+- <available property="src-unzipped" file="${dir.src}"/>
+- <available property="keystore-exists" file="${keystore.file}"/>
+- </target>
+-
+- <target name="compile" depends="init,unzip-source-code">
+- <mkdir dir="${dir.build}"/>
+- <javac
+- srcdir="${dir.src}"
+- destdir="${dir.build}"
+- debug="${debug}"
+- source="1.4"
+- target="${build.target}">
+- <classpath refid="classpath"/>
+- <exclude name="contribs/mx/**" unless="contribs.include-mx"/>
+- </javac>
+- </target>
+-
+- <target name="rebuild-service" depends="compile">
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.service}"
+- index="true"
+- >
+- <include name="org/jets3t/service/**"/>
+- <include name="org/apache/commons/httpclient/contrib/**"/>
+- <include name="contribs/mx/**" if="contribs.include-mx"/>
+- </jar>
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.guisupport}"
+- index="true"
+- >
+- <include name="org/jets3t/gui/**"/>
+- <include name="org/jets3t/gui/skins/**"/>
+- </jar>
+- </target>
+-
++<?xml version="1.0"?>
++<!-- ======================================================================
++ JetS3t
++ Toolkit and application suite for Amazon's S3 online storage service.
++
++ James Murty
++ ====================================================================== -->
++<project name="JetS3t" default="help">
++ <description>
++ JetS3t : Toolkit and application suite for Amazon's S3 online storage service
++ </description>
++
++ <property file="build.properties"/>
++
++ <target name="help">
++ <echo>
++Welcome to the JetS3t ANT build script.
++
++The build.xml script will allow you to rebuild the JetS3t suite
++from the source code included with the distribution. It should
++make it easier to make your own additions to the library, to
++build your own versions of applications or applets, and to make
++JetS3t work the way you want.
++
++The first thing you may want to do is recompile JetS3t using
++the latest version of Java. To do this, modify the debug and
++build.target properties in the build.properties file and run
++the "rebuild-all" target.
++
++
++ANT TARGET DESCRIPTIONS
++
++rebuild-all : Rebuild the JetS3t Jar files for the library and
++ all applications.
++compile : Compiles the JetS3t source code, but does not
++ produce Jar files. This target is useful as a
++ quick test to make sure any code changes you make
++ will compile correctly.
++clean : Removes all the temporary compile/build artifacts
++
++help : Displays this help message
++
++rebuild-service : Rebuild the library/toolkit files
++rebuild-cockpit : Rebuild the Cockpit application
++rebuild-synchronize : Rebuild the Synchronize application
++rebuild-gatekeeper : Rebuild the Gatekeeper servlet WAR
++rebuild-uploader : Rebuild the Uploader application
++rebuild-cockpitlite : Rebuild the CockpitLite application
++
++repackage-applets : Repackages all the applet applications.
++ This replaces the contents of the applets
++ directory with applets built from the
++ latest code, and signed with the keystore
++ configured in the build.properties file.
++repackage-applet-cockpit : Repackage the Cockpit applet
++repackage-applet-cockpitlite : Repackage the CockpitLite applet
++repackage-applet-uploader : Repackage the Uploader applet
++
++init : Sets dynamic properties required by the
++ build script.
++unzip-source-code : Unzips the JetS3t source code from src.zip.
++ This target will be called automatically if
++ necessary.
++zip-source-code : Zips the JetS3t source code to an archive file with a
++ version number: jets3t-src-${version}.zip
++</echo>
++ </target>
++
++ <!-- =================================
++ Define the script-wide classpath.
++ ================================= -->
++ <path id="classpath">
++ <fileset dir="/usr/share/java/" includes="jackson/jackson-core-asl.jar"/>
++ <fileset dir="/usr/share/java/" includes="jackson/jackson-mapper-asl.jar"/>
++ <fileset dir="/usr/share/java/" includes="commons-discovery.jar"/>
++ <fileset dir="/usr/share/java/" includes="mx4j/mx4j.jar"/>
++ <fileset dir="/usr/share/java/" includes="bcprov.jar"/>
++ <fileset dir="/usr/share/java/" includes="commons-codec.jar"/>
++ <fileset dir="/usr/share/java/" includes="java-xmlbuilder.jar"/>
++ <fileset dir="/usr/share/java/" includes="base64.jar"/>
++ <fileset dir="/usr/share/java/" includes="commons-logging.jar"/>
++ <fileset dir="/usr/share/java/" includes="junit.jar"/>
++ <fileset dir="/usr/share/java/" includes="httpcomponents/httpclient.jar"/>
++ <fileset dir="/usr/share/java/" includes="httpcomponents/httpcore.jar"/>
++ <fileset dir="/usr/share/java/" includes="log4j.jar"/>
++ <fileset dir="/usr/share/java/" includes="tomcat-servlet-3.0-api.jar"/>
++ <fileset dir="/usr/share/java/" includes="javamail/mail.jar"/>
++ <fileset dir="/usr/share/java/" includes="BareBonesBrowserLaunch.jar"/>
++ </path>
++
++
++ <target name="rebuild-all"
++ depends="rebuild-service,rebuild-cockpit,rebuild-cockpitlite,rebuild-synchronize,rebuild-uploader,rebuild-gatekeeper"/>
++
++ <target name="unzip-source-code" unless="src-unzipped">
++ <unzip dest="." src="src.zip" overwrite="false"/>
++ </target>
++
++ <target name="zip-source-code">
++ <zip
++ destfile="jets3t-src-${version}.zip"
++ basedir="."
++ includes="${dir.src}/**/*.java"/>
++ </target>
++
++ <target name="init">
++ <available property="src-unzipped" file="${dir.src}"/>
++ <available property="keystore-exists" file="${keystore.file}"/>
++ </target>
++
++ <target name="compile" depends="init,unzip-source-code">
++ <mkdir dir="${dir.build}"/>
++ <javac
++ srcdir="${dir.src}"
++ destdir="${dir.build}"
++ debug="${debug}"
++ source="1.5"
++ target="1.5">
++ <classpath refid="classpath"/>
++ <exclude name="contribs/mx/**" unless="contribs.include-mx"/>
++ </javac>
++ </target>
++
++ <target name="rebuild-service" depends="compile">
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.service}"
++ index="true">
++ <include name="org/jets3t/service/**"/>
++ <include name="org/apache/commons/httpclient/contrib/**"/>
++ <include name="contribs/mx/**" if="contribs.include-mx"/>
++ </jar>
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.guisupport}"
++ index="true">
++ <include name="org/jets3t/gui/**"/>
++ <include name="org/jets3t/gui/skins/**"/>
++ </jar>
++ </target>
++
+ <target name="rebuild-cockpit" depends="rebuild-service">
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.cockpit}"
+- index="true"
+- >
+- <include name="org/jets3t/apps/cockpit/**"/>
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.cockpit}"
++ index="true">
++ <include name="org/jets3t/apps/cockpit/**"/>
+ <manifest>
+ <attribute name="Main-Class" value="org.jets3t.apps.cockpit.Cockpit"/>
+ </manifest>
+- </jar>
+- </target>
+-
+- <target name="rebuild-cockpitlite" depends="rebuild-service">
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.cockpitlite}"
+- index="true"
+- >
+- <include name="org/jets3t/apps/cockpitlite/**"/>
+- <manifest>
+- <attribute name="Main-Class" value="org.jets3t.apps.cockpitlite.CockpitLite"/>
+- </manifest>
+- </jar>
+- </target>
+-
++ </jar>
++ </target>
++
++ <target name="rebuild-cockpitlite" depends="rebuild-service">
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.cockpitlite}"
++ index="true">
++ <include name="org/jets3t/apps/cockpitlite/**"/>
++ <manifest>
++ <attribute name="Main-Class" value="org.jets3t.apps.cockpitlite.CockpitLite"/>
++ </manifest>
++ </jar>
++ </target>
++
+ <target name="rebuild-synchronize" depends="rebuild-service">
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.synchronize}"
+- index="true"
+- >
+- <include name="org/jets3t/apps/synchronize/**"/>
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.synchronize}"
++ index="true">
++ <include name="org/jets3t/apps/synchronize/**"/>
+ <manifest>
+ <attribute name="Main-Class" value="org.jets3t.apps.synchronize.Synchronize"/>
+ </manifest>
+- </jar>
+- </target>
+-
++ </jar>
++ </target>
++
+ <target name="rebuild-uploader" depends="rebuild-service">
+- <jar
+- basedir="${dir.build}"
+- file="jars/${dist.file.uploader}"
+- index="true"
+- >
+- <include name="org/jets3t/apps/uploader/**"/>
++ <jar
++ basedir="${dir.build}"
++ file="jars/${dist.file.uploader}"
++ index="true">
++ <include name="org/jets3t/apps/uploader/**"/>
+ <manifest>
+ <attribute name="Main-Class" value="org.jets3t.apps.uploader.Uploader"/>
+ </manifest>
+- </jar>
+- </target>
+-
+- <target name="rebuild-gatekeeper" depends="rebuild-service">
+- <war
+- destfile="servlets/gatekeeper/${dist.file.gatekeeper}"
+- webxml="${dir.servlets}/gatekeeper-web.xml"
+- >
+-
+- <lib dir="jars" includes="${dist.file.service}"/>
+- <lib dir="${dir.libs}/httpcomponents" includes="*.jar"/>
+- <lib dir="${dir.libs}/commons-logging" includes="*.jar"/>
+- <lib dir="${dir.libs}/commons-codec" includes="*.jar"/>
+- <lib dir="${dir.libs}/logging-log4j" includes="*.jar"/>
+- <lib dir="${dir.libs}/safehaus_jug" includes="*.jar"/>
+-
+- <classes dir="${dir.configs}">
++ </jar>
++ </target>
++
++ <target name="rebuild-gatekeeper" depends="rebuild-service">
++ <war
++ destfile="servlets/gatekeeper/${dist.file.gatekeeper}"
++ webxml="${dir.servlets}/gatekeeper-web.xml"
++ >
++
++ <lib dir="jars" includes="${dist.file.service}"/>
++ <lib dir="${dir.libs}/httpcomponents" includes="*.jar"/>
++ <lib dir="${dir.libs}/commons-logging" includes="*.jar"/>
++ <lib dir="${dir.libs}/commons-codec" includes="*.jar"/>
++ <lib dir="${dir.libs}/logging-log4j" includes="*.jar"/>
++ <lib dir="${dir.libs}/safehaus_jug" includes="*.jar"/>
++
++ <classes dir="${dir.configs}">
+ <include name="commons-logging.properties"/>
+ <include name="log4j.properties"/>
+- <include name="simplelog.properties"/>
+- </classes>
+- <classes dir="${dir.build}">
+- <include name="org/jets3t/servlets/gatekeeper/**"/>
+- </classes>
+- </war>
+- </target>
+-
+- <target name="create-keystore" unless="keystore-exists">
+- <echo>
+-Keystore file ${keystore.file} does not exist. The build script will now create
+-a generic keystore on your behalf for development and testing purposes. If you
+-intend to make the applets publicly available, please create a keystore with
+-proper information and modify the keystore settings in build.properties
+-to refer to this official keystore.
+- </echo>
+- <genkey
+- alias="${keystore.alias}"
+- storepass="${keystore.storepass}"
+- keystore="${keystore.file}"
+- keypass="${keystore.keypass}"
+- dname="CN=Unknown Developer, OU=, O=, C="
+- validity="30"
+- verbose="true">
+- </genkey>
+- </target>
+-
++ <include name="simplelog.properties"/>
++ </classes>
++ <classes dir="${dir.build}">
++ <include name="org/jets3t/servlets/gatekeeper/**"/>
++ </classes>
++ </war>
++ </target>
++
++ <target name="create-keystore" unless="keystore-exists">
++ <echo>
++Keystore file ${keystore.file} does not exist. The build script will now create
++a generic keystore on your behalf for development and testing purposes. If you
++intend to make the applets publicly available, please create a keystore with
++proper information and modify the keystore settings in build.properties
++to refer to this official keystore.
++ </echo>
++ <genkey
++ alias="${keystore.alias}"
++ storepass="${keystore.storepass}"
++ keystore="${keystore.file}"
++ keypass="${keystore.keypass}"
++ dname="CN=Unknown Developer, OU=, O=, C="
++ validity="30"
++ verbose="true">
++ </genkey>
++ </target>
++
+ <target name="repackage-applets" depends="repackage-applet-cockpit,repackage-applet-cockpitlite,repackage-applet-uploader">
+- </target>
+-
+- <target name="sign-jars" depends="init,rebuild-all,create-keystore">
+- <mkdir dir="${dir.applets}"/>
+-
++ </target>
++
++ <target name="sign-jars" depends="init,rebuild-all,create-keystore">
++ <mkdir dir="${dir.applets}"/>
++
+ <!-- Copy jars required by all applets -->
+- <copy
+- todir="${dir.applets}"
+- flatten="true"
+- >
+- <fileset dir="jars">
+- <include name="**/${dist.file.service}"/>
+- <include name="**/${dist.file.guisupport}"/>
+- </fileset>
+- </copy>
+- <copy
+- todir="${dir.applets}"
+- flatten="true"
+- >
+- <fileset dir="${dir.libs}">
+- <include name="**/commons-logging/*.jar"/>
+- <include name="**/commons-codec/*.jar"/>
+- <include name="**/httpcomponents/*.jar"/>
+- <include name="**/bouncycastle/*.jar"/>
+- </fileset>
+- </copy>
+-
+- <!-- Sign jars -->
+- <signjar
+- alias="${keystore.alias}"
+- keystore="${keystore.file}"
+- storepass="${keystore.storepass}"
+- keypass="${keystore.keypass}"
++ <copy
++ todir="${dir.applets}"
++ flatten="true"
++ >
++ <fileset dir="jars">
++ <include name="**/${dist.file.service}"/>
++ <include name="**/${dist.file.guisupport}"/>
++ </fileset>
++ </copy>
++ <copy
++ todir="${dir.applets}"
++ flatten="true"
++ >
++ <fileset dir="${dir.libs}">
++ <include name="**/commons-logging/*.jar"/>
++ <include name="**/commons-codec/*.jar"/>
++ <include name="**/httpcomponents/*.jar"/>
++ <include name="**/bouncycastle/*.jar"/>
++ </fileset>
++ </copy>
++
++ <!-- Sign jars -->
++ <signjar
++ alias="${keystore.alias}"
++ keystore="${keystore.file}"
++ storepass="${keystore.storepass}"
++ keypass="${keystore.keypass}"
+ lazy="true"
+ >
+ <fileset dir="${dir.applets}" includes="*.jar"/>
+- </signjar>
++ </signjar>
+ </target>
+-
++
+ <target name="repackage-applet-cockpit" depends="sign-jars">
+
+ <!-- Copy jars required by Cockpit applet -->
+@@ -273,33 +282,33 @@
+ </fileset>
+ </copy>
+
+- <!-- Copy relevant configuration files -->
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.configs}">
+- <include name="jets3t.properties"/>
+- <include name="mime.types"/>
+- </fileset>
+- </copy>
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.applets}">
+- <include name="commons-logging.properties"/>
+- <include name="simplelog.properties"/>
+- </fileset>
+- </copy>
+-
+- <!-- Copy applet running HTML files -->
+- <copy todir="${dir.applets}">
++ <!-- Copy relevant configuration files -->
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.configs}">
++ <include name="jets3t.properties"/>
++ <include name="mime.types"/>
++ </fileset>
++ </copy>
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.applets}">
++ <include name="commons-logging.properties"/>
++ <include name="simplelog.properties"/>
++ </fileset>
++ </copy>
++
++ <!-- Copy applet running HTML files -->
++ <copy todir="${dir.applets}">
+ <fileset dir="${dir.applets}">
+ <exclude name="*cockpit*lite*"/>
+ <include name="*cockpit*"/>
+ </fileset>
+- </copy>
+-
+- <!-- Copy resources -->
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.resources}" includes="**"/>
+- </copy>
+-
++ </copy>
++
++ <!-- Copy resources -->
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.resources}" includes="**"/>
++ </copy>
++
+ <!-- Sign jars -->
+ <signjar
+ alias="${keystore.alias}"
+@@ -312,20 +321,20 @@
+ <include name="${dist.file.cockpit}"/>
+ </fileset>
+ </signjar>
+- </target>
+-
++ </target>
++
+ <target name="repackage-applet-cockpitlite" depends="sign-jars">
+-
++
+ <!-- Copy jars required by CockpitLite applet -->
+- <copy
+- todir="${dir.applets}"
+- flatten="true"
+- >
+- <fileset dir="jars">
++ <copy
++ todir="${dir.applets}"
++ flatten="true"
++ >
++ <fileset dir="jars">
+ <include name="**/${dist.file.cockpitlite}"/>
+- <include name="**/${dist.file.guisupport}"/>
+- </fileset>
+- </copy>
++ <include name="**/${dist.file.guisupport}"/>
++ </fileset>
++ </copy>
+
+ <!-- Copy relevant configuration files -->
+ <copy todir="${dir.applets}">
+@@ -333,41 +342,41 @@
+ <include name="jets3t.properties"/>
+ <include name="mime.types"/>
+ <include name="cockpit-lite.properties"/>
+- </fileset>
+- </copy>
++ </fileset>
++ </copy>
+ <copy todir="${dir.applets}">
+ <fileset dir="${dir.applets}">
+ <include name="commons-logging.properties"/>
+ <include name="simplelog.properties"/>
+ </fileset>
+ </copy>
+-
++
+ <!-- Copy applet running HTML files -->
+ <copy todir="${dir.applets}">
+ <fileset dir="${dir.applets}">
+ <include name="*cockpit*lite*"/>
+ </fileset>
+- </copy>
+-
+- <!-- Copy resources -->
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.resources}" includes="**"/>
++ </copy>
++
++ <!-- Copy resources -->
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.resources}" includes="**"/>
+ </copy>
+
+- <!-- Sign jars -->
+- <signjar
+- alias="${keystore.alias}"
+- keystore="${keystore.file}"
+- storepass="${keystore.storepass}"
+- keypass="${keystore.keypass}"
++ <!-- Sign jars -->
++ <signjar
++ alias="${keystore.alias}"
++ keystore="${keystore.file}"
++ storepass="${keystore.storepass}"
++ keypass="${keystore.keypass}"
+ lazy="true"
+ >
+ <fileset dir="${dir.applets}">
+ <include name="${dist.file.cockpitlite}"/>
+ </fileset>
+- </signjar>
++ </signjar>
+ </target>
+-
++
+ <target name="repackage-applet-uploader" depends="sign-jars">
+
+ <!-- Copy jars required by Uploader applet -->
+@@ -380,34 +389,34 @@
+ </fileset>
+ </copy>
+
+- <!-- Copy relevant configuration files -->
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.configs}">
+- <include name="jets3t.properties"/>
+- <include name="mime.types"/>
++ <!-- Copy relevant configuration files -->
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.configs}">
++ <include name="jets3t.properties"/>
++ <include name="mime.types"/>
+ <include name="uploader.properties"/>
+- <include name="cockpitlite.properties"/>
+- </fileset>
+- </copy>
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.applets}">
+- <include name="commons-logging.properties"/>
+- <include name="simplelog.properties"/>
+- </fileset>
+- </copy>
+-
+- <!-- Copy applet running HTML files -->
+- <copy todir="${dir.applets}">
++ <include name="cockpitlite.properties"/>
++ </fileset>
++ </copy>
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.applets}">
++ <include name="commons-logging.properties"/>
++ <include name="simplelog.properties"/>
++ </fileset>
++ </copy>
++
++ <!-- Copy applet running HTML files -->
++ <copy todir="${dir.applets}">
+ <fileset dir="${dir.applets}">
+ <include name="*uploader*"/>
+ </fileset>
+- </copy>
+-
+- <!-- Copy resources -->
+- <copy todir="${dir.applets}">
+- <fileset dir="${dir.resources}" includes="**"/>
+- </copy>
+-
++ </copy>
++
++ <!-- Copy resources -->
++ <copy todir="${dir.applets}">
++ <fileset dir="${dir.resources}" includes="**"/>
++ </copy>
++
+ <!-- Sign jars -->
+ <signjar
+ alias="${keystore.alias}"
+@@ -420,12 +429,27 @@
+ <include name="${dist.file.uploader}"/>
+ </fileset>
+ </signjar>
+- </target>
+-
+-
+- <target name="clean">
+- <delete dir="${dir.build}"/>
+- </target>
+-
+-</project>
+-
++ </target>
++
++
++ <target name="clean">
++ <delete dir="${dir.build}"/>
++ </target>
++
++ <target name="api-docs">
++ <mkdir dir="dist/api-docs"/>
++ <javadoc
++ author="false"
++ version="true"
++ destdir="dist/api-docs"
++ windowtitle="JetS3t API : Amazon S3 Toolkit">
++
++ <classpath refid="classpath"/>
++ <fileset
++ dir="${dir.src}"
++ includes="**/*.java"/>
++ </javadoc>
++ </target>
++
++</project>
++
diff --git a/jets3t-0.9.0-nuvola-fsf-address.patch b/jets3t-0.9.0-nuvola-fsf-address.patch
new file mode 100644
index 0000000..d75a292
--- /dev/null
+++ b/jets3t-0.9.0-nuvola-fsf-address.patch
@@ -0,0 +1,20 @@
+--- resources/images/nuvola/license.txt 2012-08-09 17:45:42.000000000 +0200
++++ resources/images/nuvola/license.txt-gil 2012-08-09 19:35:30.476198569 +0200
+@@ -2,7 +2,7 @@
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+@@ -485,7 +485,7 @@
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Also add information on how to contact you by electronic and paper mail.
+
diff --git a/jets3t-0.9.0-scripts.patch b/jets3t-0.9.0-scripts.patch
new file mode 100644
index 0000000..d85f503
--- /dev/null
+++ b/jets3t-0.9.0-scripts.patch
@@ -0,0 +1,211 @@
+diff -Nru scripts/cockpitlite.sh scripts-gil/cockpitlite.sh
+--- scripts/cockpitlite.sh 2012-08-09 17:45:42.000000000 +0200
++++ scripts-gil/cockpitlite.sh 2013-05-21 16:30:24.000000000 +0200
+@@ -8,7 +8,7 @@
+ # Java Development Kit to use.
+ # -------------------------------------------------------------------
+
+-: ${JETS3T_HOME:-""}
++: ${JETS3T_HOME:="/usr/share/jets3t"}
+ : ${JAVA_HOME:-""}
+
+ # Check the JETS3T_HOME directory
+@@ -33,8 +33,7 @@
+ # Test whether the 'java' program is available in the system path.
+ java -version 2> /dev/null
+ if [ $? -gt 0 ]; then
+- echo "Please set the environment variable JAVA_HOME"
+- exit 1
++ export JAVA_HOME="/usr/lib/jvm/java"
+ else
+ EXEC=java
+ fi
+@@ -50,17 +49,19 @@
+ # Include resources directory in classpath
+ CP=$CP:$JETS3T_HOME/resources
+
++: ${JAVA_LIBS:="/usr/share/java"}
++
+ # Include libraries in classpath
+-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/cockpitlite-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.4.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/misc/BareBonesBrowserLaunch.jar
+-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar
+-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar
++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar
++CP=$CP:$JAVA_LIBS/jets3t/gui.jar
++CP=$CP:$JAVA_LIBS/jets3t/cockpitlite.jar
++CP=$CP:$JAVA_LIBS/commons-logging.jar
++CP=$CP:$JAVA_LIBS/commons-codec.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar
++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
++CP=$CP:$JAVA_LIBS/log4j.jar
++CP=$CP:$JAVA_LIBS/bcprov.jar
+
+ # Convert classpath for cygwin bash
+ case "`uname -s`" in
+diff -Nru scripts/cockpit.sh scripts-gil/cockpit.sh
+--- scripts/cockpit.sh 2012-08-09 17:45:42.000000000 +0200
++++ scripts-gil/cockpit.sh 2013-05-21 16:32:06.000000000 +0200
+@@ -8,7 +8,7 @@
+ # Java Development Kit to use.
+ # -------------------------------------------------------------------
+
+-: ${JETS3T_HOME:-""}
++: ${JETS3T_HOME:="/usr/share/jets3t"}
+ : ${JAVA_HOME:-""}
+
+ # Check the JETS3T_HOME directory
+@@ -33,8 +33,7 @@
+ # Test whether the 'java' program is available in the system path.
+ java -version 2> /dev/null
+ if [ $? -gt 0 ]; then
+- echo "Please set the environment variable JAVA_HOME"
+- exit 1
++ export JAVA_HOME="/usr/lib/jvm/java"
+ else
+ EXEC=java
+ fi
+@@ -50,18 +49,22 @@
+ # Include resources directory in classpath
+ CP=$CP:$JETS3T_HOME/resources
+
++# System libraries path
++: ${JAVA_LIBS:="/usr/share/java"}
++
+ # Include libraries in classpath
+-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/cockpit-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.4.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/misc/BareBonesBrowserLaunch.jar
+-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar
+-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar
+-CP=$CP:$JETS3T_HOME/libs/java-xmlbuilder/java-xmlbuilder-0.4.jar
++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar
++CP=$CP:$JAVA_LIBS/jets3t/gui.jar
++CP=$CP:$JAVA_LIBS/jets3t/cockpit.jar
++CP=$CP:$JAVA_LIBS/commons-logging.jar
++CP=$CP:$JAVA_LIBS/commons-codec.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar
++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
++CP=$CP:$JAVA_LIBS/log4j.jar
++CP=$CP:$JAVA_LIBS/bcprov.jar
++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
++CP=$CP:$JAVA_LIBS/base64.jar
+
+ # Convert classpath for cygwin bash
+ case "`uname -s`" in
+diff -Nru scripts/synchronize.sh scripts-gil/synchronize.sh
+--- scripts/synchronize.sh 2012-08-09 17:45:42.000000000 +0200
++++ scripts-gil/synchronize.sh 2013-05-21 16:32:27.000000000 +0200
+@@ -8,7 +8,7 @@
+ # Java Development Kit to use.
+ # -------------------------------------------------------------------
+
+-: ${JETS3T_HOME:-""}
++: ${JETS3T_HOME:="/usr/share/jets3t"}
+ : ${JAVA_HOME:-""}
+
+ # Check the JETS3T_HOME directory
+@@ -33,8 +33,7 @@
+ # Test whether the 'java' program is available in the system path.
+ java -version 2> /dev/null
+ if [ $? -gt 0 ]; then
+- echo "Please set the environment variable JAVA_HOME"
+- exit 1
++ export JAVA_HOME="/usr/lib/jvm/java"
+ else
+ EXEC=java
+ fi
+@@ -50,16 +49,20 @@
+ # Include resources directory in classpath
+ CP=$CP:$JETS3T_HOME/resources
+
++# System libraries path
++: ${JAVA_LIBS:="/usr/share/java"}
++
+ # Include libraries in classpath
+-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/synchronize-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.4.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar
+-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar
+-CP=$CP:$JETS3T_HOME/libs/java-xmlbuilder/java-xmlbuilder-0.4.jar
++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar
++CP=$CP:$JAVA_LIBS/jets3t/synchronize.jar
++CP=$CP:$JAVA_LIBS/commons-logging.jar
++CP=$CP:$JAVA_LIBS/commons-codec.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar
++CP=$CP:$JAVA_LIBS/log4j.jar
++CP=$CP:$JAVA_LIBS/bcprov.jar
++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
++CP=$CP:$JAVA_LIBS/base64.jar
+
+ # Convert classpath for cygwin bash
+ case "`uname -s`" in
+diff -Nru scripts/uploader.sh scripts-gil/uploader.sh
+--- scripts/uploader.sh 2012-08-09 17:45:42.000000000 +0200
++++ scripts-gil/uploader.sh 2013-05-21 16:30:24.000000000 +0200
+@@ -8,7 +8,7 @@
+ # Java Development Kit to use.
+ # -------------------------------------------------------------------
+
+-: ${JETS3T_HOME:-""}
++: ${JETS3T_HOME:="/usr/share/jets3t"}
+ : ${JAVA_HOME:-""}
+
+ # Check the JETS3T_HOME directory
+@@ -33,8 +33,7 @@
+ # Test whether the 'java' program is available in the system path.
+ java -version 2> /dev/null
+ if [ $? -gt 0 ]; then
+- echo "Please set the environment variable JAVA_HOME"
+- exit 1
++ export JAVA_HOME="/usr/lib/jvm/java"
+ else
+ EXEC=java
+ fi
+@@ -50,16 +49,19 @@
+ # Include resources directory in classpath
+ CP=$CP:$JETS3T_HOME/resources
+
++# System libraries path
++: ${JAVA_LIBS:="/usr/share/java"}
++
+ # Include libraries in classpath
+-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/jars/uploader-{jets3t-version}.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar
+-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.4.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.1.2.jar
+-CP=$CP:$JETS3T_HOME/libs/misc/BareBonesBrowserLaunch.jar
+-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar
++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar
++CP=$CP:$JAVA_LIBS/jets3t/gui.jar
++CP=$CP:$JAVA_LIBS/jets3t/uploader.jar
++CP=$CP:$JAVA_LIBS/commons-logging.jar
++CP=$CP:$JAVA_LIBS/commons-codec.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar
++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar
++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
++CP=$CP:$JAVA_LIBS/log4j.jar
+
+ # Convert classpath for cygwin bash
+ case "`uname -s`" in
diff --git a/jets3t-0.9.0.pom b/jets3t-0.9.0.pom
new file mode 100644
index 0000000..aa3dd7c
--- /dev/null
+++ b/jets3t-0.9.0.pom
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>jets3t</artifactId>
+ <packaging>jar</packaging>
+ <version>0.9.0</version>
+ <name>An open source Java toolkit for Amazon S3</name>
+ <description>JetS3t is a free, open-source Java toolkit and application suite for Amazon Simple Storage Service (Amazon S3), Amazon CloudFront content delivery network, and Google Storage for Developers.</description>
+ <url>http://www.jets3t.org</url>
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>http://bitbucket.org/jmurty/jets3t/src</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>4.1.2</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpcore</artifactId>
+ <version>4.1.2</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>com.jamesmurty.utils</groupId>
+ <artifactId>java-xmlbuilder</artifactId>
+ <version>0.4</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/jets3t-cockpit.pod b/jets3t-cockpit.pod
new file mode 100644
index 0000000..2157789
--- /dev/null
+++ b/jets3t-cockpit.pod
@@ -0,0 +1,21 @@
+=head1 NAME
+
+jets3t-cockpit - transfer files, view and manage the contents of an Amazon S3 account
+
+=head1 SYNOPSIS
+
+jets3t-cockpit
+
+=head1 OVERVIEW
+
+Cockpit is a graphical Java application for viewing and managing the contents
+of an Amazon S3 account.
+
+=head1 FILES
+
+F</etc/jets3t/cockpit.properties>
+
+=head1 SEE ALSO
+
+L<jets3t-synchronize(1)>,
+http://jets3t.s3.amazonaws.com/applications/cockpit.html
diff --git a/jets3t-cockpitlite.pod b/jets3t-cockpitlite.pod
new file mode 100644
index 0000000..d335083
--- /dev/null
+++ b/jets3t-cockpitlite.pod
@@ -0,0 +1,24 @@
+=head1 NAME
+
+jets3t-cockpitlite - provide access to clients without Amazon S3 accounts
+
+=head1 SYNOPSIS
+
+jets3t-cockpitlite [<property1Name>=<property1Value> .. <propertyNName>=<propertyNValue>]
+
+=head1 OVERVIEW
+
+A graphical application that Service Providers with S3 accounts may provide to
+clients or customers without S3 accounts. CockpitLite allows users to manage
+the content of an S3 account to upload files, download files, delete S3 objects
+and make objects publicly accessible. All these operations are mediated by a
+Gatekeeper service.
+
+=head1 FILES
+
+F</etc/jets3t/cockpitlite.properties>
+
+=head1 SEE ALSO
+
+L<jets3t-synchronize(1)>,
+http://jets3t.s3.amazonaws.com/applications/cockpitlite.html
diff --git a/jets3t-gui-0.9.0.pom b/jets3t-gui-0.9.0.pom
new file mode 100644
index 0000000..11d5b12
--- /dev/null
+++ b/jets3t-gui-0.9.0.pom
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>jets3t-gui</artifactId>
+ <version>0.9.0</version>
+ <name>JetS3t GUI Library</name>
+ <description>Graphical User Interface elements used by multiple JetS3t applications.</description>
+ <url>http://www.jets3t.org/</url>
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>http://bitbucket.org/jmurty/jets3t/src</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>jets3t</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/jets3t-synchronize.pod b/jets3t-synchronize.pod
new file mode 100644
index 0000000..b1c04df
--- /dev/null
+++ b/jets3t-synchronize.pod
@@ -0,0 +1,184 @@
+=head1 NAME
+
+jets3t-synchronize - synchronize local directories with an Amazon S3 account
+
+=head1 SYNOPSIS
+
+=over 2
+
+=item Synchronize the contents of a local directory with S3:
+
+
+jets3t-synchronize [options] UP <S3path> <path1> [[path2] .. [pathN]]
+
+=item Synchronize the contents of S3 with a local directory:
+
+
+jets3t-synchronize [options] DOWN <S3path> <download_dir>
+
+=back
+
+=head1 OVERVIEW
+
+jets3t-synchronize is a console (text mode) Java application for synchronizing
+directories on a computer with an Amazon S3 account.
+
+=head1 OPTIONS
+
+=over 2
+
+=item B<-h>, B<--help>
+
+Displays a brief summary with all options.
+
+=item B<-n>, B<--noaction>
+
+No action taken. No files will be changed locally or on S3, instead
+a report will be generating showing what will happen if the command
+is run without the -n option.
+
+=item B<-q>, B<--quiet>
+
+Runs quietly, without reporting on each action performed or displaying
+progress messages. The summary is still displayed.
+
+=item B<-p>, B<--noprogress>
+
+Runs somewhat quietly, without displaying progress messages.
+The action report and overall summary are still displayed.
+
+=item B<-f>, B<--force>
+
+Force tool to perform synchronization even when files are up-to-date.
+This may be useful if you need to update metadata or timestamps in S3.
+
+=item B<-k>, B<--keepfiles>
+
+Keep outdated files on destination instead of reverting/removing them.
+This option cannot be used with --nodelete.
+
+=item B<-d>, B<--nodelete>
+
+Keep files on destination that have been removed from the source. This
+option is similar to --keepfiles except that files may be reverted.
+This option cannot be used with --keepfiles.
+
+=item B<-m>, B<--move>
+
+Move items rather than merely copying them. Files on the local computer will
+be deleted after they have been uploaded to S3, or objects will be deleted
+from S3 after they have been downloaded. Be *very* careful with this option.
+This option cannot be used with --keepfiles.
+
+=item B<-b>, B<--batch>
+
+Download or upload files in batches, rather than all at once. Enabling this
+option will reduce the memory required to synchronize large buckets, and will
+ensure file transfers commence as soon as possible. When this option is
+enabled, the progress status lines refer only to the progress of a single batch.
+
+=item B<-s>, B<--skipmetadata>
+
+Skip the retrieval of object metadata information from S3. This will make the
+synch process much faster for large buckets, but it will leave
+jets3t-synchronize with less information to make decisions. If this option is
+enabled, empty files or directories will not be synchronized reliably.
+This option cannot be used with the --gzip or --crypto options.
+
+=item B<-g>, B<--gzip>
+
+Compress (GZip) files when backing up and decompress gzipped files
+when restoring.
+
+=item B<-c>, B<--crypto>
+
+Encrypt files when backing up and decrypt encrypted files when restoring. If
+this option is specified the properties must contain a password.
+
+=item B<--properties> I<filename>
+
+Load the synchronizer app properties from the given file rather than from
+a synchronizer.properties file in the classpath.
+
+=item B<--credentials> I<filename>
+
+Load your AWS credentials from an encrypted file, rather than from the
+synchronizer.properties file. This encrypted file can be created using
+the Cockpit application, or the JetS3t API library.
+
+=item B<--acl> I<ACL_string>
+
+Specifies the Access Control List setting to apply. This value must be one
+of: PRIVATE, PUBLIC_READ, PUBLIC_READ_WRITE. This setting will override any
+acl property specified in the synchronize.properties file
+
+=item B<--reportlevel> I<level>
+
+A number that specifies how much report information will be printed:
+
+0 - no report items will be printed (the summary will still be printed).
+
+1 - only actions are reported
+
+[Prefixes N, U, D, R, F, M]
+
+2 - differences & actions are reported
+
+[Prefixes N, U, D, R, F, M, d, r]
+
+3 - DEFAULT: all items are reported
+
+[Prefixes N, U, D, R, F, M, d, r, -]
+
+=back
+
+=head1 NOTES
+
+Required properties can be provided via: a file named F<synchronize.properties>
+in the classpath (or F</etc/jets3t/synchronize.properties>), a file specified
+with the --properties option, or by typing them in when prompted on the command
+line. Required properties are:
+
+=over 2
+
+=item accesskey: Your AWS Access Key (Required)
+
+=item secretkey: Your AWS Secret Key (Required)
+
+=item password: Encryption password (only required when using crypto)
+
+=back
+
+Properties specified in this file will override those in F<jets3t.properties>
+(or in F</etc/jets3t/jets3t.properties>).
+
+=head1 REPORT
+
+Report items are printed on a single line with an action flag followed by
+the relative path of the file or S3 object. The report legend follows:
+
+N: A new file/object will be created
+
+U: An existing file/object has changed and will be updated
+
+D: A file/object existing on the target does not exist on the source and
+will be deleted.
+
+d: A file/object existing on the target does not exist on the source but
+because the --keepfiles or --nodelete option was set it was not deleted.
+
+R: An existing file/object has changed more recently on the target than on the
+source. The target version will be reverted to the older source version
+
+r: An existing file/object has changed more recently on the target than on the
+source but because the --keepfiles option was set it was not reverted.
+
+-: A file is identical between the local system and S3, no action is necessary.
+
+F: A file identical locally and in S3 was updated due to the Force option.
+
+M: The file/object will be moved (deleted after it has been copied to/from S3).
+
+=head1 SEE ALSO
+
+http://jets3t.s3.amazonaws.com/applications/synchronize.html
diff --git a/jets3t-uploader.pod b/jets3t-uploader.pod
new file mode 100644
index 0000000..d2a3cdb
--- /dev/null
+++ b/jets3t-uploader.pod
@@ -0,0 +1,23 @@
+=head1 NAME
+
+jets3t-uploader - provide upload access to clients without Amazon S3 accounts
+
+=head1 SYNOPSIS
+
+jets3t-uploader [<property1Name>=<property1Value> .. <propertyNName>=<propertyNValue>]
+
+=head1 OVERVIEW
+
+A graphical application that Service Providers with S3 accounts may provide to
+clients or customers without S3 accounts. Uploader allows users to upload files
+to S3 using a simple wizard-based workflow, but all uploads must first be
+authorized by a Gatekeeper service.
+
+=head1 FILES
+
+F</etc/jets3t/uploader.properties>
+
+=head1 SEE ALSO
+
+L<jets3t-synchronize(1)>,
+http://jets3t.s3.amazonaws.com/applications/uploader.html
diff --git a/jets3t.spec b/jets3t.spec
new file mode 100644
index 0000000..9e63a15
--- /dev/null
+++ b/jets3t.spec
@@ -0,0 +1,251 @@
+Name: jets3t
+Version: 0.9.0
+Release: 1%{?dist}
+Summary: Java interface to Amazon S3 and CloudFront services
+Group: Development/Libraries
+# nuvola theme is under LGPL 2.1
+# src/org/jets3t/gui/TableSorter.java BSD
+License: ASL 2.0 and BSD and LGPLv2+
+Url: http://jets3t.s3.amazonaws.com/index.html
+# hg clone https://bitbucket.org/jmurty/jets3t -r Release-0_9_0 jets3t-0.9.0
+# find jets3t-0.9.0/ -name "*.class" -delete
+# find jets3t-0.9.0/ -name "*.jar" -delete
+# find jets3t-0.9.0/ -name "*.bat" -delete
+# tar czf jets3t-0.9.0-clean-src-hg.tar.gz jets3t-0.9.0
+Source0: %{name}-%{version}-clean-src-hg.tar.gz
+Source1: http://repo1.maven.org/maven2/net/java/dev/%{name}/%{name}/%{version}/%{n...
+Source2: http://repo1.maven.org/maven2/net/java/dev/%{name}/%{name}-gui/%{version}...
+Source3: http://repo1.maven.org/maven2/net/java/dev/%{name}/cockpit/%{version}/coc...
+Source4: http://repo1.maven.org/maven2/net/java/dev/%{name}/synchronize/%{version}...
+# from Debian
+Source5: %{name}-cockpit.pod
+Source6: %{name}-cockpitlite.pod
+Source7: %{name}-synchronize.pod
+Source8: %{name}-uploader.pod
+
+# use jvm apis instead of jug-asl 2.0.0 library
+Patch0: %{name}-0.8.1-replace_uuid_lib.patch
+# added system classpath libraries and javadoc task, changed -source -target value 1.5
+Patch1: %{name}-%{version}-dist-build.patch
+# rename some artifacts
+Patch2: %{name}-0.8.1-build_properties-rename_apps_jars.patch
+# fix java.home, jets3t.home, add system libraries refs
+Patch3: %{name}-%{version}-scripts.patch
+# fix license fsf-address
+Patch4: %{name}-%{version}-nuvola-fsf-address.patch
+
+BuildRequires: java-devel
+
+BuildRequires: ant
+BuildRequires: apache-commons-codec
+BuildRequires: apache-commons-discovery
+BuildRequires: apache-commons-logging
+BuildRequires: BareBonesBrowserLaunch
+BuildRequires: base64
+BuildRequires: bouncycastle
+BuildRequires: httpcomponents-client
+BuildRequires: httpcomponents-core
+BuildRequires: jackson
+BuildRequires: java-xmlbuilder
+BuildRequires: javamail
+BuildRequires: junit
+BuildRequires: log4j
+BuildRequires: mx4j
+BuildRequires: tomcat-servlet-3.0-api
+
+# pod2man
+BuildRequires: perl
+
+Requires: apache-commons-codec
+Requires: apache-commons-logging
+Requires: httpcomponents-client
+Requires: httpcomponents-core
+Requires: java-xmlbuilder
+Requires: base64
+
+Requires: java
+BuildArch: noarch
+
+%description
+The JetS3t toolkit provides Java programmers with an API for interacting and
+managing data stored in Amazon Simple Storage Service and Amazon CloudFront
+content delivery network.
+
+%package app
+Summary: Graphical and command-line tools for Amazon S3 and CloudFront
+Group: Development/Tools
+Requires: %{name} = %{version}-%{release}
+Requires: jpackage-utils
+Requires: apache-commons-codec
+Requires: apache-commons-logging
+Requires: BareBonesBrowserLaunch
+Requires: base64
+Requires: bouncycastle
+Requires: httpcomponents-client
+Requires: httpcomponents-core
+Requires: java-xmlbuilder
+Requires: log4j
+
+%description app
+The JetS3t toolkit provides Java programmers with an API for interacting and
+managing data stored in Amazon Simple Storage Service and Amazon CloudFront
+content delivery network.
+
+Features:
+- jets3t-cockpitlite: A graphical application that Service Providers with S3
+ accounts may provide to clients or customers without S3 accounts.
+ jets3t-cockpitlite allows users to manage the content of an S3 account to
+ upload files, download files, delete S3 objects and make objects publicly
+ accessible. All these operations are mediated by a Gatekeeper service.
+- jets3t-cockpit: graphical application for transferring files, viewing and
+ managing the contents of an Amazon S3 account.
+- jets3t-synchronize: A command-line application for synchronizing
+ directories on your computer with an Amazon S3 account. Ideal for
+ performing back-ups or synchronizing files between different computers.
+- jets3t-uploader: A graphical application that Service Providers with S3
+ accounts may provide to clients or customers without S3 accounts.
+ jets3t-uploader allows users to upload files to S3 using a simple
+ wizard-based work-flow, but all uploads must first be authorized by a
+ Gatekeeper service
+- gatekeeper: A servlet that acts as an authorization service running on a
+ Service Provider's server to mediate access to S3 accounts.
+ It processes requests from client applications such as JetS3t Uploader &
+ CockpitLite, and authorizes the client application to perform operations
+ such as uploads, downloads and deletes.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+%patch0 -p0
+%patch1 -p0
+%patch2 -p0
+%patch3 -p0
+%patch4 -p0
+
+find . -name "*.war" -delete
+
+# fix non ASCII chars
+for s in src/org/jets3t/tests/BaseStorageServiceTests.java;do
+ native2ascii -encoding UTF8 ${s} ${s}
+done
+
+sed -i 's/\r//' LICENSE-2.0.txt NOTICE.txt resources/images/nuvola/license.txt
+
+cp -p %{SOURCE5} .
+cp -p %{SOURCE6} .
+cp -p %{SOURCE7} .
+cp -p %{SOURCE8} .
+
+%build
+
+ant -f dist-build.xml rebuild-all api-docs
+
+for m in cockpitlite cockpit synchronize uploader; do
+ %{_bindir}/pod2man -c '' -r '' %{name}-${m}.pod > %{name}-${m}.1 ;
+done
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}/%{name}
+
+install -m 644 jars/%{name}-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/%{name}.jar
+install -m 644 jars/%{name}-cockpit-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/cockpit.jar
+install -m 644 jars/%{name}-cockpitlite-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/cockpitlite.jar
+install -m 644 jars/%{name}-gui-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/gui.jar
+install -m 644 jars/%{name}-synchronize-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/synchronize.jar
+install -m 644 jars/%{name}-uploader-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}/uploader.jar
+
+mkdir -p %{buildroot}%{_datadir}/%{name}/jars
+(
+ cd %{buildroot}%{_javadir}
+ ln -sf ../../java/%{name}/%{name}.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-%{version}.jar
+ ln -sf ../../java/%{name}/gui.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-gui-%{version}.jar
+ ln -sf ../../java/%{name}/cockpit.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-cockpit-%{version}.jar
+ ln -sf ../../java/%{name}/cockpitlite.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-cockpitlite-%{version}.jar
+ ln -sf ../../java/%{name}/uploader.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-uploader-%{version}.jar
+ ln -sf ../../java/%{name}/synchronize.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-synchronize-%{version}.jar
+)
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
+install -pm 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP.%{name}-gui.pom
+%add_maven_depmap JPP.%{name}-gui.pom %{name}/gui.jar
+install -pm 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP.%{name}-cockpit.pom
+%add_maven_depmap JPP.%{name}-cockpit.pom %{name}/cockpit.jar
+install -pm 644 %{SOURCE4} %{buildroot}%{_mavenpomdir}/JPP.%{name}-synchronize.pom
+%add_maven_depmap JPP.%{name}-synchronize.pom %{name}/synchronize.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr dist/api-docs/* %{buildroot}%{_javadocdir}/%{name}
+
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/%{name}/bin
+for TOOL in cockpit cockpitlite synchronize uploader
+do
+ install -pm 755 scripts/$TOOL.sh %{buildroot}%{_bindir}/%{name}-$TOOL
+ ln -sf ../../../bin/%{name}-$TOOL %{buildroot}%{_datadir}/%{name}/bin/$TOOL.sh
+done
+
+chmod 0755 %{buildroot}%{_datadir}/%{name}/bin/*
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -pm 644 %{name}-*.1 %{buildroot}%{_mandir}/man1/
+
+mkdir -p %{buildroot}%{_sysconfdir}/%{name}
+sed -i "s|{jets3t-version}|%{version}|" configs/cockpitlite.properties
+cp -pr configs/* %{buildroot}%{_sysconfdir}/%{name}/
+ln -sf ../../../etc/%{name} %{buildroot}%{_datadir}/%{name}/configs
+mkdir -p %{buildroot}%{_datadir}/%{name}/resources
+cp -pr resources/* %{buildroot}%{_datadir}/%{name}/resources/
+cp -pr servlets %{buildroot}%{_datadir}/%{name}/
+
+%files
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/cockpit.jar
+%{_javadir}/%{name}/cockpitlite.jar
+%{_javadir}/%{name}/gui.jar
+%{_javadir}/%{name}/jets3t.jar
+%{_javadir}/%{name}/synchronize.jar
+%{_javadir}/%{name}/uploader.jar
+%{_mavenpomdir}/JPP.%{name}-*.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE-2.0.txt NOTICE.txt README.markdown RELEASE_NOTES.markdown
+
+%files app
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}/*
+%{_bindir}/%{name}-*
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/bin
+%dir %{_datadir}/%{name}/configs
+%dir %{_datadir}/%{name}/jars
+%dir %{_datadir}/%{name}/resources
+%dir %{_datadir}/%{name}/servlets
+%{_datadir}/%{name}/jars/*
+%{_datadir}/%{name}/bin/*
+%{_datadir}/%{name}/configs
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/servlets
+%{_mandir}/man1/*
+%doc LICENSE-2.0.txt NOTICE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE-2.0.txt NOTICE.txt
+
+%changelog
+* Thu Aug 09 2012 gil cattaneo <puntogil(a)libero.it> 0.9.0-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..d4e028c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6f9e6035459f29425830997617e76092 jets3t-0.9.0-clean-src-hg.tar.gz
diff --git a/synchronize-0.9.0.pom b/synchronize-0.9.0.pom
new file mode 100644
index 0000000..1fbfc18
--- /dev/null
+++ b/synchronize-0.9.0.pom
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>synchronize</artifactId>
+ <version>0.9.0</version>
+ <name>JetS3t Synchronize</name>
+ <description>Synchronize is a console (text mode) Java application for synchronizing directories on a computer with an Amazon S3 or Google Storage account.</description>
+ <url>http://www.jets3t.org/</url>
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>http://bitbucket.org/jmurty/jets3t/src</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>net.java.dev.jets3t</groupId>
+ <artifactId>jets3t</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
10 years, 11 months