Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 12:54:42 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471913 - in head/net: . mptsd mptsd/files
Message-ID:  <201806071254.w57Csg5n015103@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Jun  7 12:54:42 2018
New Revision: 471913
URL: https://svnweb.freebsd.org/changeset/ports/471913

Log:
  mptsd receives mpegts streams from multicast (udp/rtp) or http and
  combines them into one multiple program stream that is suitable for
  outputing to DVB-C modulator.
  
  WWW: https://github.com/gfto/mptsd

Added:
  head/net/mptsd/
  head/net/mptsd/Makefile   (contents, props changed)
  head/net/mptsd/distinfo   (contents, props changed)
  head/net/mptsd/files/
  head/net/mptsd/files/patch-Makefile   (contents, props changed)
  head/net/mptsd/files/patch-libfuncs_Makefile   (contents, props changed)
  head/net/mptsd/files/patch-libtsfuncs_Makefile   (contents, props changed)
  head/net/mptsd/files/patch-libtsfuncs_crc.c   (contents, props changed)
  head/net/mptsd/files/patch-libtsfuncs_pes__data.c   (contents, props changed)
  head/net/mptsd/files/patch-libtsfuncs_tsfuncs.h   (contents, props changed)
  head/net/mptsd/files/patch-mptsd.c   (contents, props changed)
  head/net/mptsd/pkg-descr   (contents, props changed)
  head/net/mptsd/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Thu Jun  7 12:53:09 2018	(r471912)
+++ head/net/Makefile	Thu Jun  7 12:54:42 2018	(r471913)
@@ -486,6 +486,7 @@
     SUBDIR += mpich
     SUBDIR += mpich2
     SUBDIR += mping
+    SUBDIR += mptsd
     SUBDIR += mrouted
     SUBDIR += msend
     SUBDIR += mtr

Added: head/net/mptsd/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/Makefile	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME=	mptsd
+PORTVERSION=	1.1
+CATEGORIES=	net multimedia
+MASTER_SITES=	https://georgi.unixsol.org/programs/mptsd/
+
+MAINTAINER=	win2000rus@hotmail.com
+COMMENT=	MPEG TS stream muxer
+
+LICENSE=	GPLv2 MIT
+LICENSE_COMB=	multi
+
+USES=		gmake tar:bzip2
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}*.conf ${STAGEDIR}${ETCDIR}
+
+.include <bsd.port.mk>

Added: head/net/mptsd/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/distinfo	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1523373210
+SHA256 (mptsd-1.1.tar.bz2) = 3609e13df7ee561f59f667d7700f13d515714c9b13c2220e88adb3c144b995f0
+SIZE (mptsd-1.1.tar.bz2) = 95989

Added: head/net/mptsd/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-Makefile	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,21 @@
+--- Makefile.orig	2012-01-26 12:00:02 UTC
++++ Makefile
+@@ -1,17 +1,8 @@
+-CC = $(CROSS)$(TARGET)gcc
+ STRIP = $(CROSS)$(TARGET)strip
+-BUILD_ID = $(shell date +%F_%R)
+ VERSION="v1.1"
+-GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
+-CFLAGS = -ggdb -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -O2 -D_GNU_SOURCE -DBUILD_ID=\"$(BUILD_ID)\"
+-ifneq "$(GIT_VER)" ""
+-CFLAGS += -DGIT_VER=\"$(GIT_VER)\"
+-else
+-CFLAGS += -DGIT_VER=\"$(VERSION)\"
+-endif
++CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -D_GNU_SOURCE -DBUILD_ID=\"FreeBSD_port\" -DGIT_VER=\"$(VERSION)\"
+ 
+ RM = /bin/rm -f
+-Q = @
+ 
+ LIBS = -lpthread -lm -lrt
+ 

Added: head/net/mptsd/files/patch-libfuncs_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-libfuncs_Makefile	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,16 @@
+--- libfuncs/Makefile.orig	2012-01-05 12:40:53 UTC
++++ libfuncs/Makefile
+@@ -1,12 +1,9 @@
+-CC = $(CROSS)$(TARGET)gcc
+ LINK = $(CROSS)$(TARGET)ld -o
+ MKDEP = $(CC) -M -o $*.d $<
+ 
+ LIBRARY_LINK_OPTS =  -L. -r
+-CFLAGS = -O2 -ggdb -std=c99 -D_GNU_SOURCE
+-CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
++CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
+ RM = /bin/rm -f
+-Q=@
+ 
+ OBJS = queue.o list.o cbuf.o io.o log.o http_response.o asyncdns.o \
+        server.o misc.o

