debian/0000755000000000000000000000000011770202333007164 5ustar debian/copyright0000644000000000000000000000172211770202333011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ketchup Upstream-Contact: Stratos Psomadakis Source: https://github.com/psomas/ketchup Files: * Copyright: 2004-2006, Matt Mackall 2010, Steven Rostedt 2011, Stratos Psomadakis License: GPL This software may be used and distributed according to the terms of the GNU General Public License, incorporated herein by reference. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: debian/* Copyright: 2005-2007, Baruch Even 2011-2012, Johann Felix Soden License: GPL The Debian packaging information is under the GPL. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/source/0000755000000000000000000000000011770202333010464 5ustar debian/source/format0000644000000000000000000000001411770202333011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001402511770202333011040 0ustar ketchup (1.0.1+git20111228+e1c62066-1) unstable; urgency=low * New upstream snapshot, now directly from linux-3 branch. * debian/patches/*: Remove all existing patches (applied upstream) and add: - Try all URLs to find newest kernel version. - Improve -rt kernel support. - Fail with error message if no proper version or patch is found. - Fix several kernel URLs. * Bump to Standards-Version 3.9.3. * debian/copyright: Update to copyright-format 1.0. * debian/*: Change my e-mail address and remove DM upload rights. -- Johann Felix Soden Tue, 19 Jun 2012 23:46:20 +0200 ketchup (1.0.1+git20110518+949b31b6-4) unstable; urgency=low * Add several patches to debian/patches/* - Fix bug with 3.x to 3.x.y update. Thanks to Mikko Markus Torni (Closes: #649271) - Use signature of unpacked file if there is no one for the packed file. - Support xz compressed files and download them by default. - Remove the no longer available 2.6-git and 3-git snapshot trees. - Remove empty files from failed downloads. - Fail with an error message if the unpack directory "ketchup-tmp" exists and remove it even if unpacking fails. * debian/copyright: Update to latest DEP5 format for lintian. -- Johann Felix Soden Sun, 20 Nov 2011 23:36:35 +0100 ketchup (1.0.1+git20110518+949b31b6-3) unstable; urgency=low * Synchronize the 3.x support patch with corresponding upstream branch. - 3.x.y versions are now correctly handled. (Closes: #638036) - fix-3-rt-url patch merged. -- Johann Felix Soden Tue, 23 Aug 2011 15:59:13 +0200 ketchup (1.0.1+git20110518+949b31b6-2) unstable; urgency=low * Synchronize the 3.x support patch with corresponding upstream branch to fix URL bugs. * Add patch to fix URL to 3-rt patches. * Do not depend on calling file names in contrib/quilt-{push,pop} scripts. -- Johann Felix Soden Tue, 02 Aug 2011 01:52:02 +0200 ketchup (1.0.1+git20110518+949b31b6-1) unstable; urgency=low [ Johann Felix Soden ] * New upstream snapshot * New upstream maintainer and repository. - Update debian/{control,copyright,watch}. * Drop all patches as they are merged upstream or obsolete. * Add experimental support for 3.x kernel tree from upstream branch. (Closes: #632059) * Switch to dh compat 8. [ Sven Hoexter ] * Add DMUA flag to debian/control. -- Johann Felix Soden Thu, 14 Jul 2011 23:24:11 +0200 ketchup (0.9.8+hg5533f6de130c-3) unstable; urgency=low * Adopt the package (Closes: #568572) - Thanks for your work Baruch Even! * Update debian/copyright and convert it to machine-readable format. * Convert package to the 3.0 (quilt) source format. * Minimize dh rules and use dh_python2 instead of python-central. (Closes: #616854) * Bump to Standards-Version 3.9.2 * debian/control: - Use Homepage field. (Closes: #615371) - Add Vcs-* fields. * Add several patches to debian/patches/*: - Fix url to -rt tree (Closes: #487277) - Consider kernel_url override in all pre-defined trees. (Closes: #407512) - Check if the right gpg key is available before starting downloads. (Closes: #379121) - Stop if wget is terminated by a signal. - Add support for longterm kernel versions. - New 2.6-lt tree which chooses only updates that belong to the local used longterm/release tree. -- Johann Felix Soden Mon, 18 Apr 2011 23:57:55 +0200 ketchup (0.9.8+hg5533f6de130c-2) unstable; urgency=low * Use .sign files for -ck/-cks trees (Closes: #411492) * Use python-central * Switch to dh compat 5 -- Baruch Even Sun, 08 Jul 2007 08:33:49 +0300 ketchup (0.9.8+hg5533f6de130c-1) unstable; urgency=low * Use patch 5533f6de130c from upstream repository to fix dot-file issues - Should fix (Closes: #386694) by not using a shell regex at all * Remove debian/ketchup.1 manpage, upstream provides a manpage which is better (Closes: #410534) * Remove reference to /home/baruch/.ketchuprc, use ~/.ketchuprc (Closes: #404644)_ -- Baruch Even Sat, 07 Jul 2007 20:15:26 +0300 ketchup (0.9.8-3) unstable; urgency=low * Depend on patch and bzip2 since ketchup uses them both for various trees. (Closes: #398725) -- Baruch Even Wed, 15 Nov 2006 19:26:21 +0200 ketchup (0.9.8-2) unstable; urgency=low * Update watch file (Closes: #378169) -- Baruch Even Sat, 29 Jul 2006 04:24:57 +0100 ketchup (0.9.8-1) unstable; urgency=low * Acknowledge NMU by Zephaniah E. Hull (Closes: #365603, #365653) * Update data for -ck/-cks patches, thanks to Sven Hartge (Closes: #369871) * Update Standards-Version to 3.7.2, no changes needed. * Moved debhelper to Build-Depends from Build-Depends-Indep -- Baruch Even Thu, 13 Jul 2006 23:02:49 +0100 ketchup (0.9.8-0.1) unstable; urgency=low * NMU. * New upstream release (Closes: #365603) - Fix bug sorting two-digit post versions. (Closes: #365653) -- Zephaniah E. Hull Sun, 14 May 2006 08:20:45 -0400 ketchup (0.9.6-2) unstable; urgency=low * Move .* files from linux directories to handle .gitignore files (Closes: #339374) -- Baruch Even Fri, 2 Dec 2005 17:47:05 +0000 ketchup (0.9.6-1) unstable; urgency=low * New upstream version - Work better when LATEST-IS file is missing (Closes: #333201) * Apply patch to create directories specified by the user. Thanks to David Hardeman (Closes: #339375) -- Baruch Even Mon, 28 Nov 2005 22:42:37 +0000 ketchup (0.9.5-1) unstable; urgency=low * New upstream release - Implements dry-run (Closes: #324810) - Support git kernels with 2.6-git name (Closes: #324811) -- Baruch Even Tue, 18 Oct 2005 10:22:33 +0100 ketchup (0.9-1) unstable; urgency=low * Initial release Closes: #303940 -- Baruch Even Fri, 12 Aug 2005 14:55:58 +0100 debian/install0000644000000000000000000000007311770202333010555 0ustar ketchup /usr/bin contrib/* /usr/share/doc/ketchup/contrib/ debian/watch0000644000000000000000000000011611770202333010213 0ustar version=3 http://githubredir.debian.net/github/psomas/ketchup/ v(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011770202333010613 5ustar debian/patches/improve-rt-kernel-support0000644000000000000000000000710211770202333015632 0ustar Description: Improve -rt kernel support. Author: Johann Felix Soden --- ketchup | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) --- a/ketchup +++ b/ketchup @@ -266,8 +266,15 @@ version = "%s.%s.%s" % tuple([part[p] for p in parts[:3]]) version += part.get("EXTRAVERSION","") version += part.get("CKVERSION","") - - # required for -next patchset + + n = None + try: n=open("localversion-rt") + except IOError: + pass + if n: + version += n.read()[:-1] + + # required for -next patchset try: n = open("localversion-next") except: return version @@ -371,6 +378,26 @@ p.sort(compare_ver) return p[-1] +def latest_rt(url, pat): + """ Find the link to the latest rt kernel patch """ + urls = [] + url_parent = os.path.dirname(url) + postfix = "" + while '%' in url_parent[1:]: + postfix = os.path.basename(url) + "/" + postfix + url_parent = os.path.dirname(url_parent) + if postfix: + postfix = "/" + postfix + url_parent = url_parent % { "kernel_url": kernel_url } + if "2.6" in pat: + m = last(url_parent, "(2\.6.*/)*") + else: + m = last(url_parent, "(\d.*/)") + if not m: + return None + l = latest_dir(url_parent + '/' + m + postfix , pat) + return l + def latest_dir(url, pat): """Find the latest link matching pat at url after sorting""" p = [] @@ -746,9 +773,9 @@ d = [d] for n in d: r = v[0](os.path.dirname(n), v[2]) - if r: - return r - else: + if r: + return r + else: return ver def transform(a, b): @@ -843,11 +870,11 @@ "%(kernel_url)s" + "/v2.6" + "/testing/patch-%(prebase)s.bz2", r'patch-(.*?).bz2', 1, "2.6 kernel series prereleases"), - '2.6-rt': (latest_dir, - ["%(kernel_url)s" + "/projects/rt/patch-%(full)s.bz2", - "%(kernel_url)s" + "/projects/rt/older/patch-%(full)s.bz2"], + '2.6-rt': (latest_rt, + ["%(kernel_url)s" + "/projects/rt/%(revbase)s/patch-%(full)s.bz2", + "%(kernel_url)s" + "/projects/rt/%(revbase)s/older/patch-%(full)s.bz2"], r'patch-(2.6.*?).bz2', - 0, "Ingo Molnar's realtime-preempt kernel"), + 1, "Ingo Molnar's realtime-preempt kernel"), '2.6-pf': (latest_pf, "http://pf.natalenko.name/sources" + "/%(revbase)s" + "/patch-%(full)s.bz2", @@ -877,11 +904,12 @@ "%(kernel_url)s" + "/v3.0" + "/testing/patch-%(prebase)s.bz2", r'patch-(.*?).bz2', 1, "current stable kernel series prereleases"), - '3-rt': (latest_dir, - ["%(kernel_url)s" + "/projects/rt/patch-%(full)s.bz2", - "%(kernel_url)s" + "/projects/rt/older/patch-%(full)s.bz2"], - r'patch-(3.*?).bz2', - 0, "PREEMPT_RT real-time kernel"), + '3-rt': (latest_rt, + ["%(kernel_url)s" + "/projects/rt/%(revbase)s/patch-%(full)s.patch.bz2", + "%(kernel_url)s" + "/projects/rt/%(revbase)s/older/patch-%(full)s.patch.bz2", + ], + r'patch-(3(\.\d+)*-rt\d+).patch.bz2', # TODO: add git-based releases + 1, "PREEMPT_RT real-time kernel (only based directly on stable and -rc kernels.)"), '3': (latest_dir, ["%(kernel_url)s" + "/v3.0" + "/patch-%(prebase)s.bz2", "%(kernel_url)s" + "/v3.0/longterm/v%(revbase)s/patch-%(prebase)s.bz2"], debian/patches/fix-kernel-URLs0000644000000000000000000000465211770202333013434 0ustar Description: Fix several kernel URLs. Author: Johann Felix Soden --- ketchup | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- a/ketchup +++ b/ketchup @@ -863,7 +863,7 @@ '2.6': (latest_dir, ["%(kernel_url)s" + "/v2.6" + "/patch-%(prebase)s.bz2", "%(kernel_url)s" + "/v2.6/longterm/v%(revbase)s/patch-%(prebase)s.bz2"], - r'patch-(.*?).bz2', + r'linux-(.*?).tar.bz2', 1, "2.6 kernel series"), '2.6-lt': (latest_dir_lt, ["%(kernel_url)s" + "/v2.6" + "/patch-%(prebase)s.bz2", @@ -872,7 +872,7 @@ 1, "2.6 kernel series - update (only) to newer longterm stable releases (fourth number of 2.6 kernels)"), '2.6-rc': (latest_dir, "%(kernel_url)s" + "/v2.6" + "/testing/patch-%(prebase)s.bz2", - r'patch-(.*?).bz2', + r'linux-(.*?).tar.xz', 1, "2.6 kernel series prereleases"), '2.6-rt': (latest_rt, ["%(kernel_url)s" + "/projects/rt/%(revbase)s/patch-%(full)s.bz2", @@ -897,7 +897,7 @@ # current -next releases, for 3.x kernels # FIXME: URL probably going to change (/v2.6/next -> /v3.0/next) '3-next': (latest_dir, - "%(kernel_url)s" + "/v2.6/next" + "/patch-v%(prebase)s%(fork)s.bz2", + "%(kernel_url)s" + "/next" + "/patch-v%(prebase)s%(fork)s.bz2", r'patch-v(.*?).bz2', 1, "3 linux-next tree"), '3-mm': (latest_mmotm, @@ -905,7 +905,7 @@ r'broken-out.tar.gz', 0, "-mmotm quilt patchset"), '3-rc': (latest_dir, - "%(kernel_url)s" + "/v3.0" + "/testing/patch-%(prebase)s.bz2", + "%(kernel_url)s" + "/v3.x" + "/testing/patch-%(prebase)s.bz2", r'patch-(.*?).bz2', 1, "current stable kernel series prereleases"), '3-rt': (latest_rt, @@ -915,8 +915,7 @@ r'patch-(3(\.\d+)*-rt\d+).patch.bz2', # TODO: add git-based releases 1, "PREEMPT_RT real-time kernel (only based directly on stable and -rc kernels.)"), '3': (latest_dir, - ["%(kernel_url)s" + "/v3.0" + "/patch-%(prebase)s.bz2", - "%(kernel_url)s" + "/v3.0/longterm/v%(revbase)s/patch-%(prebase)s.bz2"], + ["%(kernel_url)s" + "/v3.x" + "/patch-%(prebase)s.bz2" ], r'patch-(.*?).bz2', 1, "current stable kernel series"), } debian/patches/try-all-URLs-to-find-newest-kernel-version0000644000000000000000000000142411770202333020550 0ustar Description: Try all URLs to find newest kernel version. Author: Johann Felix Soden --- ketchup | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/ketchup +++ b/ketchup @@ -742,13 +742,14 @@ if ver in version_info.keys(): v = version_info[ver] d = v[1] - if type(d) is type([]): - d = d[0] - for n in range(5): - return v[0](os.path.dirname(d), v[2]) - error('retrying version lookup for %s' % ver) - else: - return ver + if not type(d) is type([]): + d = [d] + for n in d: + r = v[0](os.path.dirname(n), v[2]) + if r: + return r + else: + return ver def transform(a, b): if a == b: debian/patches/fail-with-error-message0000644000000000000000000000123611770202333015175 0ustar Description: Fail with error message if no proper version or patch is found. Author: Johann Felix Soden --- ketchup | 4 ++++ 1 file changed, 4 insertions(+) --- a/ketchup +++ b/ketchup @@ -321,6 +321,7 @@ return cmp(forknum(a), forknum(b)) def last(url, pat="(.*/)"): + n = None for l in urllib.urlopen(url).readlines(): m = re.search('(?i)' % pat, l) if m: n = m.group(1) @@ -782,6 +783,9 @@ if a == b: qprint("Nothing to do!") return + if not b: + error("No version found.") + sys.exit(-1) if not a: a = install_nearest(base(b)) t = tree(a) debian/patches/series0000644000000000000000000000015511770202333012031 0ustar try-all-URLs-to-find-newest-kernel-version improve-rt-kernel-support fail-with-error-message fix-kernel-URLs debian/compat0000644000000000000000000000000211770202333010362 0ustar 8 debian/rules0000755000000000000000000000010011770202333010233 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ --with python2 debian/manpages0000644000000000000000000000001211770202333010673 0ustar ketchup.1 debian/control0000644000000000000000000000143611770202333010573 0ustar Source: ketchup Section: devel Priority: optional Maintainer: Johann Felix Soden Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~) Standards-Version: 3.9.3 Homepage: https://github.com/psomas/ketchup Vcs-Git: git://git.debian.org/git/collab-maint/ketchup.git Vcs-Browser: http://git.debian.org/?p=collab-maint/ketchup.git;a=summary Package: ketchup Architecture: all Depends: ${python:Depends}, ${misc:Depends}, patch, bzip2, xz-utils Description: update utility for linux-kernel sources This utility can update (or install) kernel sources automatically. It can search for the newest kernel in numerous trees (vanilla, rc, tiny, mm, mjb, etc.). . It can also automatically download the needed patches (and apply them) to create the newest repository from an old one.