]>
Commit | Line | Data |
---|---|---|
8b63a194 | 1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
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. # | |
10 | # # | |
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. # | |
15 | # # | |
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/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = openssh | |
852f4e06 | 28 | PKG_VER = 5.8p1 |
d57285ab | 29 | PKG_REL = 7 |
8b63a194 | 30 | |
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = Application/Internet |
8b63a194 | 33 | PKG_URL = http://www.openssh.com/portable.html |
34 | PKG_LICENSE = MIT | |
35 | PKG_SUMMARY = An open source implementation of SSH protocol versions 1 and 2. | |
36 | ||
d65c7a92 AF |
37 | PKG_BUILD_DEPS+= audit-devel libselinux-devel nss-devel openssl-devel>=1.0.0d-2 \ |
38 | pam-devel zlib-devel | |
ba2e7991 | 39 | PKG_DEPS-openssh = openssh-clients=$(THISVER) openssh-server=$(THISVER) |
8b63a194 | 40 | |
00608042 MT |
41 | # /usr/bin/ssh-keygen is needed to generate keys for the ssh server. |
42 | PKG_DEPS-openssh-server += /usr/bin/ssh-keygen | |
43 | ||
8b63a194 | 44 | define PKG_DESCRIPTION |
8987f278 | 45 | SSH (Secure SHell) is a program for logging into and executing \ |
8b63a194 | 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. | |
49 | endef | |
50 | ||
51 | PKG_TARBALL = $(THISAPP).tar.gz | |
52 | ||
ba2e7991 SS |
53 | PKG_PACKAGES += openssh-clients openssh-server |
54 | ||
55 | PKG_SUMMARY-openssh-server = OpenSSH server applications. | |
56 | PKG_DESCRIPTION-openssh-server = $(PKG_SUMMARY-openssh-server) | |
57 | PKG_FILES-openssh-server = \ | |
3c4e6e3c | 58 | /etc/init/ \ |
ba2e7991 SS |
59 | /etc/pam.d/ \ |
60 | /etc/ssh/moduli \ | |
61 | /etc/ssh/sshd_config \ | |
62 | /usr/lib/openssh/sftp-server \ | |
63 | /usr/sbin/ \ | |
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* \ | |
68 | /usr/share/sshd/ \ | |
69 | /var/ | |
70 | ||
71 | PKG_SUMMARY-openssh-clients = OpenSSH client applications. | |
72 | PKG_DESCRIPTION-openssh-clients = $(PKG_SUMMARY-openssh-clients) | |
73 | PKG_FILES-openssh-clients = \ | |
74 | /etc/ \ | |
75 | /usr/bin/ \ | |
76 | /usr/lib/ \ | |
77 | /usr/share/ | |
852f4e06 SS |
78 | |
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 | |
ba2e7991 | 96 | |
8b63a194 | 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 \ | |
a589147d | 103 | --with-pam \ |
852f4e06 SS |
104 | --with-selinux \ |
105 | --with-nss \ | |
106 | --with-audit=linux | |
b771887d | 107 | |
8b63a194 | 108 | define STAGE_INSTALL_CMDS |
b771887d | 109 | -mkdir -pv $(BUILDROOT)/etc/ssh |
d57285ab | 110 | cp -vf $(DIR_SOURCE)/sshd_config $(BUILDROOT)/etc/ssh/sshd_config |
99c42052 SS |
111 | |
112 | # Install scriptfile for key generation | |
113 | install -m 754 $(DIR_SOURCE)/ssh-keygen $(BUILDROOT)/usr/lib/openssh/ | |
8b63a194 | 114 | endef |
99c42052 | 115 |