diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0bd794e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +s3cmd (0.9.3-1) unstable; urgency=low + + * Initial revision. (Closes: #427414) + + -- Mikhail Gusarov Sat, 09 Jun 2007 20:42:11 +0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f1de06d --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: s3cmd +Section: admin +Priority: optional +Maintainer: Mikhail Gusarov +Build-Depends: debhelper (>= 5.0.38) +Build-Depends-Indep: python-central (>= 0.5.6), python-all-dev (>= 2.3.5-11) +Standards-Version: 3.7.2 +XS-Python-Version: all + +Package: s3cmd +Architecture: all +Depends: ${python:Depends}, python-elementtree +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: command-line Amazon S3 client + Command-line tool to upload, retrieve and manage data in Amazon S3 service + (http://www.amazon.com/s3/), designed for use in scripts. + . + Homepage: http://s3tools.logix.cz/s3cmd diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..51c6d50 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +This package was first debianized by Mikhail Gusarov on +Mon, 4 Jun 2007 11:00:00 +0600 + +It was downloaded from http://s3tools.logix.cz/s3cmd + +Copyright Holders: Michal Ludvig + + s3cmd - Amazon S3 manager + Copyright (C) 2007 Michal Ludvig + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation version 2 of the License. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..41ea057 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/s3cmd.1 diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..94b1293 --- /dev/null +++ b/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +PACKAGE_NAME=s3cmd + +build: + +clean: + dh_testdir + dh_testroot + + PYTHONPATH=$(CURDIR) python debian/setup.py clean + -rm -f build-stamp + -rm -f S3/*.pyc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + + PYTHONPATH=$(CURDUR) python debian/setup.py install --no-compile --root $(CURDIR)/debian/$(PACKAGE_NAME) + rm -rf debian/$(PACKAGE_NAME)/usr/lib/python*/site-packages/*.egg-info + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs NEWS + dh_installdocs + dh_installman + dh_pycentral + dh_compress -X.py + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/s3cmd.1 b/debian/s3cmd.1 new file mode 100644 index 0000000..b597392 --- /dev/null +++ b/debian/s3cmd.1 @@ -0,0 +1,116 @@ +.TH s3cmd 1 +.SH NAME +s3cmd \- tool for managing Amazon S3 storage space +.SH SYNOPSIS +.B s3cmd +[\fIOPTIONS\fR] \fICOMMAND\fR [\fIPARAMETERS\fR] +.SH DESCRIPTION +.PP +.B s3cmd +is a command line client for copying files to/from +Amazon S3 (Simple Storage Service) and performing other +related tasks, for instance creating and removing buckets, +listing objects, etc. +.PP +.B s3cmd +can do several \fIactions\fR specified by the following \fIcommands\fR. +.TP +\fBmb\fR \fIs3://BUCKET\fR +Make bucket +.TP +\fBrb\fR \fIs3://BUCKET\fR +Remove bucket +.TP +\fBls\fR \fI[s3://BUCKET[/PREFIX]]\fR +List objects or buckets +.TP +\fBla\fR +List all object in all buckets +.TP +\fBput\fR \fIFILE [FILE...] s3://BUCKET[/PREFIX]\fR +Put file into bucket +.TP +\fBget\fR \fIs3://BUCKET/OBJECT LOCAL_FILE\fR +Get file from bucket +.TP +\fBdel\fR \fIs3://BUCKET/OBJECT\fR +Delete file from bucket + +.SH OPTIONS +.PP +Some of the below specified options can have their default +values set in +.B s3cmd +config file (by default $HOME/.s3cmd). As it's a simple text file +feel free to open it with your favorite text editor and do any +changes you like. +.PP +Config file related options. +.TP +\fB\-\-configure\fR +Invoke interactive (re)configuration tool. Don't worry, you won't +lose your settings on subsequent runs. +.TP +\fB\-c\fR FILE, \fB\-\-config\fR=FILE +Config file name. Defaults to $HOME/.s3cfg +.TP +\fB\-\-dump\-config\fR +Dump current configuration after parsing config files +and command line options and exit. +.PP +Most of the following options can have a default value set +in the above specified config file. +.TP +\fB\-f\fR, \fB\-\-force\fR +Force overwrite and other dangerous operations. +.TP +\fB\-P\fR, \fB\-\-acl\-public\fR +Store objects with permissions allowing read by anyone. +.TP +\fB\-m\fR MIME/TYPE, \fB\-\-mime\-type\fR=MIME/TYPE +Default MIME-type to be set for objects stored. +.TP +\fB\-M\fR, \fB\-\-guess\-mime\-type\fR +Guess MIME\(hytype of files by their extension. Falls +back to default MIME\(hyType as specified by \fB\-\-mime\-type\fR +option +.TP +\fB-H\fR, \fB\-\-human\-readable\-sizes\fR +Print sizes in human readable form. +.\".TP +.\"\fB-u\fR, \fB--show-uri\fR +.\"Show complete S3 URI in listings. +.TP +\fB\-v\fR, \fB\-\-verbose\fR +Enable verbose output. +.TP +\fB\-d\fR, \fB\-\-debug\fR +Enable debug output. +.TP +\fB\-h\fR, \fB\-\-help\fR +Show the help message and exit +.TP +\fB\-\-version\fR +Show +.B s3cmd +version and exit. + +.SH AUTHOR +Written by Michal Ludvig +.SH REPORTING BUGS +Report bugs to +.I s3tools-general@lists.sourceforge.net +.SH COPYRIGHT +Copyright \(co 2007 Michal Ludvig +.br +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License version 2 . +There is NO WARRANTY, to the extent permitted by law. +.SH SEE ALSO +For the most up to date list of options run +.B s3cmd --help +.br +For more info about usage, examples and other related info visit project homepage at +.br +.B http://s3tools.logix.cz + diff --git a/debian/setup.py b/debian/setup.py new file mode 100644 index 0000000..6bcee09 --- /dev/null +++ b/debian/setup.py @@ -0,0 +1,27 @@ +from distutils.core import setup + +import S3.PkgInfo + +author='Michal Ludvig' +author_email='michal@logix.cz' + +long_description=''' +%s + +Authors: +-------- + %s <%s> +''' % (S3.PkgInfo.long_description, author, author_email) + +setup( + name=S3.PkgInfo.package, + version=S3.PkgInfo.version, + packages=['S3'], + scripts=['s3cmd'], + author=author, + author_email=author_email, + url=S3.PkgInfo.url, + license=S3.PkgInfo.license, + description=S3.PkgInfo.short_description, + long_description=long_description +) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..7809c4f --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/s3tools/s3cmd-(.*)\.tar\.gz