Added: head/net/mptsd/files/patch-libtsfuncs_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-libtsfuncs_Makefile	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,16 @@
+--- libtsfuncs/Makefile.orig	2012-01-05 12:41:01 UTC
++++ libtsfuncs/Makefile
+@@ -1,12 +1,9 @@
+-CC = $(CROSS)$(TARGET)gcc
+ LINK = $(CROSS)$(TARGET)ld -o
+ MKDEP = $(CC) -M -o $*.d $<
+ 
+ LIBRARY_LINK_OPTS =  -L. -r
+-CFLAGS = -O2 -ggdb -std=c99 -D_GNU_SOURCE
+-CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
++CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
+ RM = /bin/rm -f
+-Q=@
+ 
+ OBJS = log.o tsfuncs.o crc.o misc.o time.o \
+ 	sections.o secdata.o \

Added: head/net/mptsd/files/patch-libtsfuncs_crc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-libtsfuncs_crc.c	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,11 @@
+--- libtsfuncs/crc.c.orig	2012-01-05 12:41:01 UTC
++++ libtsfuncs/crc.c
+@@ -46,7 +46,7 @@ uint32_t ts_crc32(uint8_t *data, int dat
+ 	return crc;
+ }
+ 
+-u_int32_t ts_crc32_section(struct ts_section_header *section_header) {
++uint32_t ts_crc32_section(struct ts_section_header *section_header) {
+ 	return ts_crc32(section_header->section_data, section_header->section_data_len);
+ }
+ 

Added: head/net/mptsd/files/patch-libtsfuncs_pes__data.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-libtsfuncs_pes__data.c	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,10 @@
+--- libtsfuncs/pes_data.c.orig	2011-09-16 12:32:55 UTC
++++ libtsfuncs/pes_data.c
+@@ -7,6 +7,7 @@
+  */
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdint.h>
+ 
+ #include "tsdata.h"
+ #include "tsfuncs.h"

Added: head/net/mptsd/files/patch-libtsfuncs_tsfuncs.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-libtsfuncs_tsfuncs.h	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,10 @@
+--- libtsfuncs/tsfuncs.h.orig	2012-01-05 12:41:01 UTC
++++ libtsfuncs/tsfuncs.h
+@@ -8,6 +8,7 @@
+ #ifndef LIBTS_TSFUNCS_H
+ #define LIBTS_TSFUNCS_H
+ 
++#include <stdint.h>
+ #include <time.h>
+ #include <netdb.h>
+ 

Added: head/net/mptsd/files/patch-mptsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/files/patch-mptsd.c	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,11 @@
+--- mptsd.c.orig	2011-09-16 12:37:04 UTC
++++ mptsd.c
+@@ -34,7 +34,7 @@
+ 
+ #define PROGRAM_NAME "ux-mptsd"
+ 
+-const char *program_id = PROGRAM_NAME " " GIT_VER " build " BUILD_ID;
++const char *program_id = PROGRAM_NAME " FreeBSD port";
+ 
+ char *server_sig = PROGRAM_NAME;
+ char *server_ver = GIT_VER;

Added: head/net/mptsd/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/pkg-descr	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,5 @@
+mptsd receives mpegts streams from multicast (udp/rtp) or http and
+combines them into one multiple program stream that is suitable for
+outputing to DVB-C modulator.
+
+WWW: https://github.com/gfto/mptsd

Added: head/net/mptsd/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mptsd/pkg-plist	Thu Jun  7 12:54:42 2018	(r471913)
@@ -0,0 +1,5 @@
+bin/mptsd
+etc/mptsd/mptsd.conf
+etc/mptsd/mptsd_channels.conf
+etc/mptsd/mptsd_epg.conf
+etc/mptsd/mptsd_nit.conf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806071254.w57Csg5n015103>