2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-10-17 10:55:05 +02:00
|
|
|
#
|
|
|
|
# openssh
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-10-17 10:55:05 +02:00
|
|
|
|
2015-03-18 11:42:34 +01:00
|
|
|
OPENSSH_VERSION = 6.8p1
|
2010-12-01 15:44:26 +01:00
|
|
|
OPENSSH_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
|
2014-05-06 17:42:38 +02:00
|
|
|
OPENSSH_LICENSE = BSD-3c BSD-2c Public Domain
|
|
|
|
OPENSSH_LICENSE_FILES = LICENCE
|
2011-02-07 10:55:04 +01:00
|
|
|
OPENSSH_CONF_ENV = LD="$(TARGET_CC)" LDFLAGS="$(TARGET_CFLAGS)"
|
2014-12-24 08:54:24 +01:00
|
|
|
OPENSSH_CONF_OPTS = \
|
|
|
|
--sysconfdir=/etc/ssh \
|
|
|
|
--disable-lastlog \
|
|
|
|
--disable-utmp \
|
|
|
|
--disable-utmpx \
|
|
|
|
--disable-wtmp \
|
|
|
|
--disable-wtmpx \
|
|
|
|
--disable-strip
|
2002-10-17 10:55:05 +02:00
|
|
|
|
2014-10-27 19:18:55 +01:00
|
|
|
define OPENSSH_USERS
|
2014-11-03 00:39:51 +01:00
|
|
|
sshd -1 sshd -1 * - - - SSH drop priv user
|
2014-10-27 19:18:55 +01:00
|
|
|
endef
|
|
|
|
|
2014-07-30 14:32:21 +02:00
|
|
|
# uClibc toolchain for ARC doesn't support PIE at the moment
|
|
|
|
ifeq ($(BR2_arc),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENSSH_CONF_OPTS += --without-pie
|
2014-07-30 14:32:21 +02:00
|
|
|
endif
|
|
|
|
|
2008-09-24 14:00:57 +02:00
|
|
|
OPENSSH_DEPENDENCIES = zlib openssl
|
2003-11-12 10:31:12 +01:00
|
|
|
|
2012-09-15 16:27:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
OPENSSH_DEPENDENCIES += linux-pam
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENSSH_CONF_OPTS += --with-pam
|
2012-09-15 16:27:53 +02:00
|
|
|
endif
|
|
|
|
|
2013-12-04 11:37:53 +01:00
|
|
|
define OPENSSH_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/openssh/sshd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/sshd.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../sshd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service
|
2010-09-01 22:48:22 +02:00
|
|
|
endef
|
|
|
|
|
2013-12-04 11:37:53 +01:00
|
|
|
define OPENSSH_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/openssh/S50sshd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50sshd
|
|
|
|
endef
|
2010-09-01 22:48:22 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|