lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 72322f24ae7bba6f8157fa65926d5b123e8403db
parent 4b7237a8aa1e306b4350401210b077f816434059
Author: Alexander Ryzhov <github@ryzhov-al.ru>
Date:   Thu, 23 Apr 2015 13:43:17 +0000

lsof: respect IPv6 settings

Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>

Diffstat:
Mutils/lsof/Makefile | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/utils/lsof/Makefile b/utils/lsof/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=lsof PKG_VERSION:=4.86 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)+dfsg.orig.tar.gz PKG_SOURCE_URL:=http://ftp2.de.debian.org/debian/pool/main/l/lsof @@ -32,9 +32,15 @@ define Package/lsof URL:=http://people.freebsd.org/~abe/ endef +ifeq ($(CONFIG_IPV6),y) + LINUX_CLIB_IPV6="-DHASIPv6" +else + LINUX_CLIB_IPV6= +endif + define Build/Configure cd $(PKG_BUILD_DIR); \ - LINUX_CLIB="-DGLIBCV=2" \ + LINUX_CLIB="-DGLIBCV=2 $(LINUX_CLIB_IPV6)" \ LSOF_CC="$(TARGET_CC)" \ LSOF_INCLUDE="-I$(STAGING_DIR)/usr/include" \ LSOF_VSTR="$(LINUX_VERSION)" \