debian/0000775000000000000000000000000011723357401007173 5ustar debian/libjets3t-java.docs0000664000000000000000000000001311552214510012652 0ustar NOTICE.txt debian/libjets3t-java-doc.javadoc0000664000000000000000000000005411552214510014101 0ustar build/api usr/share/doc/libjets3t-java/api debian/source/0000775000000000000000000000000011552214510010464 5ustar debian/source/format0000664000000000000000000000001411552214510011672 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000026711552214510010222 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://jets3t.s3.amazonaws.com/downloads.html \ http://bitbucket.org/jmurty/jets3t/downloads/jets3t-([\d\.]+).zip debian debian/orig-tar.sh debian/jets3t.dirs0000664000000000000000000000002611552214510011261 0ustar usr/share/jets3t/jars debian/libjets3t-java.poms0000664000000000000000000000002711552214510012705 0ustar debian/poms/jets3t.pom debian/clean0000664000000000000000000000004511552214510010170 0ustar servlets/gatekeeper/*.war jars/*.jar debian/jets3t.links0000664000000000000000000000144511552214510011446 0ustar usr/share/jets3t/bin/cockpit.sh usr/bin/jets3t-cockpit usr/share/jets3t/bin/cockpitlite.sh usr/bin/jets3t-cockpitlite usr/share/jets3t/bin/uploader.sh usr/bin/jets3t-uploader usr/share/jets3t/bin/synchronize.sh usr/bin/jets3t-synchronize etc/jets3t usr/share/jets3t/configs usr/share/java/jets3t-gui.jar usr/share/jets3t/jars/jets3t-gui.jar usr/share/java/jets3t-cockpit.jar usr/share/jets3t/jars/jets3t-cockpit.jar usr/share/java/jets3t-cockpitlite.jar usr/share/jets3t/jars/jets3t-cockpitlite.jar usr/share/java/jets3t-uploader.jar usr/share/jets3t/jars/jets3t-uploader.jar usr/share/java/jets3t-synchronize.jar usr/share/jets3t/jars/jets3t-synchronize.jar usr/share/java/jets3t-deps.jar usr/share/jets3t/jars/jets3t-deps.jar debian/maven.rules0000664000000000000000000000033411552214510011346 0ustar # Make sure package uses versioned API for servlets javax.servlet servlet-api * s/2\..*/2.5/ * * # Version jets3t for 0.x net.java.dev.jets3t * * s/0\..*/0.x/ * * commons-httpclient commons-httpclient * s/3\..*/3.x/ * * debian/compat0000664000000000000000000000000211552214510010362 0ustar 7 debian/poms/0000775000000000000000000000000011552214510010142 5ustar debian/poms/jets3t.pom0000664000000000000000000000366111552214510012101 0ustar 4.0.0 net.java.dev.jets3t jets3t jar 0.8.1 An open source Java toolkit for Amazon S3 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. http://www.jets3t.org Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 repo http://bitbucket.org/jmurty/jets3t/src commons-codec commons-codec 1.3 commons-logging commons-logging 1.1.1 commons-httpclient commons-httpclient 3.1 commons-codec commons-codec commons-logging commons-logging com.jamesmurty.utils java-xmlbuilder 0.4 debian/classpath-debian0000664000000000000000000000043211552214510012310 0ustar usr/share/java/commons-logging.jar usr/share/java/servlet-api-2.5.jar usr/share/java/axis.jar usr/share/java/jaxrpc.jar usr/share/java/axis-jaxrpc.jar usr/share/java/commons-codec.jar usr/share/java/commons-httpclient.jar usr/share/java/junit.jar usr/share/java/java-xmlbuilder.jar debian/jets3t.manpages0000664000000000000000000000016511552214510012117 0ustar build/man/jets3t-cockpit.1 build/man/jets3t-cockpitlite.1 build/man/jets3t-synchronize.1 build/man/jets3t-uploader.1 debian/patches/0000775000000000000000000000000011552214510010613 5ustar debian/patches/04_add_barebonesbrowserlaunch_source.diff0000664000000000000000000000644411552214510020707 0ustar Author: Miguel Landaeta Subject: add BareBonesBrowserLaunch class to the source The reason of this patch is because upstream bundled a library named BareBonesBrowserLaunch.jar, which contains a simple class file used to open the default browser installed on system. JDK 1.6 includes a class to do this, but upstream is targeting users from JDK 1.4 or greater, so he keeps including this library. IMO, it is not worth the effort to package that library. So I am including the source of that library here and giving proper credit in copyright file. diff -Naur jets3t-0.7.2+dfsg/src/com/centerkey/utils/BareBonesBrowserLaunch.java jets3t-0.7.2+dfsg/src/com/centerkey/utils/BareBonesBrowserLaunch.java --- jets3t-0.7.2+dfsg/src/com/centerkey/utils/BareBonesBrowserLaunch.java 1969-12-31 20:00:00.000000000 -0400 +++ jets3t-0.7.2+dfsg/src/com/centerkey/utils/BareBonesBrowserLaunch.java 2005-12-20 12:28:16.000000000 -0400 @@ -0,0 +1,57 @@ +package com.centerkey.utils; + +import java.lang.reflect.Method; +import javax.swing.JOptionPane; + +/** + * Bare Bones Browser Launch for Java
+ * Utility class to open a web page from a Swing application + * in the user's default browser.
+ * Supports: Mac OS X, GNU/Linux, Unix, Windows XP
+ * Example Usage:
    + * String url = "http://www.google.com/";
    + * BareBonesBrowserLaunch.openURL(url);
