2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-05-17 20:22:29 +02:00
|
|
|
#
|
|
|
|
# dhcpdump
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-05-17 20:22:29 +02:00
|
|
|
|
|
|
|
DHCPDUMP_VERSION = 1.8
|
2013-12-11 14:23:47 +01:00
|
|
|
DHCPDUMP_SITE = http://www.mavetju.org/download/
|
2011-05-17 20:22:29 +02:00
|
|
|
DHCPDUMP_DEPENDENCIES = libpcap
|
2013-12-11 14:23:47 +01:00
|
|
|
DHCPDUMP_LICENSE = BSD-2c
|
|
|
|
DHCPDUMP_LICENSE_FILES = LICENSE
|
2011-05-17 20:22:29 +02:00
|
|
|
|
2014-04-23 21:59:59 +02:00
|
|
|
DHCPDUMP_LIBS = -lpcap
|
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
DHCPDUMP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
|
|
|
|
endif
|
|
|
|
|
2011-05-17 20:22:29 +02:00
|
|
|
define DHCPDUMP_BUILD_CMDS
|
2014-04-23 21:59:59 +02:00
|
|
|
$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" LIBS="$(DHCPDUMP_LIBS)"
|
2011-05-17 20:22:29 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DHCPDUMP_INSTALL_TARGET_CMDS
|
2014-06-01 14:38:01 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/dhcpdump $(TARGET_DIR)/usr/bin/dhcpdump
|
2011-05-17 20:22:29 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|