mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-09-10 18:34:09 +08:00
update 2026-08-26 12:33:54
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2022 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=msd_lite
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/rozhuk-im/msd_lite.git
|
||||
PKG_SOURCE_DATE:=2025-09-11
|
||||
PKG_SOURCE_VERSION:=79a6c62c8fced6128a5e445ee110709b3b51bb78
|
||||
PKG_MIRROR_HASH:=2081142af8a4d697032ef00e75c9537b54a1a45fccbdd935bce5752c6d0eb00b
|
||||
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immrotalwrt.org>
|
||||
PKG_LICENSE:=BSD-2-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/msd_lite
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Program for IP TV streaming on the network via HTTP
|
||||
URL:=http://www.netlab.linkpc.net/wiki/ru:software:msd:lite
|
||||
endef
|
||||
|
||||
define Package/msd_lite/description
|
||||
msd_lite - Multi stream daemon lite. The lightweight version of
|
||||
Multi Stream daemon (msd) Program for organizing IP TV streaming
|
||||
on the network via HTTP.
|
||||
endef
|
||||
|
||||
define Package/msd_lite/conffiles
|
||||
/etc/config/msd_lite
|
||||
endef
|
||||
|
||||
CMAKE_OPTIONS+= -DCONFDIR=../etc/msd_lite
|
||||
|
||||
define Package/msd_lite/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/msd_lite $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/msd_lite
|
||||
$(CP) $(CURDIR)/files/msd_lite.sample $(1)/etc/msd_lite/msd_lite.conf.sample
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,msd_lite))
|
||||
@@ -1,90 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Sizes in kb, time in seconds
|
||||
-->
|
||||
<!--
|
||||
<skt> <rcvLoWatermark>XXXX</rcvLoWatermark> - DOES NOT WORK on Linux!
|
||||
man socket(7):
|
||||
...
|
||||
The select(2) and poll(2) system calls currently do not respect the SO_RCVLOWAT
|
||||
setting on Linux, and mark a socket readable when even a single byte of data is
|
||||
available.
|
||||
...
|
||||
-->
|
||||
<msd>
|
||||
<log>
|
||||
<!-- syslog Severity level: 0=emerg - 7=debug. -->
|
||||
<level>@logLevel@</level>
|
||||
</log>
|
||||
<threadPool>
|
||||
<threadsCountMax>@threadsCountMax@</threadsCountMax>
|
||||
<!-- 0 = auto -->
|
||||
<fBindToCPU>@fBindToCPU@</fBindToCPU>
|
||||
<!-- Bind threads to CPUs. -->
|
||||
<fCacheGetTimeSyscall>yes</fCacheGetTimeSyscall>
|
||||
<!-- Cache gettime() syscalls.. -->
|
||||
<timerGranularity>100</timerGranularity>
|
||||
<!-- 1/1000 sec -->
|
||||
</threadPool>
|
||||
<!-- HTTP server -->
|
||||
<HTTP>
|
||||
<bindList>
|
||||
@bindList@
|
||||
</bindList>
|
||||
<hostnameList>
|
||||
<!-- Host names for all bindings. -->
|
||||
<hostname>*</hostname>
|
||||
</hostnameList>
|
||||
</HTTP>
|
||||
<hubProfileList>
|
||||
<!-- Stream hub profiles templates. -->
|
||||
<hubProfile>
|
||||
<fDropSlowClients>@fDropSlowClients@</fDropSlowClients>
|
||||
<!-- Disconnect slow clients. -->
|
||||
<fSocketHalfClosed>no</fSocketHalfClosed>
|
||||
<!-- Enable shutdown(SHUT_RD) for clients. -->
|
||||
<fSocketTCPNoDelay>yes</fSocketTCPNoDelay>
|
||||
<!-- Enable TCP_NODELAY for clients. -->
|
||||
<fSocketTCPNoPush>yes</fSocketTCPNoPush>
|
||||
<!-- Enable TCP_NOPUSH / TCP_CORK for clients. -->
|
||||
<precache>@precache@</precache>
|
||||
<!-- Pre cache size. Can be overwritten by arg from user request. -->
|
||||
<ringBufSize>@ringBufSize@</ringBufSize>
|
||||
<!-- Stream receive ring buffer size. Must be multiple of sndBlockSize. -->
|
||||
<skt>
|
||||
<sndBuf>512</sndBuf>
|
||||
<!-- Max send block size, apply to clients sockets only, must be > sndBlockSize. -->
|
||||
<sndLoWatermark>64</sndLoWatermark>
|
||||
<!-- Send block size. Must be multiple of 4. -->
|
||||
<!-- <congestionControl>htcp</congestionControl> -->
|
||||
<!-- TCP_CONGESTION: this value replace/overwrite(!) all others cc settings: cc from http req args, http server settings, OS default -->
|
||||
</skt>
|
||||
<headersList>
|
||||
<!-- Custom HTTP headers (sended before stream). -->
|
||||
<header>Pragma: no-cache</header>
|
||||
<header>Content-Type: video/mpeg</header>
|
||||
<header>ContentFeatures.DLNA.ORG: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000</header>
|
||||
<header>TransferMode.DLNA.ORG: Streaming</header>
|
||||
</headersList>
|
||||
</hubProfile>
|
||||
</hubProfileList>
|
||||
<sourceProfileList>
|
||||
<!-- Stream source profiles templates. -->
|
||||
<sourceProfile>
|
||||
<skt>
|
||||
<rcvBuf>@rcvBuf@</rcvBuf>
|
||||
<!-- Multicast recv socket buf size. -->
|
||||
<rcvLoWatermark>48</rcvLoWatermark>
|
||||
<!-- Actual cli_snd_block_min if polling is off. -->
|
||||
<rcvTimeout>@rcvTimeout@</rcvTimeout>
|
||||
<!-- STATUS, Multicast recv timeout. -->
|
||||
</skt>
|
||||
<multicast>
|
||||
<!-- For: multicast-udp and multicast-udp-rtp. -->
|
||||
<ifName>@ifName@</ifName>
|
||||
<rejoinTime>@rejoinTime@</rejoinTime> <!-- Do IGMP/MLD leave+join every X seconds. -->
|
||||
<!-- For multicast receive. -->
|
||||
</multicast>
|
||||
</sourceProfile>
|
||||
</sourceProfileList>
|
||||
</msd>
|
||||
Reference in New Issue
Block a user