]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/openssh/openssh.nm
openssh: fix path to configfile.
[ipfire-3.x.git] / pkgs / openssh / openssh.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = openssh
852f4e06 28PKG_VER = 5.8p1
d57285ab 29PKG_REL = 7
8b63a194 30
31PKG_MAINTAINER =
bb7d617c 32PKG_GROUPS = Application/Internet
8b63a194 33PKG_URL = http://www.openssh.com/portable.html
34PKG_LICENSE = MIT
35PKG_SUMMARY = An open source implementation of SSH protocol versions 1 and 2.
36
d65c7a92
AF
37PKG_BUILD_DEPS+= audit-devel libselinux-devel nss-devel openssl-devel>=1.0.0d-2 \
38 pam-devel zlib-devel
ba2e7991 39PKG_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.
42PKG_DEPS-openssh-server += /usr/bin/ssh-keygen
43
8b63a194 44define 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.
49endef
50
51PKG_TARBALL = $(THISAPP).tar.gz
52
ba2e7991
SS
53PKG_PACKAGES += openssh-clients openssh-server
54
55PKG_SUMMARY-openssh-server = OpenSSH server applications.
56PKG_DESCRIPTION-openssh-server = $(PKG_SUMMARY-openssh-server)
57PKG_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
71PKG_SUMMARY-openssh-clients = OpenSSH client applications.
72PKG_DESCRIPTION-openssh-clients = $(PKG_SUMMARY-openssh-clients)
73PKG_FILES-openssh-clients = \
74 /etc/ \
75 /usr/bin/ \
76 /usr/lib/ \
77 /usr/share/
852f4e06
SS
78
79# Apply patches in a special order
80PKG_PATCHES = openssh-5.6p1-redhat.patch
81PKG_PATCHES += openssh-5.8p1-fingerprint.patch
82PKG_PATCHES += openssh-5.8p1-authorized-keys-command.patch
83PKG_PATCHES += openssh-5.8p1-selinux.patch
84PKG_PATCHES += openssh-5.8p1-selinux-role.patch
85PKG_PATCHES += openssh-5.8p1-mls.patch
86PKG_PATCHES += openssh-5.6p1-keygen.patch
87PKG_PATCHES += openssh-5.2p1-allow-ip-opts.patch
88PKG_PATCHES += openssh-5.8p1-randclean.patch
89PKG_PATCHES += openssh-5.8p1-kuserok.patch
90PKG_PATCHES += openssh-5.5p1-x11.patch
91PKG_PATCHES += openssh-5.6p1-exit-deadlock.patch
92PKG_PATCHES += openssh-5.1p1-askpass-progress.patch
93PKG_PATCHES += openssh-4.3p2-askpass-grab-info.patch
94PKG_PATCHES += openssh-5.2p1-edns.patch
95PKG_PATCHES += openssh-5.1p1-scp-manpage.patch
ba2e7991 96
8b63a194 97CONFIGURE_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 108define 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 114endef
99c42052 115