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