summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog77
-rw-r--r--debian/compat1
-rw-r--r--debian/control24
-rw-r--r--debian/copyright30
-rw-r--r--debian/gbp.conf5
-rw-r--r--debian/openssh-known-hosts.cron.d4
-rw-r--r--debian/openssh-known-hosts.dirs5
-rw-r--r--debian/openssh-known-hosts.examples1
-rw-r--r--debian/openssh-known-hosts.install2
-rw-r--r--debian/openssh-known-hosts.lintian-overrides2
-rw-r--r--debian/openssh-known-hosts.manpages1
-rw-r--r--debian/openssh-known-hosts.postinst40
-rw-r--r--debian/openssh-known-hosts.postrm37
-rw-r--r--debian/openssh-known-hosts.prerm37
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch2
17 files changed, 273 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9477f7c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,77 @@
+openssh-known-hosts (0.6.1-3) unstable; urgency=medium
+
+ * postrm: only act on purge, don't fail when empty
+
+ -- Timo Weingärtner <timo@tiwe.de> Mon, 10 Mar 2014 20:53:11 +0100
+
+openssh-known-hosts (0.6.1-2) unstable; urgency=medium
+
+ * postinst: check for dangling but possibly correct symlink
+ * Upload to unstable (Closes: #534891)
+
+ -- Timo Weingärtner <timo@tiwe.de> Wed, 26 Feb 2014 17:22:27 +0100
+
+openssh-known-hosts (0.6.1-1) unstable; urgency=medium
+
+ * Avoid German-isms in Description:
+ Thanks to Philipp Kern <pkern@debian.org>
+ * add random sleep to cron.d file to reduce DDoS effects on servers
+ * New upstream version
+ * rely on dh_usrlocal
+ * Bump Standards Version to 3.9.5.
+ * debian/watch: use github directly
+
+ -- Timo Weingärtner <timo@tiwe.de> Wed, 19 Feb 2014 12:34:07 +0100
+
+openssh-known-hosts (0.6-1) unstable; urgency=low
+
+ * New upstream version with hostname filtering.
+ * 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..e112c89
--- /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), pandoc
+Standards-Version: 3.9.6
+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..5ee462b
--- /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: GPL-3+
+
+Files: debian/*
+Copyright: 2009-2013, Timo Weingärtner
+License: GPL-3+
+
+License: GPL-3+
+ 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 3 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 3 can be found in the file
+ "/usr/share/common-licenses/GPL-3".
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..8a81ae9
--- /dev/null
+++ b/debian/openssh-known-hosts.dirs
@@ -0,0 +1,5 @@
+var/lib/openssh-known-hosts
+var/cache/openssh-known-hosts
+etc/openssh-known-hosts/sources
+etc/ssh
+usr/local/share/openssh-known-hosts/plugins
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.lintian-overrides b/debian/openssh-known-hosts.lintian-overrides
new file mode 100644
index 0000000..adf1d80
--- /dev/null
+++ b/debian/openssh-known-hosts.lintian-overrides
@@ -0,0 +1,2 @@
+# long line contains long string, warning not avoidable
+openssh-known-hosts: manpage-has-errors-from-man usr/share/man/man8/update-openssh-known-hosts.8.gz 34: warning [p 1, 5.0i]: cannot adjust line
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..0d810a9
--- /dev/null
+++ b/debian/openssh-known-hosts.postinst
@@ -0,0 +1,40 @@
+#!/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)
+ kh_link=/etc/ssh/ssh_known_hosts
+ kh_dest=/var/lib/openssh-known-hosts/ssh_known_hosts
+ [ -L $kh_link ] || [ -e $kh_link ] || ln -s $kh_dest $kh_link
+ if [ "`readlink $kh_link`" != $kh_dest ]; then
+ echo "$kh_link already exists, please set up the link to"
+ echo "$kh_dest 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..7345ec1
--- /dev/null
+++ b/debian/openssh-known-hosts.postrm
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postrm script for openssh-known-hosts
+#
+# 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
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ purge)
+ rm -rf /var/cache/openssh-known-hosts/
+ rm -rf /var/lib/openssh-known-hosts/
+ ;;
+ *)
+ 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..259a2c0
--- /dev/null
+++ b/debian/openssh-known-hosts.prerm
@@ -0,0 +1,37 @@
+#!/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
+ ;;
+ 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..c44afe8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/tiwe-de/openssh-known-hosts/tags .*/(\d[\d\.]*)\.tar\.gz