The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / net-tools / net-tools.mk
1 ################################################################################
2 #
3 # net-tools
4 #
5 ################################################################################
6
7 NET_TOOLS_VERSION = 3eb367aedf1280f35105ede465c350a39b55fa91
8 NET_TOOLS_SITE = git://git.code.sf.net/p/net-tools/code
9 NET_TOOLS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
10 NET_TOOLS_LDFLAGS = $(TARGET_LDFLAGS) \
11         $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)
12 NET_TOOLS_LICENSE = GPLv2+
13 NET_TOOLS_LICENSE_FILES = COPYING
14
15 # Install after busybox for the full-blown versions
16 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
17 NET_TOOLS_DEPENDENCIES += busybox
18 endif
19
20 define NET_TOOLS_CONFIGURE_CMDS
21         (cd $(@D); yes "" | ./configure.sh config.in )
22 endef
23
24 # Enable I18N when appropiate
25 ifeq ($(BR2_ENABLE_LOCALE),y)
26 define NET_TOOLS_ENABLE_I18N
27         $(SED) 's:I18N 0:I18N 1:' $(@D)/config.h
28 endef
29 endif
30
31 # Enable IPv6
32 define NET_TOOLS_ENABLE_IPV6
33         $(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h
34 endef
35
36 NET_TOOLS_POST_CONFIGURE_HOOKS += NET_TOOLS_ENABLE_I18N NET_TOOLS_ENABLE_IPV6
37
38 define NET_TOOLS_BUILD_CMDS
39         $(TARGET_MAKE_ENV) AR="$(TARGET_AR)" CC="$(TARGET_CC)" \
40                 LDFLAGS="$(NET_TOOLS_LDFLAGS)" $(MAKE) -C $(@D)
41 endef
42
43 # install renames conflicting binaries, update does not
44 # ifconfig & route reside in /sbin for busybox
45 define NET_TOOLS_INSTALL_TARGET_CMDS
46         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) update
47         mv -f $(TARGET_DIR)/bin/ifconfig $(TARGET_DIR)/sbin/ifconfig
48         mv -f $(TARGET_DIR)/bin/route $(TARGET_DIR)/sbin/route
49 endef
50
51 $(eval $(generic-package))