2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-14 02:48:49 +01:00
|
|
|
#
|
|
|
|
# proftpd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-09 13:39:19 +01:00
|
|
|
|
2014-04-24 12:02:27 +02:00
|
|
|
PROFTPD_VERSION = 1.3.4d
|
|
|
|
PROFTPD_SOURCE = proftpd-$(PROFTPD_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
PROFTPD_SITE = ftp://ftp.proftpd.org/distrib/source
|
2013-06-28 15:41:13 +02:00
|
|
|
PROFTPD_LICENSE = GPLv2+
|
|
|
|
PROFTPD_LICENSE_FILES = COPYING
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_CONF_ENV = ac_cv_func_setpgrp_void=yes \
|
|
|
|
ac_cv_func_setgrent_void=yes
|
2007-07-17 02:22:39 +02:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_CONF_OPT = --localstatedir=/var/run \
|
2007-01-14 02:48:49 +01:00
|
|
|
--disable-static \
|
|
|
|
--disable-curses \
|
|
|
|
--disable-ncurses \
|
|
|
|
--disable-facl \
|
|
|
|
--disable-dso \
|
|
|
|
--enable-shadow \
|
2010-10-08 10:43:02 +02:00
|
|
|
--with-gnu-ld
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2013-02-05 01:54:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
|
|
|
|
PROFTPD_CONF_OPT += --with-modules=mod_rewrite
|
|
|
|
endif
|
|
|
|
|
2014-04-24 13:28:56 +02:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
|
|
|
# configure script doesn't handle detection of %llu format string
|
|
|
|
# support for printing the file size when cross compiling, breaking
|
|
|
|
# access for large files.
|
|
|
|
# We unfortunately cannot AUTORECONF the package, so instead force it
|
|
|
|
# on if we know we support it
|
|
|
|
define PROFTPD_USE_LLU
|
|
|
|
$(SED) 's/HAVE_LU/HAVE_LLU/' $(@D)/configure
|
|
|
|
endef
|
|
|
|
PROFTPD_PRE_CONFIGURE_HOOKS += PROFTPD_USE_LLU
|
|
|
|
endif
|
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
define PROFTPD_MAKENAMES
|
|
|
|
$(MAKE1) CC="$(HOSTCC)" CFLAGS="" LDFLAGS="" -C $(@D)/lib/libcap _makenames
|
|
|
|
endef
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2010-10-08 10:43:02 +02:00
|
|
|
PROFTPD_POST_CONFIGURE_HOOKS = PROFTPD_MAKENAMES
|
|
|
|
|
|
|
|
PROFTPD_MAKE=$(MAKE1)
|
|
|
|
|
|
|
|
define PROFTPD_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
|
2010-10-08 10:43:02 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
|
2011-04-22 13:27:14 +02:00
|
|
|
$(if $(BR2_INET_IPV6),,$(SED) 's/^UseIPv6/# UseIPv6/' $(TARGET_DIR)/etc/proftpd.conf;) \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2007-06-16 19:54:38 +02:00
|
|
|
$(INSTALL) -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d
|
2010-10-08 10:43:02 +02:00
|
|
|
endef
|
2007-01-14 02:48:49 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|