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
|
|
|
|
2014-03-24 12:47:50 +01:00
|
|
|
OPENSSH_VERSION = 6.6p1
|
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)"
|
2013-04-25 22:53:00 +02:00
|
|
|
OPENSSH_CONF_OPT = --disable-lastlog --disable-utmp \
|
2010-11-05 14:49:07 +01:00
|
|
|
--disable-utmpx --disable-wtmp --disable-wtmpx --disable-strip
|
2002-10-17 10:55:05 +02:00
|
|
|
|
2014-07-30 14:32:21 +02:00
|
|
|
# uClibc toolchain for ARC doesn't support PIE at the moment
|
|
|
|
ifeq ($(BR2_arc),y)
|
|
|
|
OPENSSH_CONF_OPT += --without-pie
|
|
|
|
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
|
|
|
|
OPENSSH_CONF_OPT += --with-pam
|
|
|
|
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))
|