1 ################################################################################
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)\"'" \
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
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
; \
33 IFUPDOWN_POST_PATCH_HOOKS
+= IFUPDOWN_MAKE_IP_IN_SBIN
35 $(eval
$(generic-package
))