diff --git a/feeds.conf.default b/feeds.conf.default index 336d7e0446..699218d972 100755 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -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 \ No newline at end of file +#src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06 diff --git a/package/zxlhhyccc/libpciaccess/Makefile b/package/zxlhhyccc/libpciaccess/Makefile new file mode 100644 index 0000000000..df351e90e6 --- /dev/null +++ b/package/zxlhhyccc/libpciaccess/Makefile @@ -0,0 +1,58 @@ +# Copyright (C) 2019 Lucian Cristian +# +# 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 + +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)) diff --git a/package/zxlhhyccc/libpciaccess/patches/0004-Don-t-include-sys-io.h-on-arm.patch b/package/zxlhhyccc/libpciaccess/patches/0004-Don-t-include-sys-io.h-on-arm.patch new file mode 100644 index 0000000000..f532858244 --- /dev/null +++ b/package/zxlhhyccc/libpciaccess/patches/0004-Don-t-include-sys-io.h-on-arm.patch @@ -0,0 +1,28 @@ +From b6df5202306bd71158b482f25ca2e6919645d4dd Mon Sep 17 00:00:00 2001 +From: Khem Raj +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 +--- +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 + #include + +-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) ++#if defined(__i386__) || defined(__x86_64__) + #include + #else + #define inb(x) -1 +-- +2.1.4 + diff --git a/package/zxlhhyccc/librouteros/Makefile b/package/zxlhhyccc/librouteros/Makefile new file mode 100644 index 0000000000..2908de0774 --- /dev/null +++ b/package/zxlhhyccc/librouteros/Makefile @@ -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 +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))