2006-12-14 15:23:50 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# vsftpd
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-10-15 17:50:26 +02:00
|
|
|
VSFTPD_VERSION = 3.0.2
|
2011-12-11 16:25:57 +01:00
|
|
|
VSFTPD_SITE = https://security.appspot.com/downloads
|
2010-09-27 17:55:18 +02:00
|
|
|
VSFTPD_LIBS = -lcrypt
|
2012-10-15 17:50:26 +02:00
|
|
|
VSFTPD_LICENSE = GPLv2
|
|
|
|
VSFTPD_LICENSE_FILES = COPYING
|
2006-12-14 15:23:50 +01:00
|
|
|
|
2010-09-27 17:55:18 +02:00
|
|
|
define VSFTPD_ENABLE_SSL
|
|
|
|
$(SED) 's/.*VSF_BUILD_SSL/#define VSF_BUILD_SSL/' $(@D)/builddefs.h
|
|
|
|
endef
|
2006-12-14 15:23:50 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2010-09-27 17:55:18 +02:00
|
|
|
VSFTPD_DEPENDENCIES += openssl
|
2012-03-16 14:54:55 +01:00
|
|
|
VSFTPD_LIBS += -lssl -lcrypto
|
2010-09-27 17:55:18 +02:00
|
|
|
VSFTPD_POST_CONFIGURE_HOOKS += VSFTPD_ENABLE_SSL
|
2006-12-14 15:23:50 +01:00
|
|
|
endif
|
|
|
|
|
2010-10-18 17:36:01 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
VSFTPD_DEPENDENCIES += libcap
|
|
|
|
VSFTPD_LIBS += -lcap
|
|
|
|
endif
|
|
|
|
|
2012-08-12 09:01:16 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
VSFTPD_DEPENDENCIES += linux-pam
|
|
|
|
VSFTPD_LIBS += -lpam
|
|
|
|
endif
|
|
|
|
|
2010-09-27 17:55:18 +02:00
|
|
|
define VSFTPD_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(VSFTPD_LIBS)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define VSFTPD_INSTALL_TARGET_CMDS
|
|
|
|
install -D -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
|
|
|
|
install -D -m 644 $(@D)/vsftpd.8 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/vsftpd.8
|
|
|
|
install -D -m 644 $(@D)/vsftpd.conf.5 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man5/vsftpd.conf.5
|
|
|
|
test -f $(TARGET_DIR)/etc/init.d/S70vsftpd || \
|
|
|
|
$(INSTALL) -D -m 755 package/vsftpd/vsftpd-init \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S70vsftpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define VSFTPD_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/vsftpd
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/vsftpd.8
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man5/vsftpd.conf.5
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S70vsftpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define VSFTPD_CLEAN_CMDS
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|