diff options
author | Reinhard Tartler <siretart@tauware.de> | 2017-06-17 17:57:17 -0400 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2017-06-17 17:57:37 -0400 |
commit | acedb46a3e41f97fc9fedb731d7a286be7104dde (patch) | |
tree | eca680b94ccfcd9992754ec6afb49e1c70cc2c19 /debian | |
parent | c8c7c2b1d777126fcb36929463d66a8f0a381975 (diff) |
Clarify how the upstream tarball is produced
The "upstream" tarball is produced using git-archive from the upstream
git branch at github:
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.Debian | 16 | ||||
-rw-r--r-- | debian/get-orig-source.sh | 86 |
2 files changed, 4 insertions, 98 deletions
diff --git a/debian/README.Debian b/debian/README.Debian index 269c598f..749da0cb 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -109,17 +109,9 @@ http://www.boxbackup.org "Upstream" tarball ------------------ -Althogh upstream indeed publishes tarballs, the debian package is no -longer based on these tarballs. The reason for this is that the -procedure for creating these tarballs makes package maintenance and -interaction with upstream unnecessary hard. +The "upstream" tarball is produced using git-archive from the upstream +git branch at github: -Moreover, there seem to be different types of tarballs. Official ones -used for a release and "unofficial" ones that are created for snapshot -releases, causing further confusion. +https://github.com/boxbackup/boxbackup -Since upstream releases rather seldomly, but we want to distribute -pre-releases and integrate patches from the upstream svn, the package -ships a script in the source that is used to create the orig.tar.gz. - - -- Reinhard Tartler <siretart@tauware.de>, Wed, 14 Jun 2017 21:02:45 -0400 + -- Reinhard Tartler <siretart@tauware.de>, Sat, 17 Jun 2017 17:57:00 -0400 diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh deleted file mode 100644 index d56ab929..00000000 --- a/debian/get-orig-source.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/sh -# -# Script to create a 'pristine' tarball for the debian boxbackup source -# package. Copyright (C) 2009, Reinhard Tartler -# -# 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 program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -set -eu - -usage() { - cat >&2 <<EOF -usage: $0 [-dh] - -h : display help - -r : svn revision - -o : output tarball name -EOF -} - -debug () { - $DEBUG && echo "DEBUG: $*" >&2 -} - -error () { - echo "$1" >&2 - exit 1; -} - -set +e -PARAMS=`getopt hr: "$@"` -if test $? -ne 0; then usage; exit 1; fi; -set -e - -eval set -- "$PARAMS" - -DEBUG=false -SVNREVISION= - -while test $# -gt 0 -do - case $1 in - -h) usage; exit 1 ;; - -r) SVNREVISION=$2; shift ;; - --) shift ; break ;; - *) echo "Internal error!" ; exit 1 ;; - esac - shift -done - -# sanity checks now -dh_testdir - -if [ -z $SVNREVISION ]; then - error "you need to specify an svn revision." -fi - -PACKAGENAME=boxbackup -baseurl="https://www.boxbackup.org/svn/box/RELEASE/0.11.1" -TARBALL=../${PACKAGENAME}_0.11.1~r${SVNREVISION}.orig.tar.gz - -TMPDIR=`mktemp -d` -trap 'rm -rf ${TMPDIR}' EXIT - - -svn export -r${SVNREVISION} \ - --ignore-externals \ - ${baseurl} \ - ${TMPDIR}/${PACKAGENAME} - -svn info -r${SVNREVISION} \ - ${baseurl} \ - | awk '/^Revision/ {print $2}' \ - > ${TMPDIR}/${PACKAGENAME}/.svnrevision - -tar czf ${TARBALL} -C ${TMPDIR} ${PACKAGENAME} |