hc
2023-11-06 36f0949ef9854b82a9a3154d970da4e3b8d12a61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################################################################
#
# gesftpserver
#
################################################################################
 
GESFTPSERVER_VERSION = 0.2.2
GESFTPSERVER_SOURCE = sftpserver-$(GESFTPSERVER_VERSION).tar.gz
GESFTPSERVER_SITE = http://www.greenend.org.uk/rjk/sftpserver
GESFTPSERVER_LICENSE = GPL-2.0+
GESFTPSERVER_LICENSE_FILES = COPYING
# forgets to link against pthread when cross compiling
GESFTPSERVER_CONF_ENV = LIBS=-lpthread
 
# overwrite openssh version if enabled
GESFTPSERVER_DEPENDENCIES += \
   $(if $(BR2_ENABLE_LOCALE),,libiconv) \
   $(if $(BR2_PACKAGE_OPENSSH),openssh)
 
# 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))