lsof: respect IPv6 settings
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
This commit is contained in:
parent
4b7237a8aa
commit
72322f24ae
1 changed files with 8 additions and 2 deletions
|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=lsof
|
PKG_NAME:=lsof
|
||||||
PKG_VERSION:=4.86
|
PKG_VERSION:=4.86
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)+dfsg.orig.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)+dfsg.orig.tar.gz
|
||||||
PKG_SOURCE_URL:=http://ftp2.de.debian.org/debian/pool/main/l/lsof
|
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/
|
URL:=http://people.freebsd.org/~abe/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_IPV6),y)
|
||||||
|
LINUX_CLIB_IPV6="-DHASIPv6"
|
||||||
|
else
|
||||||
|
LINUX_CLIB_IPV6=
|
||||||
|
endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
cd $(PKG_BUILD_DIR); \
|
cd $(PKG_BUILD_DIR); \
|
||||||
LINUX_CLIB="-DGLIBCV=2" \
|
LINUX_CLIB="-DGLIBCV=2 $(LINUX_CLIB_IPV6)" \
|
||||||
LSOF_CC="$(TARGET_CC)" \
|
LSOF_CC="$(TARGET_CC)" \
|
||||||
LSOF_INCLUDE="-I$(STAGING_DIR)/usr/include" \
|
LSOF_INCLUDE="-I$(STAGING_DIR)/usr/include" \
|
||||||
LSOF_VSTR="$(LINUX_VERSION)" \
|
LSOF_VSTR="$(LINUX_VERSION)" \
|
||||||
|
|
Loading…
Reference in a new issue