ruby: bump version to 2.4.1
[buildroot-gz.git] / package / ifupdown / ifupdown.mk
blobad0e513f936cc914bedd453983d2a327229b6afd
1 ################################################################################
3 # ifupdown
5 ################################################################################
7 IFUPDOWN_VERSION = 0.8.16
8 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz
9 IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160922T165503Z/pool/main/i/ifupdown
10 IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
11 IFUPDOWN_LICENSE = GPLv2+
12 IFUPDOWN_LICENSE_FILES = COPYING
14 define IFUPDOWN_BUILD_CMDS
15 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
16 CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -D'IFUPDOWN_VERSION=\"$(IFUPDOWN_VERSION)\"'" \
17 -C $(@D)
18 endef
20 # install doesn't overwrite
21 define IFUPDOWN_INSTALL_TARGET_CMDS
22 $(RM) $(TARGET_DIR)/sbin/{ifdown,ifquery}
23 $(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install
24 endef
26 # We need to switch from /bin/ip to /sbin/ip
27 IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
28 define IFUPDOWN_MAKE_IP_IN_SBIN
29 for f in $(IFUPDOWN_DEFN_FILES) ; do \
30 $(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
31 done
32 endef
33 IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN
35 $(eval $(generic-package))