From f5c906c5985879a5c5a3a8f99c243205ec853f41 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 12 Apr 2019 22:59:30 +0200 Subject: [PATCH] package/pure-ftpd: add optional mysql dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/pure-ftpd/pure-ftpd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk index a9268b4446..93ad57c3f3 100644 --- a/package/pure-ftpd/pure-ftpd.mk +++ b/package/pure-ftpd/pure-ftpd.mk @@ -30,6 +30,13 @@ ifeq ($(BR2_PACKAGE_LIBSODIUM),y) PURE_FTPD_DEPENDENCIES += libsodium endif +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 + ifeq ($(BR2_PACKAGE_OPENLDAP),y) PURE_FTPD_CONF_OPTS += --with-ldap PURE_FTPD_DEPENDENCIES += openldap -- 2.30.2