Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= kismet
  5. PKG_VERSION:= 2008-05-R1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6ee365d36354b4dee4945e67f8149294
  8. PKG_SITES:= http://www.kismetwireless.net/code/
  9. include ${TOPDIR}/mk/package.mk
  10. $(eval $(call PKG_template,KISMET,kismet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  11. $(eval $(call PKG_template,KISMET_CLIENT,kismet-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  12. $(eval $(call PKG_template,KISMET_DRONE,kismet-drone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. $(eval $(call PKG_template,KISMET_SERVER,kismet-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. ifeq ($(ADK_COMPILE_KISMET_WITH_UCLIBCXX),y)
  15. TCFLAGS+= -fno-builtin -fno-rtti -nostdinc++ -I${STAGING_DIR}/usr/include/uClibc++
  16. TLDFLAGS+= -luClibc++ -lc -lm -lgcc_s -nodefaultlibs
  17. CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ \
  18. -I${STAGING_DIR}/usr/include/uClibc++"
  19. else
  20. TLDFLAGS+= -shared
  21. endif
  22. CONFIGURE_STYLE= gnu
  23. CONFIGURE_ARGS+= --sysconfdir=/etc/kismet \
  24. --enable-syspcap=yes \
  25. --disable-setuid \
  26. --disable-gpsmap
  27. BUILD_STYLE= auto
  28. do-install:
  29. ${INSTALL_DIR} ${IDIR_KISMET}/usr/bin/
  30. ${INSTALL_BIN} ${WRKBUILD}/kismet ${IDIR_KISMET}/usr/bin/kismet
  31. ${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/usr/bin
  32. ${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/etc/kismet/
  33. ${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
  34. ${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
  35. ${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
  36. ${INSTALL_DATA} ./files/kismet_ui.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
  37. ${CP} ${WRKBUILD}/kismet_client ${IDIR_KISMET_CLIENT}/usr/bin/
  38. ${INSTALL_DIR} ${IDIR_KISMET_DRONE}/usr/bin
  39. ${INSTALL_DIR} ${IDIR_KISMET_DRONE}/etc/kismet/
  40. ${INSTALL_DATA} ./files/kismet_drone.conf ${IDIR_KISMET_DRONE}/etc/kismet/
  41. ${CP} ${WRKBUILD}/kismet_drone ${IDIR_KISMET_DRONE}/usr/bin/
  42. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/usr/bin
  43. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/etc/kismet/
  44. ${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
  45. ${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
  46. ${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_SERVER}/etc/kismet/
  47. ${CP} ${WRKBUILD}/kismet_server ${IDIR_KISMET_SERVER}/usr/bin/
  48. include ${TOPDIR}/mk/pkg-bottom.mk