Date: Tue, 19 Jan 2021 21:28:30 +0000 (UTC) From: Bernhard Froehlich <decke@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r562091 - in head/multimedia: . minisatip minisatip/files Message-ID: <202101192128.10JLSUjx004387@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: decke Date: Tue Jan 19 21:28:29 2021 New Revision: 562091 URL: https://svnweb.freebsd.org/changeset/ports/562091 Log: multimedia/minisatip: Add new port 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. WWW: https://github.com/catalinii/minisatip Added: head/multimedia/minisatip/ head/multimedia/minisatip/Makefile (contents, props changed) head/multimedia/minisatip/distinfo (contents, props changed) head/multimedia/minisatip/files/ head/multimedia/minisatip/files/patch-src_socketworks.c (contents, props changed) head/multimedia/minisatip/files/patch-src_socketworks.h (contents, props changed) head/multimedia/minisatip/pkg-descr (contents, props changed) head/multimedia/minisatip/pkg-plist (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Tue Jan 19 21:13:54 2021 (r562090) +++ head/multimedia/Makefile Tue Jan 19 21:28:29 2021 (r562091) @@ -249,6 +249,7 @@ SUBDIR += mediainfo SUBDIR += mencoder SUBDIR += mimms + SUBDIR += minisatip SUBDIR += minitube SUBDIR += mjpegtools SUBDIR += mkclean Added: head/multimedia/minisatip/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/Makefile Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,37 @@ +# Created by: Bernhard Froehlich <decke@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= minisatip +PORTVERSION= 1.0.4 +CATEGORIES= multimedia + +MAINTAINER= decke@FreeBSD.org +COMMENT= Multi-threaded SATIP server that supports DVB cards + +LICENSE= GPLv2+ + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat +LIB_DEPENDS= libdvbcsa.so:multimedia/libdvbcsa + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= catalinii + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +GNU_CONFIGURE= yes +ALL_TARGET= minisatip + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} 's|/usr/share/minisatip|${DATADIR}|' \ + ${WRKSRC}/src/minisatip.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/minisatip ${STAGEDIR}${PREFIX}/sbin + @${MKDIR} ${STAGEDIR}${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DATADIR}) + +.include <bsd.port.post.mk> Added: head/multimedia/minisatip/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/distinfo Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,3 @@ +TIMESTAMP = 1606393176 +SHA256 (catalinii-minisatip-1.0.4_GH0.tar.gz) = aa6ef68228a19faf04cf1283e994cae80134a01d9ee6bc45b9969d145b1281e5 +SIZE (catalinii-minisatip-1.0.4_GH0.tar.gz) = 360042 Added: head/multimedia/minisatip/files/patch-src_socketworks.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/files/patch-src_socketworks.c Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,21 @@ +--- src/socketworks.c.orig 2020-08-16 05:56:14 UTC ++++ src/socketworks.c +@@ -1023,7 +1023,7 @@ void set_sockets_rtime(int i, int r) + if (ss) + ss->rtime = r; + } +-#ifndef __APPLE__ ++#ifdef __linux__ + + int get_mac_address(char *mac) + { +@@ -1658,7 +1658,9 @@ void set_socket_dscp(int id, int dscp, int prio) + setsockopt(id, IPPROTO_IP, IP_TOS, &d, sizeof(d)); + + d = prio; ++#if defined(SO_PRIORITY) + setsockopt(id, SOL_SOCKET, SO_PRIORITY, &d, sizeof(d)); ++#endif + } + + void sockets_set_opaque(int id, void *opaque, void *opaque2, void *opaque3) Added: head/multimedia/minisatip/files/patch-src_socketworks.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/files/patch-src_socketworks.h Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,10 @@ +--- src/socketworks.h.orig 2020-08-16 05:56:14 UTC ++++ src/socketworks.h +@@ -2,6 +2,7 @@ + #define SOCKETWORKS_H + #define MAX_SOCKS 300 + #include <netinet/in.h> ++#include <sys/socket.h> + #include "utils.h" + + typedef int (*socket_action)(void *s); Added: head/multimedia/minisatip/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/pkg-descr Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,5 @@ +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. + +WWW: https://github.com/catalinii/minisatip Added: head/multimedia/minisatip/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/minisatip/pkg-plist Tue Jan 19 21:28:29 2021 (r562091) @@ -0,0 +1,22 @@ +sbin/minisatip +%%DATADIR%%/html/dLAN.xml +%%DATADIR%%/html/dvbc.png +%%DATADIR%%/html/dvbc2.png +%%DATADIR%%/html/dvbs.png +%%DATADIR%%/html/dvbs2.png +%%DATADIR%%/html/dvbs2x.png +%%DATADIR%%/html/dvbt.png +%%DATADIR%%/html/dvbt2.png +%%DATADIR%%/html/jquery-3.2.1.min.js +%%DATADIR%%/html/jquery.dataTables.min.css +%%DATADIR%%/html/jquery.dataTables.min.js +%%DATADIR%%/html/jquery.pBar.min.js +%%DATADIR%%/html/lr.jpg +%%DATADIR%%/html/lr.png +%%DATADIR%%/html/satip.xml +%%DATADIR%%/html/sm.jpg +%%DATADIR%%/html/sm.png +%%DATADIR%%/html/sort_asc.png +%%DATADIR%%/html/sort_both.png +%%DATADIR%%/html/sort_desc.png +%%DATADIR%%/html/status.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101192128.10JLSUjx004387>