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.

54 lines
1.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=librouteros
  7. PKG_SOURCE_DATE:=2018-07-19
  8. PKG_SOURCE_VERSION:=c485c777ffbbbd87c3d72d843af36ba016803cae
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Sven Roederer <devel-sven@geroedel.de>
  11. PKG_LICENSE:=ISC
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/octo/librouteros/tar.gz/$(PKG_SOURCE_VERSION)?
  15. PKG_HASH:=427e071fe270ff6c08e32a10e5beff2add4205e6c864b142f950efdb8d2245a4
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/librouteros
  22. TITLE:=A library that talks to MikroTik devices.
  23. URL:=https://octo.github.io/librouteros/
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. endef
  27. define Package/librouteros/description
  28. librouteros is a library to communicate with RouterOS, the operating system of MikroTik's RouterBoards.
  29. It uses the API port provided by those systems to connect and talk to the devices. librouteros is a
  30. low-level library in that it abstracts the network protocol used but has next to no knowledge about the
  31. commands and responses available
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/routeros_*.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.{a,la,so*} $(1)/usr/lib/
  38. endef
  39. define Package/librouteros/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,librouteros))