2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-08 17:11:50 +01:00
|
|
|
#
|
|
|
|
# gesftpserver
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-08 17:11:50 +01:00
|
|
|
|
2022-10-09 23:49:45 +02:00
|
|
|
GESFTPSERVER_VERSION = 2
|
2013-01-08 17:11:50 +01:00
|
|
|
GESFTPSERVER_SOURCE = sftpserver-$(GESFTPSERVER_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
GESFTPSERVER_SITE = http://www.greenend.org.uk/rjk/sftpserver
|
2017-03-30 15:43:32 +02:00
|
|
|
GESFTPSERVER_LICENSE = GPL-2.0+
|
2013-01-08 17:11:50 +01:00
|
|
|
GESFTPSERVER_LICENSE_FILES = COPYING
|
2019-03-20 13:36:54 +01:00
|
|
|
|
|
|
|
# "Missing prototype" warning treated as error
|
|
|
|
GESFTPSERVER_CONF_OPTS = --disable-warnings-as-errors
|
2020-12-04 16:46:01 +01:00
|
|
|
GESFTPSERVER_CPE_ID_VENDOR = green_end
|
2021-01-18 18:41:51 +01:00
|
|
|
GESFTPSERVER_CPE_ID_PRODUCT = sftpserver
|
2019-03-20 13:36:54 +01:00
|
|
|
|
2013-01-08 17:11:50 +01:00
|
|
|
# forgets to link against pthread when cross compiling
|
2022-10-18 19:05:31 +02:00
|
|
|
GESFTPSERVER_CONF_ENV = \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
|
|
|
|
LIBS=-lpthread
|
2013-01-08 17:11:50 +01:00
|
|
|
|
|
|
|
# overwrite openssh version if enabled
|
|
|
|
GESFTPSERVER_DEPENDENCIES += \
|
|
|
|
$(if $(BR2_ENABLE_LOCALE),,libiconv) \
|
|
|
|
$(if $(BR2_PACKAGE_OPENSSH),openssh)
|
|
|
|
|
2021-06-24 14:32:37 +02:00
|
|
|
# Python on the host is only used for tests, which we don't use in
|
|
|
|
# Buildroot
|
2022-10-09 23:49:45 +02:00
|
|
|
GESFTPSERVER_CONF_ENV += rjk_cv_python3=false
|
2021-06-24 14:32:37 +02:00
|
|
|
|
2013-01-08 17:11:50 +01:00
|
|
|
# openssh/dropbear looks here
|
|
|
|
define GESFTPSERVER_ADD_SYMLINK
|
|
|
|
ln -sf gesftpserver $(TARGET_DIR)/usr/libexec/sftp-server
|
|
|
|
endef
|
|
|
|
|
|
|
|
GESFTPSERVER_POST_INSTALL_TARGET_HOOKS += GESFTPSERVER_ADD_SYMLINK
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|