Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:= kismet
  5. PKG_VERSION:= 2013-03-R1b
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 636d4d7ef8c67ae6ee8d8e1635f5115700eecb9fa4c208afaee30238db527c2c
  8. PKG_DESCR:= wireless network detector, sniffer, and intrusion detection system
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= libpcap libncurses libpthread
  11. PKG_BUILDDEP:= libpcap ncurses
  12. PKG_URL:= http://www.kismetwireless.net/
  13. PKG_SITES:= http://www.kismetwireless.net/code/
  14. PKG_SUBPKGS:= KISMET KISMET_CLIENT KISMET_DRONE KISMET_SERVER
  15. PKGSD_KISMET_CLIENT:= kismet client
  16. PKGSD_KISMET_SERVER:= kismet server
  17. PKGSD_KISMET_DRONE:= kismet drone
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,KISMET,kismet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,KISMET_CLIENT,kismet-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_KISMET_CLIENT},${PKG_SECTION}))
  21. $(eval $(call PKG_template,KISMET_DRONE,kismet-drone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_KISMET_DRONE},${PKG_SECTION}))
  22. $(eval $(call PKG_template,KISMET_SERVER,kismet-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_KISMET_SERVER},${PKG_SECTION}))
  23. AUTOTOOL_STYLE:= autoreconf
  24. TARGET_LDFLAGS+= -lpthread -ltinfo
  25. CONFIGURE_ARGS+= --sysconfdir=/etc/kismet
  26. pre-build:
  27. (cd ${WRKBUILD} && ${MAKE} dep);
  28. kismet-install:
  29. ${INSTALL_DIR} ${IDIR_KISMET}/usr/bin/
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/kismet ${IDIR_KISMET}/usr/bin/kismet
  31. kismet-client-install:
  32. ${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_client \
  34. ${IDIR_KISMET_CLIENT}/usr/bin/
  35. kismet-drone-install:
  36. ${INSTALL_DIR} ${IDIR_KISMET_DRONE}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_drone \
  38. ${IDIR_KISMET_DRONE}/usr/bin/
  39. kismet-server-install:
  40. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/usr/bin
  41. ${INSTALL_DIR} ${IDIR_KISMET_SERVER}/etc/kismet
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_server \
  43. ${IDIR_KISMET_SERVER}/usr/bin/
  44. ${INSTALL_DATA} ${WRKINST}/etc/kismet/kismet.conf \
  45. ${IDIR_KISMET_SERVER}/etc/kismet
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk