2014-09-28 21:12:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pure-ftpd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-12 22:59:28 +02:00
|
|
|
PURE_FTPD_VERSION = 1.0.49
|
2017-10-30 22:49:46 +01:00
|
|
|
PURE_FTPD_SITE = https://download.pureftpd.org/pub/pure-ftpd/releases
|
2015-06-30 12:25:50 +02:00
|
|
|
PURE_FTPD_SOURCE = pure-ftpd-$(PURE_FTPD_VERSION).tar.bz2
|
2014-09-28 21:12:50 +02:00
|
|
|
PURE_FTPD_LICENSE = ISC
|
|
|
|
PURE_FTPD_LICENSE_FILES = COPYING
|
|
|
|
PURE_FTPD_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
PURE_FTPD_CONF_OPTS = \
|
2014-09-28 21:12:50 +02:00
|
|
|
--with-altlog \
|
2019-04-12 22:59:28 +02:00
|
|
|
--with-puredb
|
2014-09-28 21:12:50 +02:00
|
|
|
|
2016-02-21 10:50:07 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
|
|
|
PURE_FTPD_DEPENDENCIES += elfutils
|
|
|
|
endif
|
|
|
|
|
2014-09-28 21:12:50 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PURE_FTPD_CONF_OPTS += --with-capabilities
|
2014-09-28 21:12:50 +02:00
|
|
|
PURE_FTPD_DEPENDENCIES += libcap
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PURE_FTPD_CONF_OPTS += --without-capabilities
|
2014-09-28 21:12:50 +02:00
|
|
|
endif
|
|
|
|
|
2016-02-21 18:34:56 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
|
|
|
|
PURE_FTPD_DEPENDENCIES += libsodium
|
|
|
|
endif
|
|
|
|
|
2019-04-12 22:59:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-mysql=$(STAGING_DIR)/usr
|
|
|
|
PURE_FTPD_DEPENDENCIES += mysql
|
|
|
|
else
|
|
|
|
PURE_FTPD_CONF_OPTS += --without-mysql
|
|
|
|
endif
|
|
|
|
|
2019-03-27 17:46:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENLDAP),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-ldap
|
|
|
|
PURE_FTPD_DEPENDENCIES += openldap
|
|
|
|
else
|
|
|
|
PURE_FTPD_CONF_OPTS += --without-ldap
|
|
|
|
endif
|
|
|
|
|
2014-09-28 21:12:50 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PURE_FTPD_CONF_OPTS += --with-tls
|
2019-04-12 23:25:29 +02:00
|
|
|
PURE_FTPD_DEPENDENCIES += host-pkgconf openssl
|
|
|
|
PURE_FTPD_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
2014-09-28 21:12:50 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PURE_FTPD_CONF_OPTS += --without-tls
|
2014-09-28 21:12:50 +02:00
|
|
|
endif
|
|
|
|
|
2019-04-12 22:59:29 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-pgsql=$(STAGING_DIR)/usr
|
|
|
|
PURE_FTPD_DEPENDENCIES += postgresql
|
|
|
|
else
|
|
|
|
PURE_FTPD_CONF_OPTS += --without-pgsql
|
|
|
|
endif
|
|
|
|
|
2016-07-11 16:35:14 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
|
2015-07-09 11:38:51 +02:00
|
|
|
PURE_FTPD_CONF_ENV += ax_cv_check_cflags___fPIE=no ax_cv_check_ldflags___fPIE=no
|
|
|
|
endif
|
|
|
|
|
2016-12-19 22:17:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PURE_FTPD_FTPWHO),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-ftpwho
|
|
|
|
endif
|
|
|
|
|
2017-01-18 19:58:51 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PURE_FTPD_QUOTAS),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-quotas
|
|
|
|
endif
|
|
|
|
|
2018-01-12 20:53:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PURE_FTPD_UPLOADSCRIPT),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-uploadscript
|
|
|
|
endif
|
|
|
|
|
2018-08-01 15:21:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
PURE_FTPD_CONF_OPTS += --with-pam
|
|
|
|
PURE_FTPD_DEPENDENCIES += linux-pam
|
|
|
|
else
|
|
|
|
PURE_FTPD_CONF_OPTS += --without-pam
|
|
|
|
endif
|
|
|
|
|
2014-09-28 21:12:50 +02:00
|
|
|
$(eval $(autotools-package))
|