Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= arpd
  5. PKG_VERSION:= 0.2
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 21d55de1506b3dbbfddb1b57e782a5fbf7140d299fbb08f4a8e48daaaa8489e7
  8. PKG_DESCR:= generates arp responses for ip address ranges
  9. PKG_SECTION:= net/route
  10. PKG_DEPENDS:= libpcap libdnet libevent
  11. PKG_BUILDDEP:= libpcap libdnet libevent
  12. PKG_URL:= http://niels.xtdnet.nl/honeyd/
  13. PKG_SITES:= http://niels.xtdnet.nl/honeyd/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. WRKDIST= ${WRKDIR}/${PKG_NAME}
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,ARPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ARGS+= --with-libdnet=${STAGING_TARGET_DIR}/usr \
  19. --with-libevent=${STAGING_TARGET_DIR}/usr \
  20. --with-libpcap=${STAGING_TARGET_DIR}/usr
  21. MAKE_FLAGS+= CFLAGS="${TARGET_CFLAGS}" \
  22. INCLS="-I. ${TARGET_CPPFLAGS}" \
  23. LIBS="-lpcap -ldnet -levent"
  24. post-install:
  25. ${INSTALL_DIR} ${IDIR_ARPD}/usr/sbin
  26. ${INSTALL_BIN} ${WRKBUILD}/arpd ${IDIR_ARPD}/usr/sbin/
  27. include ${ADK_TOPDIR}/mk/pkg-bottom.mk