diff --git a/net/msd_lite/Makefile b/net/msd_lite/Makefile index 5c9852d745..18e90e9fff 100644 --- a/net/msd_lite/Makefile +++ b/net/msd_lite/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=msd_lite -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/rozhuk-im/msd_lite.git @@ -24,7 +24,7 @@ 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 + URL:=http://www.netlab.linkpc.net/wiki/en:software:msd:lite endef define Package/msd_lite/description @@ -44,7 +44,7 @@ define Package/msd_lite/install $(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 + $(CP) $(PKG_BUILD_DIR)/conf/msd_lite.conf $(1)/etc/msd_lite/msd_lite.conf.sample $(INSTALL_DIR) $(1)/etc/config $(INSTALL_CONF) $(CURDIR)/files/msd_lite.config $(1)/etc/config/msd_lite $(INSTALL_DIR) $(1)/etc/init.d diff --git a/net/msd_lite/files/msd_lite.init b/net/msd_lite/files/msd_lite.init index cca2a62041..e116a32ee7 100644 --- a/net/msd_lite/files/msd_lite.init +++ b/net/msd_lite/files/msd_lite.init @@ -51,15 +51,18 @@ start_instance() { [ "$drop_slow_clients" = "1" ] && drop_slow_clients="yes" || drop_slow_clients="no" mkdir -p "$CONFDIR" - sed -e "s,@threadsCountMax@,$threads,g" \ - -e "s,@fBindToCPU@,$bind_to_cpu,g" \ - -e "s,@bindList@,$bindlist,g" \ - -e "s,@ifName@,$interface,g" \ - -e "s,@fDropSlowClients@,$drop_slow_clients,g" \ - -e "s,@precache@,$precache_size,g" \ - -e "s,@ringBufSize@,$ring_buffer_size,g" \ - -e "s,@rcvBuf@,$multicast_recv_buffer_size,g" \ - -e "s,@rcvTimeout@,$multicast_recv_timeout,g" \ + sed -e "/
0.0.0.0:7088/d" \ + -e "/htcp/d" \ + -e "s,/root/msd_lite/msd_lite.log,/dev/null,g" \ + -e "s,1,$threads,g" \ + -e "s,yes,$bind_to_cpu,g" \ + -e "s,
\[::\]:7088
,$bindlist,g" \ + -e "s,vlan777,$interface,g" \ + -e "s,no,$drop_slow_clients,g" \ + -e "s,4096,$precache_size,g" \ + -e "s,1024,$ring_buffer_size,g" \ + -e "s,512,$multicast_recv_buffer_size,g" \ + -e "s,2,$multicast_recv_timeout,g" \ "$CONF" > "$CONFDIR/$section.conf" procd_open_instance "$section" diff --git a/net/msd_lite/files/msd_lite.sample b/net/msd_lite/files/msd_lite.sample deleted file mode 100644 index 36ef05826c..0000000000 --- a/net/msd_lite/files/msd_lite.sample +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - /dev/null - - - @threadsCountMax@ - - @fBindToCPU@ - - yes - - 100 - - - - - - @bindList@ - - - - * - - - - - - @fDropSlowClients@ - - no - - yes - - yes - - @precache@ - - @ringBufSize@ - - - 512 - - 64 - - - - - - -
Pragma: no-cache
-
Content-Type: video/mpeg
-
ContentFeatures.DLNA.ORG: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
-
TransferMode.DLNA.ORG: Streaming
-
-
-
- - - - - @rcvBuf@ - - 48 - - @rcvTimeout@ - - - - - @ifName@ - - - - -