[packages] iputils: use shared CATEGORY, SECTION & URL fields, mark IPv6 packages as broken since their binaries are never built, use TARGET_CPPFLAGS & TARGET_LDFLAGS instead of -I... & -L...

git-svn-id: svn://svn.openwrt.org/openwrt/packages@22117 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2010-07-10 14:03:05 +00:00
parent 3eec0d06a1
commit 4f2129aeda

View File

@ -21,13 +21,17 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/iputils/Default
define Package/iputils-arping
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
TITLE:=iputils - arping
URL:=http://www.skbuff.net/iputils URL:=http://www.skbuff.net/iputils
DEPENDS:= +libsysfs endef
define Package/iputils-arping
$(call Package/iputils/Default)
TITLE:=iputils - arping
DEPENDS+= +libsysfs
endef endef
define Package/iputils-arping/description define Package/iputils-arping/description
@ -35,11 +39,10 @@ define Package/iputils-arping/description
Sends ARP REQUEST to a neighbour host. Sends ARP REQUEST to a neighbour host.
endef endef
define Package/iputils-clockdiff define Package/iputils-clockdiff
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - clockdiff TITLE:=iputils - clockdiff
URL:=http://www.skbuff.net/iputils
endef endef
define Package/iputils-clockdiff/description define Package/iputils-clockdiff/description
@ -47,11 +50,10 @@ define Package/iputils-clockdiff/description
Measures clock difference between hosts. Measures clock difference between hosts.
endef endef
define Package/iputils-ping define Package/iputils-ping
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - ping TITLE:=iputils - ping
URL:=http://www.skbuff.net/iputils
endef endef
define Package/iputils-ping/description define Package/iputils-ping/description
@ -59,12 +61,11 @@ define Package/iputils-ping/description
Sends ICMP ECHO_REQUEST to network hosts (IPv4). Sends ICMP ECHO_REQUEST to network hosts (IPv4).
endef endef
define Package/iputils-ping6 define Package/iputils-ping6
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - ping6 TITLE:=iputils - ping6
URL:=http://www.skbuff.net/iputils DEPENDS+= @IPV6 @BROKEN
DEPENDS += @IPV6
endef endef
define Package/iputils-ping6/description define Package/iputils-ping6/description
@ -72,11 +73,10 @@ define Package/iputils-ping6/description
Sends ICMP ECHO_REQUEST to network hosts (IPv6). Sends ICMP ECHO_REQUEST to network hosts (IPv6).
endef endef
define Package/iputils-tftpd define Package/iputils-tftpd
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - tftpd TITLE:=iputils - tftpd
URL:=http://www.skbuff.net/iputils
endef endef
define Package/iputils-tftpd/description define Package/iputils-tftpd/description
@ -84,11 +84,10 @@ define Package/iputils-tftpd/description
Trivial File Transfer Protocol server. Trivial File Transfer Protocol server.
endef endef
define Package/iputils-tracepath define Package/iputils-tracepath
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - tracepath TITLE:=iputils - tracepath
URL:=http://www.skbuff.net/iputils
endef endef
define Package/iputils-tracepath/description define Package/iputils-tracepath/description
@ -96,12 +95,11 @@ define Package/iputils-tracepath/description
Traces path to a network host discovering MTU along this path (IPv4). Traces path to a network host discovering MTU along this path (IPv4).
endef endef
define Package/iputils-tracepath6 define Package/iputils-tracepath6
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - tracepath6 TITLE:=iputils - tracepath6
URL:=http://www.skbuff.net/iputils DEPENDS+= @IPV6 @BROKEN
DEPENDS += @IPV6
endef endef
define Package/iputils-tracepath6/description define Package/iputils-tracepath6/description
@ -109,12 +107,11 @@ define Package/iputils-tracepath6/description
Traces path to a network host discovering MTU along this path (IPv6). Traces path to a network host discovering MTU along this path (IPv6).
endef endef
define Package/iputils-traceroute6 define Package/iputils-traceroute6
SECTION:=net $(call Package/iputils/Default)
CATEGORY:=Network
TITLE:=iputils - traceroute6 TITLE:=iputils - traceroute6
URL:=http://www.skbuff.net/iputils DEPENDS+= @IPV6 @BROKEN
DEPENDS += @IPV6
endef endef
define Package/iputils-traceroute6/description define Package/iputils-traceroute6/description
@ -122,8 +119,9 @@ define Package/iputils-traceroute6/description
Traces path to a network host (IPv6). Traces path to a network host (IPv6).
endef endef
MAKE_FLAGS += \ MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib" CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
define Package/iputils-arping/install define Package/iputils-arping/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin