a40c74d538
When libsodium was compiled before, pure-ftpd will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/pure-statsdecode | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libsodium.so.17] 0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] The build system offers no option to en-/disable libsodium support, check configure.ac, line 953. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# pure-ftpd
|
|
#
|
|
################################################################################
|
|
|
|
PURE_FTPD_VERSION = 1.0.42
|
|
PURE_FTPD_SITE = http://download.pureftpd.org/pub/pure-ftpd/releases
|
|
PURE_FTPD_SOURCE = pure-ftpd-$(PURE_FTPD_VERSION).tar.bz2
|
|
PURE_FTPD_LICENSE = ISC
|
|
PURE_FTPD_LICENSE_FILES = COPYING
|
|
PURE_FTPD_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
PURE_FTPD_CONF_OPTS = \
|
|
--with-altlog \
|
|
--with-puredb \
|
|
--with-rfc2640
|
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
|
PURE_FTPD_DEPENDENCIES += elfutils
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
PURE_FTPD_CONF_OPTS += --with-capabilities
|
|
PURE_FTPD_DEPENDENCIES += libcap
|
|
else
|
|
PURE_FTPD_CONF_OPTS += --without-capabilities
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
|
|
PURE_FTPD_DEPENDENCIES += libsodium
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
PURE_FTPD_CONF_OPTS += --with-tls
|
|
PURE_FTPD_DEPENDENCIES += openssl
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
PURE_FTPD_CONF_ENV += LIBS='-lssl -lcrypto -lz'
|
|
endif
|
|
else
|
|
PURE_FTPD_CONF_OPTS += --without-tls
|
|
endif
|
|
|
|
ifeq ($(BR2_arc),y)
|
|
PURE_FTPD_CONF_ENV += ax_cv_check_cflags___fPIE=no ax_cv_check_ldflags___fPIE=no
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|