1
0

Makefile 2.1 KB

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