Makefile 2.5 KB

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