summaryrefslogtreecommitdiffstats
path: root/package/pure-ftpd/pure-ftpd.mk
blob: cf43220cb50d5f395c9aab4bc82990215a963a92 (plain)
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
28
29
30
31
32
33
34
35
################################################################################
#
# pure-ftpd
#
################################################################################

PURE_FTPD_VERSION = 1.0.36
PURE_FTPD_SITE = http://download.pureftpd.org/pub/pure-ftpd/releases
PURE_FTPD_LICENSE = ISC
PURE_FTPD_LICENSE_FILES = COPYING
PURE_FTPD_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)

PURE_FTPD_CONF_OPT = \
	--with-altlog \
	--with-puredb \
	--with-rfc2640

ifeq ($(BR2_PACKAGE_LIBCAP),y)
PURE_FTPD_CONF_OPT += --with-capabilities
PURE_FTPD_DEPENDENCIES += libcap
else
PURE_FTPD_CONF_OPT += --without-capabilities
endif

ifeq ($(BR2_PACKAGE_OPENSSL),y)
PURE_FTPD_CONF_OPT += --with-tls
PURE_FTPD_DEPENDENCIES += openssl
ifeq ($(BR2_PREFER_STATIC_LIB),y)
PURE_FTPD_CONF_ENV += LIBS='-lssl -lcrypto -lz'
endif
else
PURE_FTPD_CONF_OPT += --without-tls
endif

$(eval $(autotools-package))