2014-11-27 18:00:29 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ifupdown
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-10-11 00:52:14 +02:00
|
|
|
IFUPDOWN_VERSION = 0.8.16
|
2014-11-27 18:00:29 +01:00
|
|
|
IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz
|
2016-10-11 00:52:14 +02:00
|
|
|
IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160922T165503Z/pool/main/i/ifupdown
|
2017-03-30 15:43:32 +02:00
|
|
|
IFUPDOWN_LICENSE = GPL-2.0+
|
2014-11-27 18:00:29 +01:00
|
|
|
IFUPDOWN_LICENSE_FILES = COPYING
|
2020-12-04 16:46:01 +01:00
|
|
|
IFUPDOWN_CPE_ID_VENDOR = debian
|
2014-11-27 18:00:29 +01:00
|
|
|
|
|
|
|
define IFUPDOWN_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2015-12-20 22:03:25 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -D'IFUPDOWN_VERSION=\"$(IFUPDOWN_VERSION)\"'" \
|
2014-11-27 18:00:29 +01:00
|
|
|
-C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
# install doesn't overwrite
|
|
|
|
define IFUPDOWN_INSTALL_TARGET_CMDS
|
|
|
|
$(RM) $(TARGET_DIR)/sbin/{ifdown,ifquery}
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
2016-01-21 19:45:15 +01:00
|
|
|
# We need to switch from /bin/ip to /sbin/ip
|
|
|
|
IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta
|
|
|
|
define IFUPDOWN_MAKE_IP_IN_SBIN
|
|
|
|
for f in $(IFUPDOWN_DEFN_FILES) ; do \
|
|
|
|
$(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN
|
|
|
|
|
2014-11-27 18:00:29 +01:00
|
|
|
$(eval $(generic-package))
|