@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2014 OpenWrt.org
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := vsftpd
PKG_VERSION := 3.0.2
PKG_RELEASE := 4
PKG_RELEASE := 5
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://security.appspot.com/downloads/
@ -49,8 +49,15 @@ endef
P a c k a g e / v s f t p d - t l s / conffiles = $( Package/vsftpd/conffiles)
i f n e q ( $( CONFIG_USE_MUSL ) , )
NLSSTRING:= -lcrypt
e l s e
NLSSTRING:= -lcrypt -lnsl
e n d i f
i f e q ( $( BUILD_VARIANT ) , n o t l s )
define Build/Compile
$( SED) 's/-lcrypt -lnsl/$(NLSSTRING)/' $( PKG_BUILD_DIR) /Makefile
$( MAKE) -C $( PKG_BUILD_DIR) \
CC = " $( TARGET_CC) " \
CFLAGS = " $( TARGET_CFLAGS) " \
@ -63,6 +70,7 @@ ifeq ($(BUILD_VARIANT),tls)
define Build/Compile
$( SED) 's/#undef VSF_BUILD_SSL/#define VSF_BUILD_SSL/' $( PKG_BUILD_DIR) /builddefs.h
$( SED) 's/-lcrypt -lnsl/-lcrypt -lnsl -lssl -lcrypto/' $( PKG_BUILD_DIR) /Makefile
$( SED) 's/-lcrypt -lnsl/$(NLSSTRING)/' $( PKG_BUILD_DIR) /Makefile
$( MAKE) -C $( PKG_BUILD_DIR) \
CC = " $( TARGET_CC) " \
CFLAGS = " $( TARGET_CFLAGS) " \