You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2021 David Bauer <mail@david-bauer.net>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=clocate
  9. PKG_SOURCE_DATE:=2021-07-07
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/blocktrron/clocate.git
  13. PKG_SOURCE_VERSION:=ef531687c16bab959f61dff3755148ac9a0c1464
  14. PKG_MIRROR_HASH:=1fde4052113a52c018476062a5fad656673b89be95a469fed2d35649a7f1bce3
  15. PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
  16. PKG_LICENSE:=GPL-2.0-only
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/clocate
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:=+libcurl +libnl-tiny +libjson-c
  22. TITLE:=Determine device location using neighbouring WiFi networks
  23. endef
  24. define Package/clocate/description
  25. This program can locate a device by sending the nighbouring WiFI networks
  26. to a geolocation Provider. Currently supported providers are Mozilla and Google.
  27. endef
  28. define Package/clocate/install
  29. $(INSTALL_DIR) $(1)/sbin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/clocate $(1)/sbin/clocate
  31. endef
  32. MAKE_FLAGS += LIBNL_TINY=1
  33. $(eval $(call BuildPackage,clocate))