debian/0000750000000000000000000000000011666555250007174 5ustar debian/kup-server.init0000660000000000000000000000371411666553262012175 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kup-server # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: kernel.org upload server # Description: Create lock file for kernel.org upload server ### END INIT INFO # Author: Ben Hutchings PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="kup-server" NAME=kup-server DAEMON=/usr/bin/kup-server SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { umask 022 mkdir -p /run/kup && touch /run/kup/lock } # # Function that stops the daemon/service # do_stop() { ! [ -f /run/kup/lock ] || rm /run/kup/lock } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) test -f /run/kup/lock exit $? ;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/changelog0000660000000000000000000000022511666555250011050 0ustar kup (0.3.2-1) unstable; urgency=low * Initial release (Closes: #648896) -- Ben Hutchings Sun, 04 Dec 2011 02:19:45 +0000 debian/copyright0000660000000000000000000000202411660623166011124 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: kup Source: git://git.kernel.org/pub/scm/utils/kup/kup.git Files: * Copyright: 2011 Intel Corporation License: GPL-2.0+ Files: debian/* Copyright: 2011 Ben Hutchings License: GPL-2.0+ License: GPL-2.0+ This package 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 package 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, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/control0000660000000000000000000000163311666555225010607 0ustar Source: kup Section: net Priority: extra Maintainer: Ben Hutchings Build-Depends: debhelper (>= 8.0.0) Standards-Version: 3.9.2 Homepage: http://git.kernel.org/?p=utils/kup/kup.git Vcs-Git: git://git.debian.org/kernel/kup.git Vcs-Browser: http://git.debian.org/?p=kernel/kup.git;a=summary Package: kup-client Architecture: all Depends: libconfig-simple-perl, ${perl:Depends}, ${misc:Depends} Recommends: gnupg-agent Description: kernel.org upload tool This utility is used to upload files to kernel.org and other systems using the same upload system (kup-server). Package: kup-server Architecture: all Depends: libbsd-resource-perl, libconfig-simple-perl, git, gnupg, openssh-server | ssh-server, ${perl:Depends}, ${misc:Depends}, base-files (>= 6.4) Recommends: bzip2, xz-utils Description: kernel.org upload server This is the upload system used on kernel.org, which runs as an SSH service. debian/kup-server.manpages0000660000000000000000000000001511666533140013005 0ustar kup-server.1 debian/compat0000660000000000000000000000000211660622144010364 0ustar 8 debian/docs0000660000000000000000000000000711660622144010036 0ustar README debian/kup-server.dirs0000660000000000000000000000006211666542523012162 0ustar var/cache/kup/tmp var/lib/kup/pgp var/lib/kup/pub debian/patches/0000770000000000000000000000000011666542457010632 5ustar debian/patches/debian-paths.patch0000660000000000000000000000460611666542457014221 0ustar Author: Ben Hutchings Description: Change kup-server default configuration to follow Debian conventions Put lock file under /run. Look for git repositories in /var/cache/git. . Create temporary files in /var/cache/kup/tmp. Do not assume it's a world-writable sticky directory - we won't set it up like that in the package because that could be a security hole if someone naively installs kup-server on a system with unprivileged accounts already enabled. . bzip2 is installed under /bin. --- kup.orig/kup-server.cfg +++ kup/kup-server.cfg @@ -5,12 +5,12 @@ ; ; This is the path where git trees (for the TAR and DIFF options) are ; available. Those should be readonly for the uploaders. -git_path = /var/lib/git +git_path = /var/cache/git ; ; A common lock file for data_path. No program should modify the ; content in data_path without holding an flock on this file. Should ; be readonly for the uploaders. -lock_file = /var/run/kup/lock +lock_file = /run/kup/lock ; ; tmp_path can be either: ; @@ -24,7 +24,7 @@ ; In either case, this directory tree MUST same filesystem as ; $data_path, since the script expects to create files in this directory ; and rename() them into $data_path. -tmp_path = /var/lib/kup/tmp +tmp_path = /var/cache/kup/tmp/ ; ; A directory containing a GnuPG public keyring for each user, named ; .gpg and readable (but not writable) by that user. --- kup.orig/kup-server.1 +++ kup/kup-server.1 @@ -41,16 +41,16 @@ \fBdata_path\fP = \fI/var/lib/kup/pub\fP Path for public consumption, e.g. served via http or rsync. .TP -\fBgit_path\fP = \fI/var/lib/git\fP +\fBgit_path\fP = \fI/var/cache/git\fP This is the path where git trees (for the TAR and DIFF options) are available. Those should be readonly for the uploaders. .TP -\fBlock_file\fP = \fI/var/run/kup/lock\fP +\fBlock_file\fP = \fI/run/kup/lock\fP A common lock file for data_path. No program should modify the content in data_path without holding an flock on this file. Should be readonly for the uploaders. .TP -\fBtmp_path\fP = \fI/var/lib/kup/tmp\fP +\fBtmp_path\fP = \fI/var/cache/kup/tmp/\fP tmp_path can be either: .PP .RS --- kup.orig/kup-server +++ kup/kup-server @@ -130,7 +130,7 @@ # -9 for compression and -cd for decompression to stdout. my %zformats = ( '.gz' => '/bin/gzip', - '.bz2' => '/usr/bin/bzip2', + '.bz2' => '/bin/bzip2', '.xz' => '/usr/bin/xz' ); debian/patches/series0000660000000000000000000000002311666542061012032 0ustar debian-paths.patch debian/kup-client.manpages0000644000000000000000000000000611660622410012750 0ustar kup.1 debian/source/0000750000000000000000000000000011660624262010466 5ustar debian/source/format0000660000000000000000000000001411660622144011674 0ustar 3.0 (quilt) debian/rules0000770000000000000000000000114011666553114010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_install: dh_install -p kup-client gpg-sign-all kup usr/bin dh_install -p kup-server kup-server usr/bin dh_install -p kup-server kup-server.cfg etc/kup debian/kup-server.README.Debian0000660000000000000000000000077711666555201013351 0ustar kup for Debian -------------- The kup-server package is meant for use on a dedicated machine (typically a VM) where ordinary user accounts are limited to running the kup-server program via SSH. You will need to set up those user accounts and the /var/cache/kup/tmp directory as described in kup-server(1). If you choose to make that directory sticky, use dpkg-statoverride(8) to ensure the permissions persist after package upgrades. -- Ben Hutchings , Sun, 4 Dec 2011 00:57:23 +0000