diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 00000000..cea43b81 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +aptly for Debian +---------------- + +For now, we bundle the Go libraries that aptly depends on, within the +aptly tarball itself. As time goes, those will be packaged on their +own. + + -- Sebastien Delafond , Tue, 29 Apr 2014 15:56:02 +0200 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..3001d7cc --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +aptly (0.5-1) unstable; urgency=low + + * Initial release (Closes: #746343) + + -- Sebastien Delafond Tue, 29 Apr 2014 15:47:31 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..bad6e5c2 --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: aptly +Section: utils +Priority: extra +Maintainer: Sebastien Delafond +Build-Depends: debhelper (>= 9.0.0), golang (>= 1.1) +Standards-Version: 3.9.5 +Homepage: http://www.aptly.info +Vcs-Git: https://github.com/smira/aptly.git +Vcs-Browser: https://github.com/smira/aptly/ + +Package: aptly +Architecture: any +Depends: golang-go (>= 1.1), ${shlibs:Depends}, ${misc:Depends} +Description: Swiss army knife for Debian repository management + It offers several features making it easy to manage Debian package + repositories: + . + - make mirrors of remote Debian/Ubuntu repositories, limiting by + components/architectures + - take snapshots of mirrors at any point in time, fixing state of + repository at some moment of time + - publish snapshot as Debian repository, ready to be consumed by apt + - controlled update of one or more packages in snapshot from upstream + mirror, tracking dependencies + - merge two or more snapshots into one diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..01f8e81e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,124 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: aptly +Source: http://www.aptly.info + +Files: * +Copyright: 2014 Andrey Smirnov +License: MIT + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Files: _vendor/src/code.google.com/p/gographviz/* +Copyright: 2013 Vastech SA (PTY) LTD +License: Apache-2 + See: /usr/share/common-licenses/Apache-2.0 + +Files: _vendor/src/code.google.com/p/go.crypto/* _vendor/src/code.google.com/p/go.tools/* _vendor/src/github.com/smira/flag/* _vendor/src/github.com/golang/lint/* +Copyright: 2009 The Go Authors +License: BSD-3-clause + +Files: _vendor/src/code.google.com/p/go-uuid/uuid/* +Copyright: 2009 Google Inc. +License: BSD-3-clause + +Files: _vendor/src/code.google.com/p/snappy-go/* +Copyright: 2011 The Snappy-Go Authors +License: BSD-3-clause + +Files: _vendor/src/github.com/axw/gocov/* +Copyright: 2012 The Gocov Authors +License: BSD-3-clause + +Files: _vendor/src/github.com/smira/commander/* +Copyright: 2012 The Go-Commander Authors +License: BSD-3-clause + +Files: _vendor/src/github.com/syndtr/goleveldb/* +Copyright: 2012 Suryandaru Triandana +License: BSD-3-clause + +Files: _vendor/src/github.com/cheggaaa/pb/* +Copyright: 2012, Sergey Cherepanov +License: BSD-3-clause + +Files: _vendor/src/github.com/mkrautz/goar/* +Copyright: 2011 Mikkel Krautz +License: BSD-3-clause + +Files: _vendor/src/github.com/ugorji/go/* +Copyright: 2012, 2013 Ugorji Nwoke +License: BSD-3-clause + +Files:_vendor/src/github.com/wsxiaoys/terminal/* +Copyright: 2013 Meng Zhang +License: BSD-3-clause + +Files: debian/* +Copyright: 2014 Sebastien Delafond +License: GPL-2+ + 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; either + version 2 of the License, or (at your option) any later + version. + . + 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 package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1) Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2) 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. + . + 3) Neither the name of the ORGANIZATION 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 + HOLDER 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. \ No newline at end of file diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 00000000..c245ea83 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +src/github.com/smira/aptly/man/aptly.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..0563cbcd --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# DH_GOPKG is the upstream path which you would normally “go get”. +# Using it allows us to build applications without patching locations. +export DH_GOPKG := github.com/smira/aptly + +# our path +PACKAGE_DIR := src/github.com/smira/aptly +SOURCE_DIR := $(CURDIR)/$(PACKAGE_DIR) +DEST_DIR := $(CURDIR)/debian/aptly + +%: + dh $@ --sourcedirectory=$(SOURCE_DIR) + +override_dh_auto_test: + # nothing for now + +override_dh_auto_clean: + rm -f aptly + rm -fr $(DEST_DIR) + +override_dh_auto_build: + GOPATH=:$(CURDIR):$(SOURCE_DIR)/_vendor go build -o aptly $(PACKAGE_DIR)/main.go + +override_dh_auto_install: + mkdir -p $(DEST_DIR)/usr/bin + cp aptly $(DEST_DIR)/usr/bin/ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..311f1c3c --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/smira/aptly/tags .*/v(\d[\d\.]*)\.tar\.gz debian uupdate