!1 package init

Merge pull request !1 from yaokai13/master
This commit is contained in:
openeuler-ci-bot 2020-08-29 16:37:39 +08:00 committed by Gitee
commit 0130e59092
10 changed files with 737 additions and 0 deletions

BIN
Release-0.9.3.tar.gz Normal file

Binary file not shown.

View File

@ -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.

View File

@ -0,0 +1,46 @@
--- dist-build.xml 2015-02-19 01:31:42.961518206 +0100
+++ dist-build.xml.dist-build 2015-02-19 01:31:49.743109520 +0100
@@ -70,7 +70,21 @@
Define the script-wide classpath.
================================= -->
<path id="classpath">
- <fileset dir="${dir.libs}" includes="**/*.jar"/>
+ <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="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="commons-logging.jar"/>
+ <fileset dir="/usr/share/java/" includes="java-xmlbuilder.jar"/>
+ <fileset dir="/usr/share/java/" includes="base64.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="glassfish-servlet-api.jar"/>
+ <fileset dir="/usr/share/java/" includes="javamail/mail.jar"/>
+ <fileset dir="/usr/share/java/" includes="BareBonesBrowserLaunch.jar"/>
</path>
@@ -425,6 +439,19 @@
<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>

240
jets3t-0.9.3-scripts.patch Normal file
View File

@ -0,0 +1,240 @@
diff -Nru jets3t-0.9.3/scripts/cockpitlite.sh jets3t-0.9.3.scripts/scripts/cockpitlite.sh
--- jets3t-0.9.3/scripts/cockpitlite.sh 2015-02-15 16:25:18.000000000 +0100
+++ jets3t-0.9.3.scripts/scripts/cockpitlite.sh 2015-02-19 00:53:49.130021484 +0100
@@ -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,28 @@
# 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/cockpitlite-{jets3t-version}.jar
-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.3.jar
-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.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/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/log4j12-1.2.17.jar
+CP=$CP:$JAVA_LIBS/bcprov.jar
+CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
+CP=$CP:$JAVA_LIBS/base64.jar
+CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar
+CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar
+CP=$CP:$JAVA_LIBS/javamail/mail.jar
+CP=$CP:$JAVA_LIBS/avalon-framework-api.jar
+CP=$CP:$JAVA_LIBS/avalon-logkit.jar
+CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar
+CP=$CP:$JAVA_LIBS/jms.jar
# Convert classpath for cygwin bash
case "`uname -s`" in
diff -Nru jets3t-0.9.3/scripts/cockpit.sh jets3t-0.9.3.scripts/scripts/cockpit.sh
--- jets3t-0.9.3/scripts/cockpit.sh 2015-02-15 16:25:18.000000000 +0100
+++ jets3t-0.9.3.scripts/scripts/cockpit.sh 2015-02-19 00:49:36.898974304 +0100
@@ -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,28 @@
# 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.3.jar
-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.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-1.0.jar
+CP=$CP:$JAVA_LIBS/jets3t/jets3t.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/log4j12-1.2.17.jar
+CP=$CP:$JAVA_LIBS/bcprov.jar
+CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
+CP=$CP:$JAVA_LIBS/base64.jar
+CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar
+CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar
+CP=$CP:$JAVA_LIBS/javamail/mail.jar
+CP=$CP:$JAVA_LIBS/avalon-framework-api.jar
+CP=$CP:$JAVA_LIBS/avalon-logkit.jar
+CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar
+CP=$CP:$JAVA_LIBS/jms.jar
# Convert classpath for cygwin bash
case "`uname -s`" in
diff -Nru jets3t-0.9.3/scripts/synchronize.sh jets3t-0.9.3.scripts/scripts/synchronize.sh
--- jets3t-0.9.3/scripts/synchronize.sh 2015-02-15 16:25:18.000000000 +0100
+++ jets3t-0.9.3.scripts/scripts/synchronize.sh 2015-02-19 00:53:28.416221993 +0100
@@ -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,28 @@
# 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.3.jar
-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.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-1.0.jar
+CP=$CP:$JAVA_LIBS/jets3t/jets3t.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/log4j12-1.2.17.jar
+CP=$CP:$JAVA_LIBS/bcprov.jar
+CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
+CP=$CP:$JAVA_LIBS/base64.jar
+CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar
+CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar
+CP=$CP:$JAVA_LIBS/javamail/mail.jar
+CP=$CP:$JAVA_LIBS/avalon-framework-api.jar
+CP=$CP:$JAVA_LIBS/avalon-logkit.jar
+CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar
+CP=$CP:$JAVA_LIBS/jms.jar
# Convert classpath for cygwin bash
case "`uname -s`" in
diff -Nru jets3t-0.9.3/scripts/uploader.sh jets3t-0.9.3.scripts/scripts/uploader.sh
--- jets3t-0.9.3/scripts/uploader.sh 2015-02-15 16:25:18.000000000 +0100
+++ jets3t-0.9.3.scripts/scripts/uploader.sh 2015-02-19 00:49:11.799467598 +0100
@@ -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,15 +49,28 @@
# 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.3.jar
-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.2.jar
-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.jar
-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar
+CP=$CP:$JAVA_LIBS/jets3t/jets3t.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/log4j12-1.2.17.jar
+CP=$CP:$JAVA_LIBS/bcprov.jar
+CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar
+CP=$CP:$JAVA_LIBS/base64.jar
+CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar
+CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar
+CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar
+CP=$CP:$JAVA_LIBS/javamail/mail.jar
+CP=$CP:$JAVA_LIBS/avalon-framework-api.jar
+CP=$CP:$JAVA_LIBS/avalon-logkit.jar
+CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar
+CP=$CP:$JAVA_LIBS/jms.jar
# Convert classpath for cygwin bash
case "`uname -s`" in

