1################################################################################ 2# 3# gesftpserver 4# 5################################################################################ 6 7GESFTPSERVER_VERSION = 2 8GESFTPSERVER_SOURCE = sftpserver-$(GESFTPSERVER_VERSION).tar.gz 9GESFTPSERVER_SITE = http://www.greenend.org.uk/rjk/sftpserver 10GESFTPSERVER_LICENSE = GPL-2.0+ 11GESFTPSERVER_LICENSE_FILES = COPYING 12 13# "Missing prototype" warning treated as error 14GESFTPSERVER_CONF_OPTS = --disable-warnings-as-errors 15GESFTPSERVER_CPE_ID_VENDOR = greenend 16GESFTPSERVER_CPE_ID_PRODUCT = sftpserver 17 18# forgets to link against pthread when cross compiling 19GESFTPSERVER_CONF_ENV = \ 20 CFLAGS="$(TARGET_CFLAGS) -std=c99" \ 21 LIBS=-lpthread 22 23# overwrite openssh version if enabled 24GESFTPSERVER_DEPENDENCIES += \ 25 $(if $(BR2_ENABLE_LOCALE),,libiconv) \ 26 $(if $(BR2_PACKAGE_OPENSSH),openssh) 27 28# Python on the host is only used for tests, which we don't use in 29# Buildroot 30GESFTPSERVER_CONF_ENV += rjk_cv_python3=false 31 32# openssh/dropbear looks here 33define GESFTPSERVER_ADD_SYMLINK 34 ln -sf gesftpserver $(TARGET_DIR)/usr/libexec/sftp-server 35endef 36 37GESFTPSERVER_POST_INSTALL_TARGET_HOOKS += GESFTPSERVER_ADD_SYMLINK 38 39$(eval $(autotools-package)) 40