license info - revert r43155
[openwrt/staging/dedeckeh.git] / package / network / utils / iputils / Makefile
index ff7505b60760eb13260e6ad1a246f354620a41c6..1dc993cb8131013e97edcc2e253e88fcf70f616c 100644 (file)
@@ -16,6 +16,7 @@ PKG_SOURCE_URL:=http://www.skbuff.net/iputils
 PKG_MD5SUM:=a36c25e9ec17e48be514dc0485e7376c
 
 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
+PKG_LICENSE:=GPL-2.0+
 
 PKG_BUILD_DEPENDS:=sysfsutils
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
@@ -67,7 +68,7 @@ endef
 define Package/iputils-ping6
 $(call Package/iputils/Default)
   TITLE:=iputils - ping6
-  DEPENDS+= @IPV6
+  DEPENDS+= @IPV6 +USE_EGLIBC:libopenssl
 endef
 
 define Package/iputils-ping6/description
@@ -121,14 +122,14 @@ define Package/iputils-traceroute6/description
   Traces path to a network host (IPv6).
 endef
 
-ifeq ($(BOARD),brcm47xx)
-  TARGET_CFLAGS += -O2 
+ifdef CONFIG_USE_MUSL
+  TARGET_CFLAGS += -D__UCLIBC__
 endif
 
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
        CONFIG_IPV6="$(CONFIG_IPV6)" \
-       CONFIG_USE_UCLIBC="$(CONFIG_USE_UCLIBC)" \
+       CONFIG_USE_UCLIBC="$(CONFIG_USE_UCLIBC)$(CONFIG_USE_MUSL)" \
 
 define Package/iputils-arping/install
        $(INSTALL_DIR) $(1)/usr/bin