From 380c6fa780e81d0e5568c632bccc4cdd39e7d81d Mon Sep 17 00:00:00 2001 From: Daniel Kucera Date: Thu, 21 Jun 2018 01:43:45 +0200 Subject: [PATCH] minisatip: add new package Minisatip is a multi-threaded satip server version 1.2 that runs under Linux and it was tested with DVB-S, DVB-S2, DVB-T, DVB-T2, DVB-C, DVB-C2, ATSC and ISDB-T cards. https://github.com/catalinii/minisatip Signed-off-by: Daniel Kucera --- multimedia/minisatip/Makefile | 61 +++++++++++++++++++++++ multimedia/minisatip/files/minisatip.init | 16 ++++++ 2 files changed, 77 insertions(+) create mode 100644 multimedia/minisatip/Makefile create mode 100644 multimedia/minisatip/files/minisatip.init diff --git a/multimedia/minisatip/Makefile b/multimedia/minisatip/Makefile new file mode 100644 index 000000000..d87bf4902 --- /dev/null +++ b/multimedia/minisatip/Makefile @@ -0,0 +1,61 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=minisatip +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/catalinii/minisatip.git +PKG_SOURCE_VERSION:=b9fcb51b207f3b26b32b9b7c0e633cffea82274d +PKG_SOURCE_DATE:=2019-07-08 +PKG_MIRROR_HASH:=468ef84a491a6c7601e683cf166d95a97ea5e617d98b44e0d3393b194b28f692 + +PKG_MAINTAINER:=Daniel Kucera +PKG_LICENSE:=GPL-2.0-or-later + +include $(INCLUDE_DIR)/package.mk + +define Package/minisatip + TITLE:=SATIP server + URL:=https://github.com/catalinii/minisatip + SECTION:=multimedia + CATEGORY:=Multimedia + DEPENDS:=+MINISATIP_AES:libopenssl +endef + +define Package/minisatip/config + if PACKAGE_minisatip + + config MINISATIP_AES + bool "OpenSSL (AES as part of DVBAPI)" + default n + + config MINISATIP_CLIENT + bool "SatIP Client" + default y + + endif +endef + +ifeq ($(CONFIG_MINISATIP_AES),) + CONFIGURE_ARGS += --disable-dvbaes +endif + +ifeq ($(CONFIG_MINISATIP_CLIENT),) + CONFIGURE_ARGS += --disable-satipc +endif + +define Package/minisatip/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/minisatip $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/share/minisatip/html/ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/html/* $(1)/usr/share/minisatip/html + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/minisatip.init $(1)/etc/init.d/minisatip +endef + +$(eval $(call BuildPackage,minisatip)) diff --git a/multimedia/minisatip/files/minisatip.init b/multimedia/minisatip/files/minisatip.init new file mode 100644 index 000000000..17a283c0a --- /dev/null +++ b/multimedia/minisatip/files/minisatip.init @@ -0,0 +1,16 @@ +#!/bin/sh /etc/rc.common + +USE_PROCD=1 +START=99 + +start_service() { + procd_open_instance minisatip + procd_set_param command /usr/bin/minisatip -f -R /usr/share/minisatip/html + + procd_set_param respawn + + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_close_instance +} +