DEVELOPERS: add Yegor Yefremov for the ser2net package
[buildroot-gz.git] / package / dhcpdump / dhcpdump.mk
blob3584f4f22da2b1879ba4062ddf65cee383a05d69
1 ################################################################################
3 # dhcpdump
5 ################################################################################
7 DHCPDUMP_VERSION = 1.8
8 DHCPDUMP_SITE = http://www.mavetju.org/download
9 DHCPDUMP_DEPENDENCIES = libpcap
10 DHCPDUMP_LICENSE = BSD-2c
11 DHCPDUMP_LICENSE_FILES = LICENSE
13 DHCPDUMP_LIBS = -lpcap
14 ifeq ($(BR2_STATIC_LIBS),y)
15 DHCPDUMP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
16 endif
18 define DHCPDUMP_BUILD_CMDS
19 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS) \
20 -D_GNU_SOURCE" LIBS="$(DHCPDUMP_LIBS)"
21 endef
23 define DHCPDUMP_INSTALL_TARGET_CMDS
24 $(INSTALL) -m 0755 -D $(@D)/dhcpdump $(TARGET_DIR)/usr/bin/dhcpdump
25 endef
27 $(eval $(generic-package))