From 78a25c1d1ef80ab4c2daa9565eb17e4ed3169517 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Sat, 26 Dec 2020 19:38:19 +0800 Subject: [PATCH] treewide: remove packages which already in feeds --- package/ctcgfw/port-mirroring/Makefile | 108 --------------- package/ctcgfw/spdlog/Makefile | 65 --------- package/lean/coremark/Makefile | 72 ---------- package/lean/libidn2/Makefile | 93 ------------- package/lean/libtorrent-rasterbar/Makefile | 74 ---------- package/zxlhhyccc/libpciaccess/Makefile | 58 -------- .../0004-Don-t-include-sys-io.h-on-arm.patch | 28 ---- package/zxlhhyccc/librouteros/Makefile | 54 -------- package/zxlhhyccc/tvheadend/Config.in | 17 --- package/zxlhhyccc/tvheadend/Makefile | 131 ------------------ .../tvheadend/files/tvheadend.config | 13 -- .../zxlhhyccc/tvheadend/files/tvheadend.init | 71 ---------- 12 files changed, 784 deletions(-) delete mode 100644 package/ctcgfw/port-mirroring/Makefile delete mode 100644 package/ctcgfw/spdlog/Makefile delete mode 100644 package/lean/coremark/Makefile delete mode 100644 package/lean/libidn2/Makefile delete mode 100644 package/lean/libtorrent-rasterbar/Makefile delete mode 100644 package/zxlhhyccc/libpciaccess/Makefile delete mode 100644 package/zxlhhyccc/libpciaccess/patches/0004-Don-t-include-sys-io.h-on-arm.patch delete mode 100644 package/zxlhhyccc/librouteros/Makefile delete mode 100644 package/zxlhhyccc/tvheadend/Config.in delete mode 100644 package/zxlhhyccc/tvheadend/Makefile delete mode 100644 package/zxlhhyccc/tvheadend/files/tvheadend.config delete mode 100755 package/zxlhhyccc/tvheadend/files/tvheadend.init diff --git a/package/ctcgfw/port-mirroring/Makefile b/package/ctcgfw/port-mirroring/Makefile deleted file mode 100644 index dbfb27d253..0000000000 --- a/package/ctcgfw/port-mirroring/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -# -# @file Makefile -# -# @author Akagi201 -# @date 2015/03/23 -# -# OpenWrt feeds Makefile -# - -############################################## -# OpenWrt Makefile for port-mirroring program -# -# -# Most of the variables used here are defined in -# the include directives below. We just need to -# specify a basic description of the package, -# where to build our program, where to find -# the source files, and where to install the -# compiled program on the router. -# -# Be very careful of spacing in this file. -# Indents should be tabs, not spaces, and -# there should be no trailing whitespace in -# lines that are not commented. -# -############################################## - -include $(TOPDIR)/rules.mk - -# Name and release number of this package -PKG_NAME:=port-mirroring -PKG_VERSION:=1.3 -PKG_RELEASE:=1 - -# This specifies the directory where we're going to build the program. -# The root build directory, $(BUILD_DIR), is by default the build_mipsel -# directory in your OpenWrt SDK directory -#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -#PKG_SOURCE_URL:=http://port-mirroring.googlecode.com/files/ -#PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/Akagi201/port-mirroring.git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=master -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) - -include $(INCLUDE_DIR)/package.mk - -# Specify package information for this program. -# The variables defined here should be self explanatory. -# If you are running Kamikaze, delete the DESCRIPTION -# variable below and uncomment the Kamikaze define -# directive for the description below -define Package/port-mirroring - SECTION:=net - CATEGORY:=Network - DEPENDS:=+libpcap +libpthread - TITLE:=port-mirroring tool - URL:=https://github.com/Akagi201/port-mirroring - MENU:=1 -endef - -define Package/port-mirroring/description - port-mirroring offers port mirror in a software. -endef - -# Specify where and how to install the program. Since we only have one file, -# the port-mirroring, install it by copying it to the /bin directory on -# the router. The $(1) variable represents the root directory on the router running -# OpenWrt. The $(INSTALL_DIR) variable contains a command to prepare the install -# directory if it does not already exist. Likewise $(INSTALL_BIN) contains the -# command to copy the binary file from its current location (in our case the build -# directory) to the install directory. -define Package/port-mirroring/install - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroring $(1)/usr/sbin/ - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) $(PKG_BUILD_DIR)/port-mirroring.conf $(1)/etc/config/port-mirroring - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) $(PKG_BUILD_DIR)/port-mirroringd $(1)/etc/init.d/port_mirroring -endef - -define Package/port-mirroring/postinst -#!/bin/sh -if [ -z "$${IPKG_INSTROOT}" ]; then - echo "Enabling rc.d symlink for port-mirroring" - /etc/init.d/port_mirroring enable -fi -exit 0 -endef - -define Package/port-mirroring/prerm -#!/bin/sh -# check if we are on real system -if [ -z "$${IPKG_INSTROOT}" ]; then - echo "Removing rc.d symlink for port-mirroring" - /etc/init.d/port_mirroring disable -fi -exit 0 -endef - -# This line executes the necessary commands to compile our program. -# The above define directives specify all the information needed, but this -# line calls BuildPackage which in turn actually uses this information to -# build a package. -$(eval $(call BuildPackage,port-mirroring)) diff --git a/package/ctcgfw/spdlog/Makefile b/package/ctcgfw/spdlog/Makefile deleted file mode 100644 index f2bff16610..0000000000 --- a/package/ctcgfw/spdlog/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -#### - # File: /spdlog/Makefile - # Project: ootoc-OpenWRT - # File Created: Thursday, 12th March 2020 11:09:54 pm - # Author: ElonH[EH](elonhhuang@gmail.com) - # License: GNU General Public License v3.0 or later(http://www.gnu.org/licenses/gpl-3.0-standalone.html) - # Copyright (C) 2020 [ElonH] -#### - -include $(TOPDIR)/rules.mk - -PKG_NAME:=spdlog -PKG_VERSION:=1.7.0 -PKG_RELEASE:=1 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/gabime/spdlog.git -PKG_MIRROR_HASH:=777dff5e8755d942159406c82d6e568f4fd5beda6c37a47eaf839222fdcd0e04 -PKG_SOURCE_VERSION:=616caa5d30172b65cc3a06800894c575d70cb8e6 -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz - -PKG_LICENSE:=GPLv3 -PKG_LICENSE_FILES:=LICENSE -PKG_MAINTAINER:=ElonH - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) - -PKG_INSTALL:=1 -PKG_USE_MIPS16:=0 -PKG_BUILD_PARALLEL:=1 - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/cmake.mk - -CMAKE_OPTIONS+= -DSPDLOG_BUILD_EXAMPLE:BOOL=OFF \ - -DSPDLOG_BUILD_TESTS:BOOL=OFF -DSPDLOG_BUILD_SHARED:BOOL=ON \ - -DSPDLOG_FMT_EXTERNAL:BOOL=ON -DSPDLOG_FMT_EXTERNAL_HO:BOOL=OFF - -define Package/spdlog - SECTION:=lib - CATEGORY:=Libraries - URL:=https://github.com/gabime/spdlog - TITLE:=Fast C++ logging library. - DEPENDS:=+libfmt - MENU:=1 -endef - -define Package/spdlog/description - Very fast, header-only/compiled, C++ logging library. -endef - - -define Build/InstallDev - $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/include/spdlog/fmt/bundled - $(CP) $(PKG_BUILD_DIR)/include/spdlog/fmt/bundled $(PKG_INSTALL_DIR)/usr/include/spdlog/fmt - $(Build/InstallDev/cmake) -endef - -define Package/spdlog/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspdlog.so* $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,spdlog)) diff --git a/package/lean/coremark/Makefile b/package/lean/coremark/Makefile deleted file mode 100644 index 7efb2ee003..0000000000 --- a/package/lean/coremark/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2018 Embedded Microprocessor Benchmark Consortium (EEMBC) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -include $(TOPDIR)/rules.mk - -PKG_NAME:=coremark -PKG_RELEASE:=15 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/eembc/coremark.git -PKG_SOURCE_VERSION:=7685fd32bd7919581bfff2881a6dac6320581400 -PKG_SOURCE_DATE:=2020-05-28 - -include $(INCLUDE_DIR)/package.mk - -define Package/coremark - SECTION:=utils - CATEGORY:=Utilities - TITLE:=CoreMark Embedded Microprocessor Benchmark - URL:=https://github.com/eembc/coremark -endef - -define Package/coremark/description - Embedded Microprocessor Benchmark -endef - -DIR_ARCH:=linux - -ifeq ($(CONFIG_ARCH_64BIT),y) - DIR_ARCH:=linux64 -else ifeq ($(CONFIG_64BIT),y) - DIR_ARCH:=linux64 -endif - -TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 -flto - -define Build/Compile - $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/$(DIR_ARCH)/core_portme.mak - mkdir $(PKG_BUILD_DIR)/$(ARCH) - cp -r $(PKG_BUILD_DIR)/$(DIR_ARCH)/* $(PKG_BUILD_DIR)/$(ARCH) - $(MAKE) XCFLAGS="-DMULTITHREAD=16 -DUSE_PTHREAD" -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \ - compile -endef - -define Package/coremark/install - $(INSTALL_DIR) $(1)/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/coremark $(1)/bin/ - $(INSTALL_DIR) $(1)/etc - $(INSTALL_BIN) ./coremark.sh $(1)/etc/ - $(INSTALL_DIR) $(1)/etc/uci-defaults - $(INSTALL_BIN) ./coremark $(1)/etc/uci-defaults/xxx-coremark -endef - -define Package/coremark/postinst -#!/bin/sh -[ -n "$${IPKG_INSTROOT}" ] || sed -i '/coremark/d' /etc/crontabs/root -[ -n "$${IPKG_INSTROOT}" ] || echo "0 4 * * * /etc/coremark.sh" >> /etc/crontabs/root -[ -n "$${IPKG_INSTROOT}" ] || crontab /etc/crontabs/root -endef - -$(eval $(call BuildPackage,coremark)) diff --git a/package/lean/libidn2/Makefile b/package/lean/libidn2/Makefile deleted file mode 100644 index c023b5298d..0000000000 --- a/package/lean/libidn2/Makefile +++ /dev/null @@ -1,93 +0,0 @@ -# -# Copyright (C) 2017-2018 Daniel Engberg -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=libidn2 -PKG_VERSION:=2.0.4 -PKG_RELEASE:=1 -PKG_MAINTAINER:=Kevin Darbyshire-Bryant -PKG_LICENSE:=GPL-2.0-or-later LGPL-3.0-or-later -PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYING.LESSERv3 - -PKG_SOURCE_URL:=@GNU/libidn -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_HASH:=644b6b03b285fb0ace02d241d59483d98bc462729d8bb3608d5cad5532f3d2f0 - -PKG_INSTALL:=1 - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/nls.mk - -define Package/idn2/Default - SECTION:=net - CATEGORY:=Network - URL:=http://www.gnu.org/software/libidn/ -endef - -define Package/idn2/Default/description - Libidn2 is a free software implementation of IDNA2008, - Punycode and TR46 in library form. It contains - functionality to convert internationalized domain - names to and from ASCII Compatible Encoding (ACE), - following the IDNA2008 and TR46 standards. -endef - -define Package/idn2 - $(call Package/idn2/Default) - SUBMENU:=IP Addresses and Names - TITLE:=GNU IDN2 (Internationalized Domain Name) tool - DEPENDS:=+libidn2 -endef - -define Package/idn2/description -$(call Package/idn2/Default/description) - - Command line tool using libidn2 - -endef - -define Package/libidn2 - SECTION:=libs - CATEGORY:=Libraries - DEPENDS:=+libunistring $(ICONV_DEPENDS) $(INTL_DEPENDS) - TITLE:=International domain name library (IDNA2008, Punycode and TR46) - URL:=https://www.gnu.org/software/libidn/#libidn2 -endef - -define Package/libidn2/description -$(call Package/idn2/Default/description) - - Library only package - -endef - -CONFIGURE_ARGS += \ - --disable-rpath \ - --disable-doc - -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/idn2.h $(1)/usr/include - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libidn2.pc $(1)/usr/lib/pkgconfig/ -endef - -define Package/idn2/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ -endef - -define Package/libidn2/install - $(INSTALL_DIR) $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,idn2)) -$(eval $(call BuildPackage,libidn2)) diff --git a/package/lean/libtorrent-rasterbar/Makefile b/package/lean/libtorrent-rasterbar/Makefile deleted file mode 100644 index ff9546747a..0000000000 --- a/package/lean/libtorrent-rasterbar/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -include $(TOPDIR)/rules.mk - -PKG_NAME:=libtorrent-rasterbar -PKG_VERSION:=1.2.10 -PKG_RELEASE=1 - -PKG_SOURCE:=$(PKG_NAME)-libtorrent-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://codeload.github.com/arvidn/libtorrent/tar.gz/libtorrent-$(PKG_VERSION)? -PKG_HASH:=e0fedb583f1e7bdcc0eb80a9df064a1e6fb0b825d8423e64bdb0f7a35879a09e - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(firstword $(subst -, ,$(PKG_NAME)))-libtorrent-$(PKG_VERSION) - -PKG_LICENSE:=BSD -PKG_LICENSE_FILES:=COPYING - -PKG_USE_MIPS16:=0 -PKG_BUILD_PARALLEL:=1 -PKG_INSTALL:=1 - -include $(INCLUDE_DIR)/package.mk - -define Package/libtorrent-rasterbar - SECTION:=libs - CATEGORY:=Libraries - TITLE:=Rasterbar BitTorrent library - URL:=https://www.libtorrent.org/ - DEPENDS:=+libstdcpp +libopenssl +boost +boost-system +boost-chrono +boost-random $(ICONV_DEPENDS) - MAINTAINER:=Arvid Norberg -endef - -define Package/libtorrent-rasterbar/description -Rasterbar libtorrent is a C++ library that aims to be a good alternative to -all the other bittorrent implementations around. It is a library and not a -full featured client, although it comes with a working example client. -endef - -TARGET_CFLAGS += $(if $(CONFIG_SOFT_FLOAT),-DBOOST_NO_FENV_H) -fPIC - -EXTRA_CXXFLAGS += $(if $(CONFIG_GCC_VERSION_4_8),-std=gnu++11,-std=gnu++14) - -TARGET_LDFLAGS += -lstdc++ - -CONFIGURE_ARGS += \ - --disable-debug \ - --disable-rpath \ - --enable-encryption \ - --enable-deprecated-functions \ - --with-gnu-ld \ - --with-openssl=$(STAGING_DIR)/usr \ - --with-boost=$(STAGING_DIR)/usr \ - --with-libiconv \ - --with-libiconv-prefix=$(ICONV_PREFIX) - -define Build/Configure - cd $(PKG_BUILD_DIR) ; \ - sh autotool.sh - $(call Build/Configure/Default) -endef - -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include - $(CP) $(PKG_INSTALL_DIR)/usr/include/libtorrent $(1)/usr/include/ - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent-rasterbar.{a,so*} $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent-rasterbar.pc $(1)/usr/lib/pkgconfig/ -endef - -define Package/libtorrent-rasterbar/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent-rasterbar.so.* $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,libtorrent-rasterbar)) diff --git a/package/zxlhhyccc/libpciaccess/Makefile b/package/zxlhhyccc/libpciaccess/Makefile deleted file mode 100644 index df351e90e6..0000000000 --- a/package/zxlhhyccc/libpciaccess/Makefile +++ /dev/null @@ -1,58 +0,0 @@ -# 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 deleted file mode 100644 index f532858244..0000000000 --- a/package/zxlhhyccc/libpciaccess/patches/0004-Don-t-include-sys-io.h-on-arm.patch +++ /dev/null @@ -1,28 +0,0 @@ -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 deleted file mode 100644 index 2908de0774..0000000000 --- a/package/zxlhhyccc/librouteros/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# -# 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)) diff --git a/package/zxlhhyccc/tvheadend/Config.in b/package/zxlhhyccc/tvheadend/Config.in deleted file mode 100644 index 5bc1a18bc6..0000000000 --- a/package/zxlhhyccc/tvheadend/Config.in +++ /dev/null @@ -1,17 +0,0 @@ -config TVHEADEND_NDMS_CWC_SUPPORT - bool "NewCamd support" - default y - -config TVHEADEND_NDMS_LINUXDVB_SUPPORT - bool "Linux DVB support" - default y - -config TVHEADEND_NDMS_DVBSCAN_SUPPORT - bool "Fetch DVB-scan data" - depends on TVHEADEND_NDMS_LINUXDVB_SUPPORT - default TVHEADEND_NDMS_LINUXDVB_SUPPORT - -config TVHEADEND_NDMS_AVAHI_SUPPORT - bool "Avahi client support" - select PACKAGE_libavahi-client - default n diff --git a/package/zxlhhyccc/tvheadend/Makefile b/package/zxlhhyccc/tvheadend/Makefile deleted file mode 100644 index ccfb4a5925..0000000000 --- a/package/zxlhhyccc/tvheadend/Makefile +++ /dev/null @@ -1,131 +0,0 @@ -# -# Copyright (C) 2015 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=tvheadend -PKG_VERSION:=4.3 -PKG_RELEASE:=1 - -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=d91f71cfbe0016350dbb3853a42ac4b226d8d47b -# This is stable git version... -# PKG_SOURCE_VERSION:=1a0262f5870e4fabd6b9c70a7bf2ebe420bc956e -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/505575853/tvheadend.git -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) - -PKG_LICENSE:=GPL-3.0 -PKG_LICENSE_FILES:=LICENSE.md - -PKG_FIXUP:=autoreconf - -PKG_USE_MIPS16:=0 - -SHORT_GIT_VER:=$(shell echo $(PKG_SOURCE_VERSION) | cut -b -7) - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/nls.mk - -define Package/tvheadend - SECTION:=multimedia - CATEGORY:=Multimedia - TITLE:=Tvheadend is a TV streaming server for Linux - DEPENDS:=+libopenssl +librt +zlib +libpcre +libpcre2 +libdvbcsa +TVHEADEND_AVAHI_SUPPORT:libavahi-client $(ICONV_DEPENDS) - URL:=https://tvheadend.org - MAINTAINER:=Jan Čermák -endef - -define Package/tvheadend/description - Tvheadend is a TV streaming server and recorder for Linux, FreeBSD and Android - supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, SAT>IP and HDHomeRun as input sources. - - Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming. -endef - -define Package/tvheadend/config - menu "Configuration" - depends on PACKAGE_tvheadend - source "$(SOURCE)/Config.in" - endmenu -endef - -ifeq ($(CONFIG_TVHEADEND_CWC_SUPPORT),) - CONFIGURE_ARGS += --disable-cwc -endif - -ifeq ($(CONFIG_TVHEADEND_LINUXDVB_SUPPORT),) - CONFIGURE_ARGS += --disable-linuxdvb -endif - -ifeq ($(CONFIG_TVHEADEND_DVBSCAN_SUPPORT),) - CONFIGURE_ARGS += --disable-dvbscan -endif - -ifeq ($(CONFIG_TVHEADEND_AVAHI_SUPPORT),) - CONFIGURE_ARGS += --disable-avahi -else - CONFIGURE_ARGS += --enable-avahi -endif - -CONFIGURE_ARGS += \ - --arch=$(ARCH) \ - --disable-dbus_1 \ - --disable-libav \ - --enable-bundle \ - --enable-dvben50221 \ - --enable-tvhcsa \ - --enable-dvbcsa \ - --enable-inotify \ - --enable-epoll \ - --enable-trace \ - --nowerror \ - --disable-dvbscan \ - --disable-avahi \ - --disable-hdhomerun_static \ - --disable-pie \ - --disable-imagecache \ - --disable-ffmpeg_static \ - --disable-libx264 \ - --disable-libx264_static \ - --disable-libx265 \ - --disable-libx265_static \ - --disable-libvpx \ - --disable-libvpx_static \ - --disable-libtheora \ - --disable-libtheora_static \ - --disable-libvorbis \ - --disable-libvorbis_static \ - --disable-libfdkaac \ - --disable-libfdkaac_static \ - --disable-nvenc \ - --disable-libmfx_static \ - --disable-timeshift - - -define Build/Prepare - $(call Build/Prepare/Default) - echo 'Tvheadend $(shell echo $(PKG_VERSION)~$(SHORT_GIT_VER)-$(PKG_RELEASE))' \ - > $(PKG_BUILD_DIR)/debian/changelog -endef - -define Package/conffiles -/etc/config/tvheadend -endef - -define Package/tvheadend/install - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/tvheadend.init $(1)/etc/init.d/tvheadend - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) ./files/tvheadend.config $(1)/etc/config/tvheadend - - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/build.linux/tvheadend $(1)/usr/bin/ -endef - -$(eval $(call BuildPackage,tvheadend)) diff --git a/package/zxlhhyccc/tvheadend/files/tvheadend.config b/package/zxlhhyccc/tvheadend/files/tvheadend.config deleted file mode 100644 index 62c139de53..0000000000 --- a/package/zxlhhyccc/tvheadend/files/tvheadend.config +++ /dev/null @@ -1,13 +0,0 @@ -#config tvheadend service -# option nosyslog '0' -# option use_temp_epgdb '0' -# option config_path '/etc/tvheadend' - -config tvheadend server - option ipv6 '1' -# option bindaddr '0.0.0.0' -# option http_port '9981' -# option http_root '/tvheadend' -# option htsp_port '9982' -# option htsp_port2 '9983' -# option xspf '0' diff --git a/package/zxlhhyccc/tvheadend/files/tvheadend.init b/package/zxlhhyccc/tvheadend/files/tvheadend.init deleted file mode 100755 index 07d96a867e..0000000000 --- a/package/zxlhhyccc/tvheadend/files/tvheadend.init +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=99 -STOP=00 - -USE_PROCD=1 -PROG=/usr/bin/tvheadend - -TEMP_CONFIG=/tmp/tvheadend -PERSISTENT_CONFIG=/etc/tvheadend - -execute_first_run() { - "$PROG" -C "$1" -B -C -A >/dev/null 2>&1 -} - -ensure_config_exists() { - local config_path - - config_load tvheadend - config_get config_path service config_path - - if [ -z "$config_path" ]; then - [ -d "$PERSISTENT_CONFIG" ] || execute_first_run "$PERSISTENT_CONFIG" - else - # if the configuration directory is empty, empty config with grant-all ACL is created - [ -d "$config_path" ] && [ "$(ls -A $config_path)" ] || execute_first_run "$config_path" - fi - - # if use_temp_epgdb is enabled (default), most of the config is put to config_path - # (or /etc/config), except for epgdb.v2, which grows quite large and is write-heavy, - # so it's put into volatile tmpfs - # epgdb.v2 is created and symlinked to main config dir upon each start (if it doesn't exist) - config_get_bool use_temp_epgdb service use_temp_epgdb 1 - if [ "$use_temp_epgdb" == "1" ]; then - TEMP_EPG="${TEMP_CONFIG}/epgdb.v2" - [ ! -f "$TEMP_EPG" ] && mkdir -p "$TEMP_CONFIG" && touch "$TEMP_EPG" && chmod 700 "$TEMP_EPG" - [ -z "$config_path" ] && config_path="$PERSISTENT_CONFIG" - ln -sf "$TEMP_EPG" "${config_path}/epgdb.v2" - fi -} - -load_uci_config() { - config_load tvheadend - config_get config_path service config_path "$PERSISTENT_CONFIG" - [ -n "$config_path" ] && procd_append_param command -c "$config_path" - config_get_bool nosyslog service nosyslog 0 - [ "$nosyslog" -eq 1 ] && procd_append_param command --nosyslog - config_get_bool ipv6 server ipv6 0 - [ "$ipv6" -eq 1 ] && procd_append_param command --ipv6 - config_get bindaddr server bindaddr - [ -n "$bindaddr" ] && procd_append_param command --bindaddr "$bindaddr" - config_get http_port server http_port - [ -n "$http_port" ] && procd_append_param command --http_port "$http_port" - config_get http_root server http_root - [ -n "$http_root" ] && procd_append_param command --http_root "$http_root" - config_get htsp_port server htsp_port - [ -n "$htsp_port" ] && procd_append_param command --htsp_port "$htsp_port" - config_get htsp_port2 server htsp_port2 - [ -n "$htsp_port2" ] && procd_append_param command --htsp_port "$htsp_port2" - config_get xspf server xspf 0 - [ "$xspf" -eq 1 ] && procd_append_param command --xspf -} - -start_service() { - ensure_config_exists - procd_open_instance - procd_set_param file /etc/config/tvheadend - procd_set_param command "$PROG" -B -C - load_uci_config - procd_close_instance -}