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. ifeq ($(ADK_COMPILE_KISMET_WITH_UCLIBCXX),y)
  17. TCFLAGS+= -fno-builtin -fno-rtti -nostdinc++ -I${STAGING_DIR}/usr/include/uClibc++
  18. TLDFLAGS+= -luClibc++ -lc -lm -lgcc_s -nodefaultlibs
  19. CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ \
  20. -I${STAGING_DIR}/usr/include/uClibc++"
  21. else
  22. TLDFLAGS+= -shared
  23. endif
  24. CONFIGURE_STYLE= gnu
  25. CONFIGURE_ARGS+= --sysconfdir=/etc/kismet \
  26. --enable-syspcap=yes \
  27. --disable-setuid \
  28. --disable-gpsmap
  29. BUILD_STYLE= auto
  30. do-install:
  31. ${INSTALL_DIR} ${IDIR_KISMET}/usr/bin/
  32. ${INSTALL_BIN} ${WRKBUILD}/kismet ${IDIR_KISMET}/usr/bin/kismet
  33. ${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/usr/bin
  34. ${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/etc/kismet/
  35. ${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
  36. ${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
  37. ${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
  38. ${INSTALL_DATA} ./files/kismet_ui.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
  39. ${CP} ${WRKBUILD}/kismet_client ${IDIR_KISMET_CLIENT}/usr/bin/
  40. ${INSTALL_DIR} ${IDIR_KISMET_DRONE}/usr/bin
  41. ${INSTALL_DIR} ${IDIR_KISMET_DRONE}/etc/kismet/
  42. ${INSTALL_DATA} ./files/kismet_drone.conf ${IDIR_KISMET_DRONE}/etc/kismet/
  43. ${CP} ${WRKBUILD}/kismet_drone ${IDIR_KISMET_DRONE}/usr/bin/
  44. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/usr/bin
  45. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/etc/kismet/
  46. ${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
  47. ${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
  48. ${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_SERVER}/etc/kismet/
  49. ${CP} ${WRKBUILD}/kismet_server ${IDIR_KISMET_SERVER}/usr/bin/
  50. include ${TOPDIR}/mk/pkg-bottom.mk