From 4b9c494c31f26237299c9bf052df99af0945b9c9 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Mon, 7 Jan 2013 15:22:29 +0100 Subject: Revert "drop debian/" This reverts commit 9817011424d5a37501ffb6bcee573e6fb25b852d. --- debian/changelog | 39 ++++++++++++++++++++++++ debian/compat | 1 + debian/control | 20 +++++++++++++ debian/copyright | 23 ++++++++++++++ debian/openssh-known-hosts.cron.d | 4 +++ debian/openssh-known-hosts.dirs | 4 +++ debian/openssh-known-hosts.docs | 1 + debian/openssh-known-hosts.examples | 1 + debian/openssh-known-hosts.install | 2 ++ debian/openssh-known-hosts.manpages | 1 + debian/openssh-known-hosts.postinst | 60 +++++++++++++++++++++++++++++++++++++ debian/openssh-known-hosts.prerm | 48 +++++++++++++++++++++++++++++ debian/rules | 4 +++ debian/source/format | 1 + 14 files changed, 209 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/openssh-known-hosts.cron.d create mode 100644 debian/openssh-known-hosts.dirs create mode 100644 debian/openssh-known-hosts.docs create mode 100644 debian/openssh-known-hosts.examples create mode 100644 debian/openssh-known-hosts.install create mode 100644 debian/openssh-known-hosts.manpages create mode 100644 debian/openssh-known-hosts.postinst create mode 100644 debian/openssh-known-hosts.prerm create mode 100755 debian/rules create mode 100644 debian/source/format 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 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 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 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 Sun, 28 Jun 2009 01:57:44 +0200 + +openssh-known-hosts (0.1) fsmi-lenny; urgency=low + + * Initial Release. + + -- Timo Weingärtner 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 +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 + +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: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 -- cgit v1.2.3