diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 22:36:39 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 23:01:30 +0200 |
commit | 871aa3ec8c59a964940af18d3ec462c797482785 (patch) | |
tree | 8492d0e98ede203810dfea6bcfe0ceecedd13bcf /flx/init-openssh | |
parent | add ebuild for a clam client to server support (diff) | |
download | portage-871aa3ec8c59a964940af18d3ec462c797482785.tar.xz |
Add formilux tools/init-scripts
Diffstat (limited to 'flx/init-openssh')
-rw-r--r-- | flx/init-openssh/Manifest | 2 | ||||
-rw-r--r-- | flx/init-openssh/files/init-openssh-BJA-ecdsa.diff | 27 | ||||
-rw-r--r-- | flx/init-openssh/init-openssh-4.5.ebuild | 27 |
3 files changed, 56 insertions, 0 deletions
diff --git a/flx/init-openssh/Manifest b/flx/init-openssh/Manifest new file mode 100644 index 00000000..4f60423b --- /dev/null +++ b/flx/init-openssh/Manifest @@ -0,0 +1,2 @@ +AUX init-openssh-BJA-ecdsa.diff 1147 RMD160 c4f31ce9e511fab0c53c2df777369367053c167f SHA1 6759138d5c1795835866cadbe42007909c109b55 SHA256 9c15bf627ee4e5c2eb117f5cd0e27ea5346514b31b58d16693e998acf6fa022d +EBUILD init-openssh-4.5.ebuild 544 RMD160 777d000cf239ae678d6826b27d72b30beca95e4e SHA1 129f638315d383ede44c54462f8a608f81721f99 SHA256 1f9474ad287445c64cb77209df252cf0df90fa2731c3ce53825d377ca92a0c12 diff --git a/flx/init-openssh/files/init-openssh-BJA-ecdsa.diff b/flx/init-openssh/files/init-openssh-BJA-ecdsa.diff new file mode 100644 index 00000000..98f1f979 --- /dev/null +++ b/flx/init-openssh/files/init-openssh-BJA-ecdsa.diff @@ -0,0 +1,27 @@ +diff --git add-ons/sshd add-ons/sshd +index deb5e86..79bf3e6 100644 +--- add-ons/sshd ++++ add-ons/sshd +@@ -35,6 +35,8 @@ function sshd_find_keys { + hostkey_list="$hostkey_list /etc/ssh/ssh_host_rsa_key" + echo " Assuming /etc/ssh/ssh_host_dsa_key for Protocol v2." + hostkey_list="$hostkey_list /etc/ssh/ssh_host_dsa_key" ++ echo " Assuming /etc/ssh/ssh_host_ecdsa_key for Protocol v2." ++ hostkey_list="$hostkey_list /etc/ssh/ssh_host_ecdsa_key" + fi + else + echo " File $sshd_cfgfile references these keys : $hostkey_list" +@@ -81,11 +83,12 @@ function do_install { + */ssh_host_key*) type=rsa1 ;; + */ssh_host_rsa_key*) type=rsa ;; + */ssh_host_dsa_key*) type=dsa ;; ++ */ssh_host_ecdsa_key*) type=ecdsa ;; + *) type="" + echo " Warning! host key $key does not exist and cannot" + echo " be auto-generated since it does not have a standard name." + echo " If SSHD doesn't start, you'll have to generate it manually this way :" +- echo " # ssh-keygen -t { rsa1 | rsa | dsa } -N '' -f $key" ++ echo " # ssh-keygen -t { rsa1 | rsa | dsa | ecdsa } -N '' -f $key" + echo + ;; + esac diff --git a/flx/init-openssh/init-openssh-4.5.ebuild b/flx/init-openssh/init-openssh-4.5.ebuild new file mode 100644 index 00000000..a812ce95 --- /dev/null +++ b/flx/init-openssh/init-openssh-4.5.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit git-2 flx eutils + +DESCRIPTION="Formilux Tools" +HOMEPAGE="http://master.formilux.org/git/dist/pkg/openssh.git" +EGIT_REPO_URI="http://master.formilux.org/git/dist/pkg/${PN//init-/}.git" +EGIT_BRANCH="4.5-flx0" +EGIT_COMMIT="v4.5p1-flx0.1" + +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND=">=net-misc/openssh-${PV}" + +SVCNAME="sshd" + +src_prepare () +{ + epatch "${FILESDIR}"/${PN}-BJA-ecdsa.diff + + flx_src_prepare +} |