Commit a71b8df5 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Thomas Petazzoni
Browse files
parent 3a005f10
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,9 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
	source "package/ifplugd/Config.in"
endif
	source "package/iftop/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
	source "package/ifupdown/Config.in"
endif
	source "package/igh-ethercat/Config.in"
	source "package/igmpproxy/Config.in"
	source "package/inadyn/Config.in"
+17 −0
Original line number Diff line number Diff line
Drop the need for dpkg-architecture, we only build for linux.
Thanks to Károly Kasza for catching this one.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

diff -Nura ifupdown.orig/defn2c.pl ifupdown/defn2c.pl
--- ifupdown.orig/defn2c.pl	2014-11-18 16:39:28.878772655 -0300
+++ ifupdown/defn2c.pl	2014-11-18 16:43:41.120456676 -0300
@@ -2,7 +2,7 @@
 
 use strict;
 
-my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
+my $DEB_HOST_ARCH_OS = "linux";
 
 $DEB_HOST_ARCH_OS =~ s/\n//;
 
+17 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_IFUPDOWN
	bool "ifupdown"
	depends on BR2_USE_MMU # fork()
	# Default/our uclibc lacks wordexp()
	depends on !BR2_TOOLCHAIN_USES_UCLIBC
	# runtime for ip binary
	select BR2_PACKAGE_IPROUTE2 if !BR2_PACKAGE_BUSYBOX
	# runtime for run-parts
	select BR2_PACKAGE_DEBIANUTILS if !BR2_PACKAGE_BUSYBOX
	help
	  High level tools to configure network interfaces.

	  https://tracker.debian.org/pkg/ifupdown

comment "ifupdown needs an (e)glibc or musl toolchain"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_USES_UCLIBC
+2 −0
Original line number Diff line number Diff line
# From http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_0.7.49.dsc
sha256	5d07c73610ff90393c7273e2af9003eeb1825fc88144ae5ed11a5517547d0f58	ifupdown_0.7.49.tar.xz
+26 −0
Original line number Diff line number Diff line
################################################################################
#
# ifupdown
#
################################################################################

IFUPDOWN_VERSION = 0.7.49
IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz
IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20140923T221921Z/pool/main/i/ifupdown
IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
IFUPDOWN_LICENSE = GPLv2+
IFUPDOWN_LICENSE_FILES = COPYING

define IFUPDOWN_BUILD_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
		CFLAGS="$(TARGET_CFLAGS) -D'IFUPDOWN_VERSION=\"$(IFUPDOWN_VERSION)\"'" \
		-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

$(eval $(generic-package))