1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = Application/Internet
33 PKG_URL = http://www.openssh.com/portable.html
35 PKG_SUMMARY = An open source implementation of SSH protocol versions 1 and 2.
37 PKG_BUILD_DEPS+= audit-devel libselinux-devel nss-devel openssl-devel>=1.0.0d-2 \
39 PKG_DEPS-openssh = openssh-clients=$(THISVER) openssh-server=$(THISVER)
41 # /usr/bin/ssh-keygen is needed to generate keys for the ssh server.
42 PKG_DEPS-openssh-server += /usr/bin/ssh-keygen
44 define PKG_DESCRIPTION
45 SSH (Secure SHell) is a program for logging into and executing \
46 commands on a remote machine. SSH is intended to replace rlogin and \
47 rsh, and to provide secure encrypted communications between two \
48 untrusted hosts over an insecure network.
51 PKG_TARBALL = $(THISAPP).tar.gz
53 PKG_PACKAGES += openssh-clients openssh-server
55 PKG_SUMMARY-openssh-server = OpenSSH server applications.
56 PKG_DESCRIPTION-openssh-server = $(PKG_SUMMARY-openssh-server)
57 PKG_FILES-openssh-server = \
61 /etc/ssh/sshd_config \
62 /usr/lib/openssh/sftp-server \
64 /usr/share/man/cat5/sshd_config.5* \
65 /usr/share/man/cat5/moduli.5* \
66 /usr/share/man/cat8/sshd.8* \
67 /usr/share/man/cat8/sftp-server.8* \
71 PKG_SUMMARY-openssh-clients = OpenSSH client applications.
72 PKG_DESCRIPTION-openssh-clients = $(PKG_SUMMARY-openssh-clients)
73 PKG_FILES-openssh-clients = \
79 # Apply patches in a special order
80 PKG_PATCHES = openssh-5.6p1-redhat.patch
81 PKG_PATCHES += openssh-5.8p1-fingerprint.patch
82 PKG_PATCHES += openssh-5.8p1-authorized-keys-command.patch
83 PKG_PATCHES += openssh-5.8p1-selinux.patch
84 PKG_PATCHES += openssh-5.8p1-selinux-role.patch
85 PKG_PATCHES += openssh-5.8p1-mls.patch
86 PKG_PATCHES += openssh-5.6p1-keygen.patch
87 PKG_PATCHES += openssh-5.2p1-allow-ip-opts.patch
88 PKG_PATCHES += openssh-5.8p1-randclean.patch
89 PKG_PATCHES += openssh-5.8p1-kuserok.patch
90 PKG_PATCHES += openssh-5.5p1-x11.patch
91 PKG_PATCHES += openssh-5.6p1-exit-deadlock.patch
92 PKG_PATCHES += openssh-5.1p1-askpass-progress.patch
93 PKG_PATCHES += openssh-4.3p2-askpass-grab-info.patch
94 PKG_PATCHES += openssh-5.2p1-edns.patch
95 PKG_PATCHES += openssh-5.1p1-scp-manpage.patch
97 CONFIGURE_OPTIONS += \
98 --sysconfdir=/etc/ssh \
99 --datadir=/usr/share/sshd \
100 --libexecdir=/usr/lib/openssh \
101 --with-md5-passwords \
102 --with-privsep-path=/var/lib/sshd \
108 define STAGE_INSTALL_CMDS
109 -mkdir -pv $(BUILDROOT)/etc/ssh
110 cp -vf $(DIR_SOURCE)/sshd_config $(BUILDROOT)/etc/ssh/sshd_config
112 # Install scriptfile for key generation
113 install -m 754 $(DIR_SOURCE)/ssh-keygen $(BUILDROOT)/usr/lib/openssh/