diff options
-rw-r--r-- | debian/changelog | 53 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 24 | ||||
-rw-r--r-- | debian/copyright | 30 | ||||
-rw-r--r-- | debian/gbp.conf | 5 | ||||
-rw-r--r-- | debian/openssh-known-hosts.cron.d | 4 | ||||
-rw-r--r-- | debian/openssh-known-hosts.dirs | 4 | ||||
-rw-r--r-- | debian/openssh-known-hosts.docs | 1 | ||||
-rw-r--r-- | debian/openssh-known-hosts.examples | 1 | ||||
-rw-r--r-- | debian/openssh-known-hosts.install | 2 | ||||
-rw-r--r-- | debian/openssh-known-hosts.manpages | 1 | ||||
-rw-r--r-- | debian/openssh-known-hosts.postinst | 52 | ||||
-rw-r--r-- | debian/openssh-known-hosts.postrm | 35 | ||||
-rw-r--r-- | debian/openssh-known-hosts.prerm | 39 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 2 |
17 files changed, 259 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5cc3886 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,53 @@ +openssh-known-hosts (0.6-1) unstable; urgency=low + + * New upstream version with hostname filtering. + * Upload to unstable (Closes: #534891) + * Bump Standards Version to 3.9.4. + * Drop dash Depends: (dash is essential) + * use copyright-format 1.0 + * add watch file + * add Homepage: and Vcs-*: fields + * update maintainerscripts: + + add postrm to clean up cache and lib dirs + + no longer remove stuff on upgrades in prerm + + -- Timo Weingärtner <timo@tiwe.de> Thu, 10 Jan 2013 15:11:58 +0100 + +openssh-known-hosts (0.5) fsmi-squeeze; urgency=low + + * Fix fd redirection (Errors went into ssh_known_hosts). + + -- Timo Weingärtner <timo@tiwe.de> Sat, 10 Jul 2010 18:51:56 +0200 + +openssh-known-hosts (0.4) fsmi-squeeze; urgency=low + + * Don't update ssh_known_hosts if nothing changed. + * Plugin curl: Allow passing of CURL_OPTIONS. + * Update copyright years. + * Bump Standards-Version to 3.9.0. + + -- Timo Weingärtner <timo@tiwe.de> Sat, 10 Jul 2010 02:11:40 +0200 + +openssh-known-hosts (0.3) fsmi-squeeze; urgency=low + + * Bump Standards-Version to 3.8.4, no changes needed. + * Use dh in debian/rules. + * Remove /usr/local/share/openssh-known-hosts in prerm. + * Add debian/source/format. + * Quote umlauts in manpage. + + -- Timo Weingärtner <timo@tiwe.de> Wed, 28 Apr 2010 17:06:32 +0200 + +openssh-known-hosts (0.2) unstable; urgency=low + + * Add examples. + * Add optional GnuPG verification in curl and rsync plugins. + * Rename update-known-hosts to update-$package and install it in /usr/sbin. + + -- Timo Weingärtner <timo@tiwe.de> Sun, 28 Jun 2009 01:57:44 +0200 + +openssh-known-hosts (0.1) fsmi-lenny; urgency=low + + * Initial Release. + + -- Timo Weingärtner <timo@tiwe.de> Wed, 24 Jun 2009 19:19:10 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..19c19fc --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: openssh-known-hosts +Section: net +Priority: extra +Maintainer: Timo Weingärtner <timo@tiwe.de> +Build-Depends: debhelper (>= 7) +Standards-Version: 3.9.4 +Homepage: https://github.com/tiwe-de/openssh-known-hosts +Vcs-Git: git://github.com/tiwe-de/openssh-known-hosts.git -b debian +Vcs-Browser: https://github.com/tiwe-de/openssh-known-hosts/tree/debian + +Package: openssh-known-hosts +Architecture: all +Depends: lockfile-progs, ${misc:Depends} +Recommends: openssh-client, cron +Suggests: postgresql-client, rsync, curl, gpgv +Description: download, filter and merge known_hosts for OpenSSH + This package allows you to download public hostkeys from multiple sources, + filter the hostnames coming with them and merge them together into one + file for use by OpenSSH. Plugins included: + * curl (optional GnuPG verification) + * rsync (optional GnuPG verification) + * psql + * symlink + New plugins can easily be written. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..50b148d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: openssh-known-hosts +Upstream-Contact: Timo Weingärtner <timo@tiwe.de> +Source: https://github.com/tiwe-de/openssh-known-hosts + +Files: * +Copyright: 2009-2013, Timo Weingärtner +License: GPL2+ + +Files: debian/* +Copyright: 2009-2013, Timo Weingärtner +License: GPL2+ + +License: GPL2+ + 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, see <http://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in the file + "/usr/share/common-licenses/GPL-2". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..2dac163 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian +upstream-tag = %(version)s +pristine-tar = true diff --git a/debian/openssh-known-hosts.cron.d b/debian/openssh-known-hosts.cron.d new file mode 100644 index 0000000..62ec02d --- /dev/null +++ b/debian/openssh-known-hosts.cron.d @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the openssh-known-hosts package +# +0 * * * * root [ -x /usr/sbin/update-openssh-known-hosts ] && { sleep `od -An -N1 -tu1 /dev/urandom`; /usr/sbin/update-openssh-known-hosts; } diff --git a/debian/openssh-known-hosts.dirs b/debian/openssh-known-hosts.dirs new file mode 100644 index 0000000..d89f29b --- /dev/null +++ b/debian/openssh-known-hosts.dirs @@ -0,0 +1,4 @@ +var/lib/openssh-known-hosts +var/cache/openssh-known-hosts +etc/openssh-known-hosts/sources +etc/ssh diff --git a/debian/openssh-known-hosts.docs b/debian/openssh-known-hosts.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/openssh-known-hosts.docs @@ -0,0 +1 @@ +README diff --git a/debian/openssh-known-hosts.examples b/debian/openssh-known-hosts.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/openssh-known-hosts.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/openssh-known-hosts.install b/debian/openssh-known-hosts.install new file mode 100644 index 0000000..e7b7cf1 --- /dev/null +++ b/debian/openssh-known-hosts.install @@ -0,0 +1,2 @@ +update-openssh-known-hosts usr/sbin/ +plugins usr/share/openssh-known-hosts/ diff --git a/debian/openssh-known-hosts.manpages b/debian/openssh-known-hosts.manpages new file mode 100644 index 0000000..6ae64ea --- /dev/null +++ b/debian/openssh-known-hosts.manpages @@ -0,0 +1 @@ +update-openssh-known-hosts.8 diff --git a/debian/openssh-known-hosts.postinst b/debian/openssh-known-hosts.postinst new file mode 100644 index 0000000..58800e2 --- /dev/null +++ b/debian/openssh-known-hosts.postinst @@ -0,0 +1,52 @@ +#!/bin/sh +# postinst script for openssh-known-hosts +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + if [ ! -e /usr/local/share/openssh-known-hosts ]; then + if mkdir /usr/local/share/openssh-known-hosts 2>/dev/null; then + if chown root:staff /usr/local/share/openssh-known-hosts; then + chmod 2775 /usr/local/share/openssh-known-hosts || true + fi + fi + fi + if [ ! -e /usr/local/share/openssh-known-hosts/plugins ]; then + if mkdir /usr/local/share/openssh-known-hosts/plugins 2>/dev/null; then + if chown root:staff /usr/local/share/openssh-known-hosts/plugins; then + chmod 2775 /usr/local/share/openssh-known-hosts/plugins || true + fi + fi + fi + [ -e /etc/ssh/ssh_known_hosts ] || ln -s /var/lib/openssh-known-hosts/ssh_known_hosts /etc/ssh/ssh_known_hosts + if [ "`readlink /etc/ssh/ssh_known_hosts`" != /var/lib/openssh-known-hosts/ssh_known_hosts ]; then + echo "/etc/ssh/ssh_known_hosts already exists, please set up the link to" + echo "/var/lib/openssh-known-hosts/ssh_known_hosts yourself or point to it" + echo "with GlobalKnownHostsFile in ssh_config(5)." + fi + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/openssh-known-hosts.postrm b/debian/openssh-known-hosts.postrm new file mode 100644 index 0000000..b1e2c51 --- /dev/null +++ b/debian/openssh-known-hosts.postrm @@ -0,0 +1,35 @@ +#!/bin/sh +# postrm script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <overwriter> +# <overwriter-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + find /var/cache/openssh-known-hosts/ -mindepth 1 -delete + find /var/lib/openssh-known-hosts/ -mindepth 1 -delete + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/openssh-known-hosts.prerm b/debian/openssh-known-hosts.prerm new file mode 100644 index 0000000..fc24391 --- /dev/null +++ b/debian/openssh-known-hosts.prerm @@ -0,0 +1,39 @@ +#!/bin/sh +# prerm script for openssh-known-hosts +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|deconfigure) + if [ -L /etc/ssh/ssh_known_hosts ] && \ + [ "`readlink /etc/ssh/ssh_known_hosts`" = /var/lib/openssh-known-hosts/ssh_known_hosts ]; then + rm /etc/ssh/ssh_known_hosts + fi + rmdir /usr/local/share/openssh-known-hosts/plugins 2>/dev/null || true + rmdir /usr/local/share/openssh-known-hosts 2>/dev/null || true + ;; + upgrade|failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /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 0000000..b7f0d08 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://githubredir.debian.net/github/tiwe-de/openssh-known-hosts/ ([^/]+).tar.gz |