[Buildroot] [PATCH 1/1] odhcploc: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Aug 17 19:34:15 UTC 2014


Dear Floris Bos,

On Sat,  9 Aug 2014 20:06:57 +0200, Floris Bos wrote:
> Adds odhcploc, a network utility to scan for (rogue) DHCP servers.
> 
> Signed-off-by: Floris Bos <bos at je-eigen-domein.nl>

Thanks, I've applied the patch to the next branch, after doing a few
changes, see below.

> +ODHCPLOC_VERSION = 20111021
> +ODHCPLOC_SOURCE = odhcploc-$(ODHCPLOC_VERSION).tar.gz

Line removed, after the suggestion from Thomas DS.

> +ODHCPLOC_SITE = http://downloads.sourceforge.net/project/odhcploc/$(ODHCPLOC_VERSION)
> +ODHCPLOC_LICENSE = ISC
> +ODHCPLOC_LICENSE_FILES = COPYING
> +
> +define ODHCPLOC_BUILD_CMDS
> +     $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

Used tab for indentation instead of spaces, and replaced CC=.. LD=.. by
$(TARGET_CONFIGURE_OPTS).

> +define ODHCPLOC_INSTALL_TARGET_CMDS
> +     $(INSTALL) -D -m 0755 $(@D)/odhcploc $(TARGET_DIR)/usr/bin/odhcploc

Used 'make install' instead of manually doing the installation.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list