21
jets3t-cockpit.pod Normal file
View File

@ -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

24
jets3t-cockpitlite.pod Normal file
View File

@ -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

184
jets3t-synchronize.pod Normal file
View File

@ -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

23
jets3t-uploader.pod Normal file
View File

@ -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

175
jets3t.spec Normal file
View File

@ -0,0 +1,175 @@
Name: jets3t
Version: 0.9.3
Release: 1
Summary: Java interface to Amazon S3 and CloudFront services
License: ASL 2.0 and BSD and LGPLv2+
Url: http://jets3t.s3.amazonaws.com/index.html
Source0: https://github.com/iterate-ch/jets3t/archive/Release-0.9.3.tar.gz
Source5: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-cockpit.pod
Source6: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-cockpitlite.pod
Source7: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-synchronize.pod
Source8: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-uploader.pod
Patch0: jets3t-0.9.3-scripts.patch
Patch1: jets3t-0.9.0-nuvola-fsf-address.patch
Patch2: jets3t-0.9.3-dist-build.patch
BuildRequires: ant apache-commons-codec apache-commons-logging BareBonesBrowserLaunch
BuildRequires: bouncycastle dos2unix httpcomponents-client httpcomponents-core jackson
BuildRequires: java-base64 java-xmlbuilder javamail junit log4j12 maven-local mx4j
BuildRequires: %{_bindir}/pod2man sonatype-oss-parent glassfish-servlet-api
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
Requires: jets3t = %{version}-%{release} apache-commons-codec apache-commons-logging
Requires: avalon-framework avalon-logkit BareBonesBrowserLaunch base64 bouncycastle
Requires: geronimo-jms glassfish-servlet-api httpcomponents-client httpcomponents-core
Requires: java java-xmlbuilder jpackage-utils log4j12
%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
Summary: Javadoc for jets3t
%description javadoc
This package contains javadoc for jets3t.
%prep
%setup -q -n jets3t-Release-0.9.3
dos2unix dist-build.xml
%patch0 -p1
sed -i "s|log4j.jar|log4j12-1.2.17.jar|" dist-build.xml
%patch1 -p0
%patch2 -p0
rm -rf src/contribs/com/centerkey/utils/BareBonesBrowserLaunch.java
sed -i "s|contribs.com.centerkey.utils.BareBonesBrowserLaunch|com.centerkey.utils.BareBonesBrowserLaunch|" \
src/org/jets3t/apps/cockpit/Cockpit.java \
src/org/jets3t/apps/cockpit/gui/StartupDialog.java \
src/org/jets3t/apps/cockpitlite/CockpitLite.java \
src/org/jets3t/apps/uploader/Uploader.java \
src/org/jets3t/apps/cockpit/Cockpit.java \
src/org/jets3t/apps/cockpit/gui/StartupDialog.java \
src/org/jets3t/apps/cockpitlite/CockpitLite.java \
src/org/jets3t/apps/uploader/Uploader.java
find . -name "*.war" -delete
for s in test/org/jets3t/service/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} .
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
%pom_remove_plugin org.codehaus.mojo:appassembler-maven-plugin
%pom_remove_plugin org.codehaus.mojo:sonar-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
%pom_remove_dep javax.activation:activation
%pom_add_dep com.centerkey.utils:BareBonesBrowserLaunch:3.1
%mvn_alias net.java.dev.jets3t:jets3t ":cockpit"
%mvn_alias net.java.dev.jets3t:jets3t ":cockpitlite"
%mvn_alias net.java.dev.jets3t:jets3t ":jets3t-gui"
%mvn_alias net.java.dev.jets3t:jets3t ":synchronize"
%mvn_alias net.java.dev.jets3t:jets3t ":uploader"
%build
%mvn_build -f
ant -f dist-build.xml -Ddir.servlets=$PWD/servlet rebuild-gatekeeper
for m in cockpitlite cockpit synchronize uploader; do
%{_bindir}/pod2man -c '' -r '' jets3t-${m}.pod > jets3t-${m}.1 ;
done
%install
%mvn_install
mkdir -p %{buildroot}%{_datadir}/jets3t/jars
(
cd %{buildroot}%{_javadir}
ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-%{version}.jar
ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-gui-%{version}.jar
)
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/jets3t/bin
for TOOL in cockpit cockpitlite synchronize uploader
do
install -pm 755 scripts/$TOOL.sh %{buildroot}%{_bindir}/jets3t-$TOOL
ln -sf ../../../bin/jets3t-$TOOL %{buildroot}%{_datadir}/jets3t/bin/$TOOL.sh
(
cd %{buildroot}%{_javadir}
ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-$TOOL-%{version}.jar
)
done
chmod 0755 %{buildroot}%{_datadir}/jets3t/bin/*
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 jets3t-*.1 %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_sysconfdir}/jets3t %{buildroot}%{_datadir}/jets3t/configs
sed -i "s|{jets3t-version}|%{version}|" configs/cockpitlite.properties
cp -pr configs/* %{buildroot}%{_sysconfdir}/jets3t/
ln -sf ../../../../etc/jets3t/cockpitlite.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/commons-logging.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/devpay_products.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/jets3t.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/log4j.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/mime.types %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/simplelog.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/synchronize.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/test.properties %{buildroot}%{_datadir}/jets3t/configs/
ln -sf ../../../../etc/jets3t/uploader.properties %{buildroot}%{_datadir}/jets3t/configs/
mkdir -p %{buildroot}%{_datadir}/jets3t/resources
cp -pr resources/* %{buildroot}%{_datadir}/jets3t/resources/
cp -pr servlets %{buildroot}%{_datadir}/jets3t/
%files -f .mfiles
%dir %{_javadir}/jets3t
%doc README.markdown RELEASE_NOTES.markdown
%license LICENSE-2.0.txt NOTICE.txt
%files app
%dir %{_sysconfdir}/jets3t
%config(noreplace) %{_sysconfdir}/jets3t/*
%{_bindir}/jets3t-*
%dir %{_datadir}/jets3t
%dir %{_datadir}/jets3t/bin
%dir %{_datadir}/jets3t/configs
%dir %{_datadir}/jets3t/jars
%dir %{_datadir}/jets3t/resources
%dir %{_datadir}/jets3t/servlets
%{_datadir}/jets3t/jars/*
%{_datadir}/jets3t/bin/*
%{_datadir}/jets3t/configs/*
%{_datadir}/jets3t/resources/*
%{_datadir}/jets3t/servlets/*
%{_mandir}/man1/*
%license LICENSE-2.0.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt NOTICE.txt
%changelog
* Fri Aug 21 2020 yaokai <yaokai13@huawei.com> - 0.9.3-1
- package init

4
jets3t.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: iterate-ch/jets3t
tag_pattern: "^Release-"
seperator: "."