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-11-09
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/blocktrron/clocate.git
  13. PKG_SOURCE_VERSION:=4a4c0c0cb53fc3df2891d649eb457efdee843572
  14. PKG_MIRROR_HASH:=8eef756ea5e951097eea53feb243a317612f88c2628c9417f4b28a28a3b4686c
  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))