+ * Latest Version: http://www.centerkey.com/java/browser
+ * Author: Dem Pilafian
+ * Public Domain Software -- Free to Use as You Like + * @version 1.5, December 10, 2005 + */ +public class BareBonesBrowserLaunch { + + private static final String errMsg = "Error attempting to launch web browser"; + + /** + * Opens the specified web page in a web browser + * @param url An absolute URL of a web page (ex: "http://www.google.com/") + */ + public static void openURL(String url) { + String osName = System.getProperty("os.name"); + try { + if (osName.startsWith("Mac OS")) { + Class fileMgr = Class.forName("com.apple.eio.FileManager"); + Method openURL = fileMgr.getDeclaredMethod("openURL", + new Class[] {String.class}); + openURL.invoke(null, new Object[] {url}); + } + else if (osName.startsWith("Windows")) + Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url); + else { //assume Unix or Linux + String[] browsers = { + "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" }; + String browser = null; + for (int count = 0; count < browsers.length && browser == null; count++) + if (Runtime.getRuntime().exec( + new String[] {"which", browsers[count]}).waitFor() == 0) + browser = browsers[count]; + if (browser == null) + throw new Exception("Could not find web browser"); + else + Runtime.getRuntime().exec(new String[] {browser, url}); + } + } + catch (Exception e) { + JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage()); + } + } + + } debian/patches/06_fix_scripts.diff0000664000000000000000000001667011552214510014321 0ustar Author: Miguel Landaeta Subject: set correct location of libraries in jets3t scripts Forwarded: no Last-Update: 2010-04-13 This patch set the location of default JAVA_HOME and the location of some needed libraries in jets3t scripts. --- jets3t-0.8.1+dfsg.orig/bin/synchronize.sh +++ jets3t-0.8.1+dfsg/bin/synchronize.sh @@ -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,9 @@ if [ -z "$JAVA_HOME" ]; then # 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 + #echo "Please set the environment variable JAVA_HOME" + #exit 1 + export JAVA_HOME="/usr/lib/jvm/default-java" else EXEC=java fi @@ -50,15 +51,18 @@ CP=$CLASSPATH:$JETS3T_HOME/configs # 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-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/synchronize-0.8.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.3.jar -CP=$CP:$JETS3T_HOME/libs/commons-httpclient/commons-httpclient-3.1.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.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/commons-httpclient.jar +CP=$CP:$JAVA_LIBS/log4j-1.2.jar +CP=$CP:$JAVA_LIBS/bcprov.jar +CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar # Convert classpath for cygwin bash case "`uname -s`" in --- jets3t-0.8.1+dfsg.orig/bin/cockpit.sh +++ jets3t-0.8.1+dfsg/bin/cockpit.sh @@ -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,9 @@ if [ -z "$JAVA_HOME" ]; then # 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 + #echo "Please set the environment variable JAVA_HOME" + #exit 1 + export JAVA_HOME="/usr/lib/jvm/default-java" else EXEC=java fi @@ -50,17 +51,20 @@ CP=$CLASSPATH:$JETS3T_HOME/configs # 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-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/jets3t-gui-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/cockpit-0.8.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.3.jar -CP=$CP:$JETS3T_HOME/libs/commons-httpclient/commons-httpclient-3.1.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.jar +CP=$CP:$JAVA_LIBS/jets3t-gui.jar +CP=$CP:$JAVA_LIBS/jets3t-cockpit.jar +CP=$CP:$JAVA_LIBS/jets3t-deps.jar +CP=$CP:$JAVA_LIBS/commons-logging.jar +CP=$CP:$JAVA_LIBS/commons-codec.jar +CP=$CP:$JAVA_LIBS/commons-httpclient.jar +CP=$CP:$JAVA_LIBS/log4j-1.2.jar +CP=$CP:$JAVA_LIBS/bcprov.jar +CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar # Convert classpath for cygwin bash case "`uname -s`" in --- jets3t-0.8.1+dfsg.orig/bin/cockpitlite.sh +++ jets3t-0.8.1+dfsg/bin/cockpitlite.sh @@ -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,9 @@ if [ -z "$JAVA_HOME" ]; then # 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 + #echo "Please set the environment variable JAVA_HOME" + #exit 1 + export JAVA_HOME="/usr/lib/jvm/default-java" else EXEC=java fi @@ -50,16 +51,19 @@ CP=$CLASSPATH:$JETS3T_HOME/configs # 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-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/jets3t-gui-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/cockpitlite-0.8.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.3.jar -CP=$CP:$JETS3T_HOME/libs/commons-httpclient/commons-httpclient-3.1.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.jar +CP=$CP:$JAVA_LIBS/jets3t-gui.jar +CP=$CP:$JAVA_LIBS/jets3t-cockpitlite.jar +CP=$CP:$JAVA_LIBS/jets3t-deps.jar +CP=$CP:$JAVA_LIBS/commons-logging.jar +CP=$CP:$JAVA_LIBS/commons-codec.jar +CP=$CP:$JAVA_LIBS/commons-httpclient.jar +CP=$CP:$JAVA_LIBS/log4j-1.2.jar +CP=$CP:$JAVA_LIBS/bcprov.jar # Convert classpath for cygwin bash case "`uname -s`" in --- jets3t-0.8.1+dfsg.orig/bin/uploader.sh +++ jets3t-0.8.1+dfsg/bin/uploader.sh @@ -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,9 @@ if [ -z "$JAVA_HOME" ]; then # 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 + #echo "Please set the environment variable JAVA_HOME" + #exit 1 + export JAVA_HOME="/usr/lib/jvm/default-java" else EXEC=java fi @@ -50,15 +51,18 @@ CP=$CLASSPATH:$JETS3T_HOME/configs # 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-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/jets3t-gui-0.8.1.jar -CP=$CP:$JETS3T_HOME/jars/uploader-0.8.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.1.jar -CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.3.jar -CP=$CP:$JETS3T_HOME/libs/commons-httpclient/commons-httpclient-3.1.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.jar +CP=$CP:$JAVA_LIBS/jets3t-gui.jar +CP=$CP:$JAVA_LIBS/jets3t-uploader.jar +CP=$CP:$JAVA_LIBS/jets3t-deps.jar +CP=$CP:$JAVA_LIBS/commons-logging.jar +CP=$CP:$JAVA_LIBS/commons-codec.jar +CP=$CP:$JAVA_LIBS/commons-httpclient.jar +CP=$CP:$JAVA_LIBS/log4j-1.2.jar # Convert classpath for cygwin bash case "`uname -s`" in debian/patches/10_java15.diff0000664000000000000000000000113511552214510013034 0ustar Description: Set source and target classes to Java 1.5. Since the source code includes annotations, it can not longer be built with Java 1.4. Author: Miguel Landaeta Forwarded: no Last-Update: 2011-04-14 --- jets3t-0.8.0+dfsg.orig/build.xml +++ jets3t-0.8.0+dfsg/build.xml @@ -100,7 +100,7 @@ zip-source-code : Zips the JetS3t sour srcdir="${dir.src}" destdir="${dir.build}" debug="${debug}" - source="1.4" + source="${build.source}" target="${build.target}"> debian/patches/05_add_thirdparty_targets.diff0000664000000000000000000000640111552214510016505 0ustar Author: Miguel Landaeta Subject: compile third-party libs from source before the main compilation Forwarded: no Last-Update: 2011-04-13 Since BareBonesBrowserLaunch is needed to compile jets3t, they must be compiled first. So, this patch add some ant targets to do this. --- jets3t-0.8.0+dfsg.orig/build.xml +++ jets3t-0.8.0+dfsg/build.xml @@ -71,11 +71,12 @@ zip-source-code : Zips the JetS3t sour ================================= --> + + depends="rebuild-thirdparty,rebuild-service,rebuild-cockpit,rebuild-cockpitlite,rebuild-synchronize,rebuild-uploader,rebuild-gatekeeper"/> @@ -105,6 +106,21 @@ zip-source-code : Zips the JetS3t sour + + + + + + + + + + + + + + + + + --- jets3t-0.8.0+dfsg.orig/build.properties +++ jets3t-0.8.0+dfsg/build.properties @@ -19,6 +19,7 @@ dist.file.synchronize=synchronize-${vers dist.file.uploader=uploader-${version}.jar dist.file.gatekeeper=gatekeeper-${version}.war dist.file.guisupport=jets3t-gui-${version}.jar +dist.file.thirdparty=jets3t-deps-${version}.jar # Comment out the lines below to exclude contributions contribs.include-mx debian/patches/02_build_with_debian_jars.diff0000664000000000000000000000254311552214510016425 0ustar Author: Miguel Landaeta Subject: compile jets3t using libraries installed on system diff --git a/build.xml b/build.xml index baeccae..6636aae 100644 --- a/build.xml +++ b/build.xml @@ -70,7 +70,7 @@ zip-source-code : Zips the JetS3t source code to an archive file with a Define the script-wide classpath. ================================= --> - + @@ -78,7 +78,7 @@ zip-source-code : Zips the JetS3t source code to an archive file with a depends="rebuild-service,rebuild-cockpit,rebuild-cockpitlite,rebuild-synchronize,rebuild-uploader,rebuild-gatekeeper"/> - + @@ -241,12 +241,14 @@ to refer to this official keystore. todir="${dir.applets}" flatten="true" > + debian/patches/09_rename_app_jars.diff0000664000000000000000000000157411552214510015112 0ustar Author: Miguel Landaeta Subject: rename apps jars as is recommended in Debian Java Policy --- jets3t-0.7.3+dfsg/build.properties 2010-03-25 20:39:35.000000000 -0430 +++ jets3t-0.7.3+dfsg/build.properties 2010-03-25 20:40:25.000000000 -0430 @@ -13,10 +13,10 @@ dir.resources=resources 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.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=gatekeeper-${version}.war dist.file.guisupport=jets3t-gui-${version}.jar dist.file.thirdparty=jets3t-deps-${version}.jar debian/patches/series0000664000000000000000000000036711552214510012036 0ustar 01_replace_uuid_lib.diff 02_build_with_debian_jars.diff 04_add_barebonesbrowserlaunch_source.diff 05_add_thirdparty_targets.diff 06_fix_scripts.diff 07_add_classpath_to_manifest.diff 08_generate_javadoc.diff 09_rename_app_jars.diff 10_java15.diff debian/patches/01_replace_uuid_lib.diff0000664000000000000000000000467111552214510015244 0ustar Author: Miguel Landaeta Subject: replace UUID library with the one provided by JDK since 1.5 version diff -Naur jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java --- jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java 2010-02-13 12:36:58.000000000 -0430 +++ jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/DefaultTransactionIdProvider.java 2010-03-22 19:24:39.000000000 -0430 @@ -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 -Naur jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java --- jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java 2010-02-13 12:36:58.000000000 -0430 +++ jets3t-0.7.3+dfsg/src/org/jets3t/servlets/gatekeeper/impl/ExternalUuidProvider.java 2010-03-22 19:25:32.000000000 -0430 @@ -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 externalUUID @@ -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(); } debian/patches/08_generate_javadoc.diff0000664000000000000000000000144511552214510015241 0ustar Author: Miguel Landaeta Subject: add ant target to generate javadoc files from source --- jets3t-0.7.2+dfsg/build.xml 2010-03-22 21:23:25.000000000 -0430 +++ jets3t-0.7.2+dfsg/build.xml 2010-07-30 20:08:56.000000000 -0430 @@ -463,5 +463,22 @@ + + + + + + + + + + + + debian/patches/07_add_classpath_to_manifest.diff0000664000000000000000000000124311552214510017135 0ustar Author: Miguel Landaeta Subject: include Class-Path header in jets3t public jar Forwarded: no Last-Update: 2010-04-13 --- jets3t-0.8.0+dfsg.orig/build.xml +++ jets3t-0.8.0+dfsg/build.xml @@ -132,6 +132,9 @@ zip-source-code : Zips the JetS3t sour + + + build/man/jets3t-$${script}.1 ; \ done ; override_dh_fixperms: dh_fixperms chmod 0755 debian/jets3t/usr/share/jets3t/bin/* override_dh_install: dh_install rm debian/jets3t/usr/share/jets3t/resources/images/nuvola/license.txt mh_installpoms -plib$(PACKAGE)-java mh_installjar -plib$(PACKAGE)-java -l debian/poms/jets3t.pom \ jars/jets3t-$(DEB_UPSTREAM_VERSION).jar override_dh_installchangelogs: dh_installchangelogs RELEASE_NOTES.markdown override_dh_auto_clean: dh_auto_clean mh_clean get-orig-source: cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \ uscan \ --verbose \ --no-symlink \ --destdir $(CURDIR) \ --watchfile debian/watch \ --force-download get-orig-pom: mkdir -p debian/poms wget -O debian/poms/jets3t.pom -U NoAgent-1.0 \ http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/$(DEB_UPSTREAM_VERSION)/jets3t-$(DEB_UPSTREAM_VERSION).pom debian/docs0000664000000000000000000000003311552214510010033 0ustar NOTICE.txt README.markdown debian/control0000664000000000000000000000647311552214510010601 0ustar Source: jets3t Maintainer: Debian Java Maintainers Uploaders: Miguel Landaeta Section: java Priority: optional Build-Depends: debhelper (>= 7.0.50~), ant, default-jdk, javahelper, libcommons-logging-java, libservlet2.5-java, libaxis-java, libcommons-codec-java, libcommons-httpclient-java, junit, perl, default-jdk-doc, maven-repo-helper, libjava-xmlbuilder-java Standards-Version: 3.9.2 Homepage: http://jets3t.s3.amazonaws.com/index.html Vcs-Git: git://git.debian.org/git/pkg-java/jets3t.git Vcs-Browser: http://git.debian.org/?p=pkg-java/jets3t.git Package: jets3t Architecture: all Section: net Depends: default-jre | java5-runtime, libcommons-codec-java, libcommons-httpclient-java, libcommons-logging-java, liblog4j1.2-java, ${misc:Depends}, libjets3t-java (= ${binary:Version}) Recommends: libbcprov-java Description: graphical and command-line tools for Amazon S3 and CloudFront The JetS3t toolkit provides several applications 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 workflow, 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: libjets3t-java Architecture: all Depends: libaxis-java, libcommons-codec-java, libcommons-httpclient-java, libcommons-logging-java, libjava-xmlbuilder-java, ${misc:Depends} Recommends: libbcprov-java Description: Java interface to Amazon S3 and CloudFront services 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: libjets3t-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Recommends: libjets3t-java (= ${binary:Version}) Suggests: default-jdk-doc Description: documentation for libjets3t-java Documentation for the JetS3t toolkit that provides Java programmers with an API for interacting and managing data stored in Amazon Simple Storage Service and Amazon CloudFront content delivery network. debian/changelog0000644000000000000000000000355711723357401011055 0ustar jets3t (0.8.1+dfsg-1build1) precise; urgency=low * No-change rebuild against current pkgbinarymangler to fix broken md5sums. (see LP #875466) -- Martin Pitt Wed, 29 Feb 2012 09:17:05 +0100 jets3t (0.8.1+dfsg-1) unstable; urgency=low * New upstream release. * Drop xmlbuilder patch and add Depends and Build-Depends on libjava-xmlbuilder-java since it was finally packaged. * Bump Standards-Version to 3.9.2. No changes were required. * Add optional depends on java5-runtime for jets3t binary package. * Make copyright file DEP-5 compliant. * Refresh patches. * Update copyright file in order to apply Apache-2.0 and LGPL-2.1 licenses correctly. -- Miguel Landaeta Thu, 14 Apr 2011 20:33:04 -0430 jets3t (0.8.0+dfsg-1) unstable; urgency=low [ Miguel Landaeta ] * New upstream release. * Refresh patches. * Set target classes to Java 1.5. Since this release jets3t can not be built with Java 1.4 because the source code contains annotations. * Reorder dh7 helper invocation parameters. * Update copyright dates. * Add call to mh_clean in clean target. [ James Page ] * Enabled maven artifact deployment (Closes: #617670): - debian/control: Build-Depends added maven-repo-helper - debian/rules, debian/poms/jets3t.poms: install maven artifacts -- Miguel Landaeta Thu, 10 Mar 2011 13:59:41 -0430 jets3t (0.7.4+dfsg-1) unstable; urgency=low * New upstream release. * Bump Standards-Version to 3.9.1. No changes were required. * Replace Build-Depend on libservlet2.4-java with libservlet2.5-java. * Link javadoc to system javadocs. -- Miguel Landaeta Fri, 30 Jul 2010 19:39:20 -0430 jets3t (0.7.3+dfsg-1) unstable; urgency=low * Initial release (Closes: #573804), -- Miguel Landaeta Wed, 25 Mar 2010 21:01:16 -0430 debian/libjets3t-java.jlibs0000664000000000000000000000002411552214510013027 0ustar jars/jets3t-0.*.jar debian/orig-tar.sh0000775000000000000000000000103511552214510011246 0ustar #!/bin/sh set -e # called by uscan with '--upstream-version' echo "version $2" package=`dpkg-parsechangelog | sed -n 's/^Source: //p'` debian_version=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*+dfsg\)-.*/\1/p'` TAR=${package}_${debian_version}.orig.tar.gz DIR=${package}-${debian_version}.orig # clean up the upstream sources unzip $3 && mv ${package}-$2 $DIR unzip $DIR/src.zip -d $DIR GZIP=--best tar --numeric --group 0 --owner 0 --anchored \ -X debian/orig-tar.excludes -c -v -z -f $TAR $DIR rm -rf $3 $DIR debian/jets3t.install0000664000000000000000000000015611552214510011772 0ustar configs/* etc/jets3t bin/*.sh usr/share/jets3t/bin servlets usr/share/jets3t resources usr/share/jets3t debian/jets3t.jlibs0000664000000000000000000000023611552214510011426 0ustar jars/jets3t-gui-*.jar jars/jets3t-cockpitlite-*.jar jars/jets3t-uploader-*.jar jars/jets3t-cockpit-*.jar jars/jets3t-synchronize-*.jar jars/jets3t-deps-*.jar debian/copyright0000664000000000000000000000726111552214510011125 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: JetS3t Upstream-Contact: James Murty Source: http://jets3t.s3.amazonaws.com/downloads.html Files: * Copyright: © 2006-2010, James Murty , © 2008, Zmanda Inc., © 2009, Doug MacEachern, © 2010, Bennett Hiles License: Apache-2.0 Files: src/src/org/jets3t/gui/TableSorter.java Copyright: © 1995-2008, Sun Microsystems, Inc License: other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . - Neither the name of Sun Microsystems nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: src/com/centerkey/utils/BareBonesBrowserLaunch.java Copyright: © 2005, Dem Pilafian License: public-domain Free to Use as You Like. Files: resources/images/nuvola/* Copyright: © 2003-2004, David Vignoni License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library 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 Lesser General Public License for more details. . 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . The full text of the LGPL 2.1 license is distributed in /usr/share/common-licenses/LGPL-2.1 on Debian systems. Files: debian/* Copyright: © 2010-2011, Miguel Landaeta License: Apache-2.0 License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 /usr/share/common-licenses/Apache-2.0 (on Debian systems) . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. debian/manpages/0000775000000000000000000000000011552214510010757 5ustar debian/manpages/jets3t-cockpitlite.pod0000664000000000000000000000130011552214510015201 0ustar =head1 NAME jets3t-cockpitlite - provide access to clients without Amazon S3 accounts =head1 SYNOPSIS jets3t-cockpitlite [= .. =] =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 =head1 SEE ALSO L, http://jets3t.s3.amazonaws.com/applications/cockpitlite.html debian/manpages/jets3t-uploader.pod0000664000000000000000000000117311552214510014512 0ustar =head1 NAME jets3t-uploader - provide upload access to clients without Amazon S3 accounts =head1 SYNOPSIS jets3t-uploader [= .. =] =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 =head1 SEE ALSO L, http://jets3t.s3.amazonaws.com/applications/uploader.html debian/manpages/jets3t-synchronize.pod0000664000000000000000000001304611552214510015254 0ustar =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 [[path2] .. [pathN]] =item Synchronize the contents of S3 with a local directory: jets3t-synchronize [options] DOWN =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 Load the synchronizer app properties from the given file rather than from a synchronizer.properties file in the classpath. =item B<--credentials> I 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 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 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 in the classpath (or F), 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 (or in F). =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 debian/manpages/jets3t-cockpit.pod0000664000000000000000000000062311552214510014332 0ustar =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 =head1 SEE ALSO L, http://jets3t.s3.amazonaws.com/applications/cockpit.html debian/README.Debian-source0000664000000000000000000000110411552214510012517 0ustar The upstream tarball has been modified as follows, to comply with DFSG: * All .jar files under libs directory have been removed since Debian packages must build with libraries installed on system. * api-docs.zip was removed since javadoc files can be regenerated during build-time. * Applets, libraries and webapps in directories jars, applets and servlets/gatekeeper were removed since they are regenerated during build-time. * Additionally, src.zip was unpacked and removed. -- Miguel Landaeta Wed, 24 Mar 2010 20:32:55 -0430