summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog39
-rw-r--r--debian/compat1
-rw-r--r--debian/control20
-rw-r--r--debian/copyright23
-rw-r--r--debian/openssh-known-hosts.cron.d4
-rw-r--r--debian/openssh-known-hosts.dirs4
-rw-r--r--debian/openssh-known-hosts.docs1
-rw-r--r--debian/openssh-known-hosts.examples1
-rw-r--r--debian/openssh-known-hosts.install2
-rw-r--r--debian/openssh-known-hosts.manpages1
-rw-r--r--debian/openssh-known-hosts.postinst60
-rw-r--r--debian/openssh-known-hosts.prerm48
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
14 files changed, 209 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..180fa1b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,39 @@
+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.
+ * Upload to unstable (Closes: #534891)
+ * 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..5c6e234
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: openssh-known-hosts
+Section: net
+Priority: extra
+Maintainer: Timo Weingärtner <timo@tiwe.de>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.9.0
+
+Package: openssh-known-hosts
+Architecture: all
+Depends: dash, lockfile-progs, ${misc:Depends}
+Recommends: openssh-client, cron
+Suggests: postgresql-client, rsync, curl, gpgv
+Description: known_hosts downloader for OpenSSH
+ This package allows you to download public hostkeys from multiple sources
+ 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..1904392
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Copyright:
+
+ Copyright (C) 2009-2010 Timo Weingärtner <timo@tiwe.de>
+
+License:
+
+ 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/openssh-known-hosts.cron.d b/debian/openssh-known-hosts.cron.d
new file mode 100644
index 0000000..27f4f64
--- /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 ] && /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..93858a1
--- /dev/null
+++ b/debian/openssh-known-hosts.postinst
@@ -0,0 +1,60 @@
+#!/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)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+if [ ! -e /usr/local/share/openssh-known-hosts ]; then
+ if mkdir /usr/local/share/openssh-known-hosts 2>/dev/null; then
+ chown root:staff /usr/local/share/openssh-known-hosts
+ chmod 2775 /usr/local/share/openssh-known-hosts
+ 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
+ chown root:staff /usr/local/share/openssh-known-hosts/plugins
+ chmod 2775 /usr/local/share/openssh-known-hosts/plugins
+ 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."
+fi
+
+exit 0
+
+
diff --git a/debian/openssh-known-hosts.prerm b/debian/openssh-known-hosts.prerm
new file mode 100644
index 0000000..b5730c7
--- /dev/null
+++ b/debian/openssh-known-hosts.prerm
@@ -0,0 +1,48 @@
+#!/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|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+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
+
+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..d3827e7
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+1.0