From: Evan Broder Date: Sun, 3 Jan 2010 18:54:33 +0000 (-0500) Subject: Add an invirt-ssh-config package, based on debathena-ssh-server-config. X-Git-Tag: 1.0~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-ssh-config.git/commitdiff_plain/a8c0b4e8e8af967bc749814f77b309edbd6760d0?ds=inline Add an invirt-ssh-config package, based on debathena-ssh-server-config. svn path=/trunk/packages/invirt-ssh-config/; revision=2855 --- a8c0b4e8e8af967bc749814f77b309edbd6760d0 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c3075d9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +invirt-ssh-config (1.0) unstable; urgency=low + + * Initial release. + + -- Evan Broder Fri, 13 Jul 2007 17:43:39 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..633364a --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: invirt-ssh-config +Section: net +Priority: extra +Maintainer: Invirt Project +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), config-package-dev (>= 4.5~), openssh-server (>= 1:4.3) +Standards-Version: 3.8.3 + +Package: invirt-ssh-config +Architecture: all +Depends: openssh-server (>= 1:4.3), ${misc:Depends} +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: sshd configuration for Invirt + This package configures the ssh daemon to support Kerberos + authentication. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..361ca8f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This software was written as part of the Invirt project . + +Copyright : + + 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. + +On Debian systems, the complete text of the GNU General Public License +can be found in the file /usr/share/common-licenses/GPL. diff --git a/debian/invirt-ssh-config.install b/debian/invirt-ssh-config.install new file mode 100644 index 0000000..3eb3a30 --- /dev/null +++ b/debian/invirt-ssh-config.install @@ -0,0 +1 @@ +debian/sshd_config.invirt etc/ssh/ diff --git a/debian/invirt-ssh-config.postinst b/debian/invirt-ssh-config.postinst new file mode 100644 index 0000000..c50afb7 --- /dev/null +++ b/debian/invirt-ssh-config.postinst @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for debathena-ssh-server-config +# +# 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 + + +#DEBHELPER# + +case "$1" in + configure) + if hash invoke-rc.d; then + invoke-rc.d ssh restart + else + /etc/init.d/ssh restart + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d4a3d4b --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +DEB_DIVERT_EXTENSION = .invirt +DEB_DIVERT_FILES_invirt-ssh-config += \ + /etc/ssh/sshd_config.invirt + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/config-package.mk + +debian/sshd_config.invirt-orig: /var/lib/dpkg/info/openssh-server.postinst + perl -0pe 's/^.*< $@ + +common-build-indep:: debian/sshd_config.invirt + +debian/sshd_config.invirt: debian/sshd_config.invirt-orig + perl -0pe ' \ + s/^#?GSSAPIAuthentication .*$$/GSSAPIAuthentication yes\nGSSAPIKeyExchange yes\nGSSAPIStrictAcceptorCheck no/m and \ + s/^#?GSSAPICleanupCredentials .*$$/GSSAPICleanupCredentials yes/m and \ + s/^#?ChallengeResponseAuthentication .*$$/ChallengeResponseAuthentication yes/m and \ + s/^#?UsePrivilegeSeparation .*$$/UsePrivilegeSeparation yes/m and \ + s/^#?PasswordAuthentication .*$$/PasswordAuthentication no/m or die;' $< > $@ + +clean:: + rm -f debian/sshd_config.invirt debian/sshd_config.invirt-orig