3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=e2911fa9de1b92ef50deda1489ae944d
10 PKG_SOURCE_URL
:=http
://niels.xtdnet.nl
/honeyd
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,ARPD
,arpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(PKG_BUILD_DIR
)/.configured
:
20 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
21 $(TARGET_CONFIGURE_OPTS
) \
22 CFLAGS
="$(TARGET_CFLAGS)" \
23 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
24 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
47 --with-libdnet
=$(STAGING_DIR
)/usr \
48 --with-libevent
=$(STAGING_DIR
)/usr \
49 --with-libpcap
=$(STAGING_DIR
)/usr \
53 $(PKG_BUILD_DIR
)/.built
:
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 CCOPT
="$(TARGET_CFLAGS)" \
56 INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
57 LIBS
="-L$(STAGING_DIR)/usr/lib -lpcap -ldnet -levent"
61 mkdir
-p
$(IDIR_ARPD
)/usr
/sbin
62 cp
$(PKG_BUILD_DIR
)/arpd
$(IDIR_ARPD
)/usr
/sbin
/
63 $(STRIP
) $(IDIR_ARPD
)/usr
/sbin
/*
64 $(IPKG_BUILD
) $(IDIR_ARPD
) $(PACKAGE_DIR
)