update feeds & readd libpciaccess&librouteros
This commit is contained in:
parent
064040e4af
commit
3e85f1ffda
@ -1,4 +1,4 @@
|
||||
src-git luci https://github.com/coolsnowwolf/luci
|
||||
src-git packages https://github.com/coolsnowwolf/packages
|
||||
src-git luci https://github.com/project-openwrt/luci
|
||||
src-git packages https://github.com/project-openwrt/packages
|
||||
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-18.06
|
||||
#src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06
|
||||
#src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06
|
||||
|
||||
58
package/zxlhhyccc/libpciaccess/Makefile
Normal file
58
package/zxlhhyccc/libpciaccess/Makefile
Normal file
@ -0,0 +1,58 @@
|
||||
# Copyright (C) 2019 Lucian Cristian <lucian.cristian@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libpciaccess
|
||||
PKG_VERSION:=0.14
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=https://www.x.org/releases/individual/lib/
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_HASH:=3df543e12afd41fea8eac817e48cbfde5aed8817b81670a4e9e493bb2f5bf2a4
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libpciaccess
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Generic PCI access library
|
||||
URL:=https://xorg.freedesktop.org/
|
||||
endef
|
||||
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--prefix=/usr
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/include \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
||||
$(1)/usr/include/
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libpciaccess/install
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libpciaccess))
|
||||
@ -0,0 +1,28 @@
|
||||
From b6df5202306bd71158b482f25ca2e6919645d4dd Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 4 Jun 2015 20:55:06 -0700
|
||||
Subject: [PATCH 4/4] Don't include sys/io.h on arm
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
src/linux_sysfs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
|
||||
index 3f95e53..1e3aad3 100644
|
||||
--- a/src/linux_sysfs.c
|
||||
+++ b/src/linux_sysfs.c
|
||||
@@ -50,7 +50,7 @@
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
|
||||
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
|
||||
+#if defined(__i386__) || defined(__x86_64__)
|
||||
#include <sys/io.h>
|
||||
#else
|
||||
#define inb(x) -1
|
||||
--
|
||||
2.1.4
|
||||
|
||||
54
package/zxlhhyccc/librouteros/Makefile
Normal file
54
package/zxlhhyccc/librouteros/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=librouteros
|
||||
PKG_SOURCE_DATE:=2018-07-19
|
||||
PKG_SOURCE_VERSION:=c485c777ffbbbd87c3d72d843af36ba016803cae
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Sven Roederer <devel-sven@geroedel.de>
|
||||
PKG_LICENSE:=ISC
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/octo/librouteros/tar.gz/$(PKG_SOURCE_VERSION)?
|
||||
PKG_HASH:=427e071fe270ff6c08e32a10e5beff2add4205e6c864b142f950efdb8d2245a4
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/librouteros
|
||||
TITLE:=A library that talks to MikroTik devices.
|
||||
URL:=https://octo.github.io/librouteros/
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
endef
|
||||
|
||||
define Package/librouteros/description
|
||||
librouteros is a library to communicate with RouterOS, the operating system of MikroTik's RouterBoards.
|
||||
It uses the API port provided by those systems to connect and talk to the devices. librouteros is a
|
||||
low-level library in that it abstracts the network protocol used but has next to no knowledge about the
|
||||
commands and responses available
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/routeros_*.h $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.{a,la,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/librouteros/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librouteros.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,librouteros))
|
||||
Loading…
Reference in New Issue
Block a user