Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2013 01:57:14 GMT
From:      Gavriloaie Eugen-Andrei <support@rtmpd.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181924: update for net/crtmpserver
Message-ID:  <201309080157.r881vESH001511@oldred.freebsd.org>
Resent-Message-ID: <201309080200.r882005s062406@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181924
>Category:       ports
>Synopsis:       update for net/crtmpserver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 08 02:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Gavriloaie Eugen-Andrei
>Release:        FreeBSD 9.1 x86_64
>Organization:
C++ RTMP Server
>Environment:
FreeBSD  9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Update for net/crtmpserver from 0.545 to 0.804
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	crtmpserver
#	crtmpserver/files
#	crtmpserver/files/crtmpserver.in
#	crtmpserver/pkg-plist
#	crtmpserver/pkg-descr
#	crtmpserver/distinfo
#	crtmpserver/Makefile
#
echo c - crtmpserver
mkdir -p crtmpserver > /dev/null 2>&1
echo c - crtmpserver/files
mkdir -p crtmpserver/files > /dev/null 2>&1
echo x - crtmpserver/files/crtmpserver.in
sed 's/^X//' >crtmpserver/files/crtmpserver.in << '1e89f6b7d11e05b94ef707a5b4a14081'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: crtmpserver
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# crtmpserver_enable (bool):   Set to NO by default.
X#               Set it to YES to enable crtmpserver.
X# crtmpserver_config (path):   Set to %%PREFIX%%/etc/crtmpserver.lua
X#               by default.
X# crtmpserver_username (username): Set to crtmpserver
X#               by default.
X#
X
X. /etc/rc.subr
X
Xname="crtmpserver"
Xrcvar=${name}_enable
X
Xcommand=%%PREFIX%%/sbin/${name}
Xpidfile=/var/run/${name}.pid
X
Xstart_postcmd="${name}_poststart"
X
Xcrtmpserver_poststart()
X{
X	pgrep crtmpserver > /var/run/crtmpserver.pid
X}
X
Xload_rc_config $name
X
X: ${crtmpserver_enable="NO"}
X: ${crtmpserver_config="%%PREFIX%%/etc/crtmpserver.lua"}
X: ${crtmpserver_username="crtmpserver"}
X
Xrequired_files="$crtmpserver_config"
X
Xcommand_args="--daemon --gid=`id -g ${crtmpserver_username}` --uid=`id -u ${crtmpserver_username}` ${required_files}"
X
Xrun_rc_command "$1"
1e89f6b7d11e05b94ef707a5b4a14081
echo x - crtmpserver/pkg-plist
sed 's/^X//' >crtmpserver/pkg-plist << '23e6563549a10e1cb8bd0592fe61b4dd'
X@stopdaemon crtmpserver
X
X@unexec if cmp -s %D/etc/crtmpserver.lua.sample %D/etc/crtmpserver.lua; then rm -f %D/etc/crtmpserver.lua; fi
Xetc/crtmpserver.lua.sample
X@exec if [ ! -f %D/etc/crtmpserver.lua ] ; then cp -p %D/%F %B/crtmpserver.lua; fi
X
X@unexec if cmp -s %D/etc/crtmpserver.all.lua.sample %D/etc/crtmpserver.all.lua; then rm -f %D/etc/crtmpserver.all.lua; fi
Xetc/crtmpserver.all.lua.sample
X@exec if [ ! -f %D/etc/crtmpserver.all.lua ] ; then cp -p %D/%F %B/crtmpserver.all.lua; fi
X
X
Xlib/crtmpserver/libtinyxml.so
Xlib/crtmpserver/libcommon.so
Xlib/crtmpserver/libthelib.so
Xlib/crtmpserver/applications/flvplayback/libflvplayback.so
Xlib/crtmpserver/applications/appselector/libappselector.so
Xlib/crtmpserver/applications/samplefactory/libsamplefactory.so
Xlib/crtmpserver/applications/vptests/libvptests.so
Xlib/crtmpserver/applications/admin/libadmin.so
Xlib/crtmpserver/applications/proxypublish/libproxypublish.so
Xlib/crtmpserver/applications/stresstest/libstresstest.so
Xsbin/crtmpserver
X@dirrmtry lib/crtmpserver/applications/flvplayback
X@dirrmtry lib/crtmpserver/applications/appselector
X@dirrmtry lib/crtmpserver/applications/samplefactory
X@dirrmtry lib/crtmpserver/applications/vptests
X@dirrmtry lib/crtmpserver/applications/admin
X@dirrmtry lib/crtmpserver/applications/proxypublish
X@dirrmtry lib/crtmpserver/applications/stresstest
X@dirrmtry lib/crtmpserver/applications
X@dirrmtry lib/crtmpserver
X@dirrmtry var/log/crtmpserver
23e6563549a10e1cb8bd0592fe61b4dd
echo x - crtmpserver/pkg-descr
sed 's/^X//' >crtmpserver/pkg-descr << '7920e7452bf10015536cf24ac380d40e'
XHigh performance RTMP/RTSP streaming server
X rtmpd is a high performance streaming server able to stream
X (live or recorded) in the following technologies:
X  - To and from Flash (RTMP,RTMPE, RTMPS, RTMPT, RTMPTE)
X  - To and from embedded devices: iPhone, Android
X  - From surveillance cameras
X  - IP-TV using MPEG-TS and RTSP/RTCP/RTP protocols
X Also, rtmpd can be used as a high performance rendez-vous server.
X For example, it enables you to do:
X  - Audio/Video conferencing
X  - Online gaming
X  - Online collaboration
X  - Simple/complex chat applications
X
XWWW: http://www.rtmpd.com
7920e7452bf10015536cf24ac380d40e
echo x - crtmpserver/distinfo
sed 's/^X//' >crtmpserver/distinfo << 'a616fdc654afc344b1598e4825411947'
XSHA256 (crtmpserver-0.804.tar.gz) = 170eb758a14c4ef75f41569424a78a3b812af3e957b8f4720b82fec530ce61b4
XSIZE (crtmpserver-0.804.tar.gz) = 1558155
a616fdc654afc344b1598e4825411947
echo x - crtmpserver/Makefile
sed 's/^X//' >crtmpserver/Makefile << '3ce67d7dd07e5b58b0ecf2a729e9fb53'
X# New ports collection makefile for:   crtmpserver
X# Date created:        5 December 1994
X# Whom:                shiretu
X#
X# $FreeBSD$
X#
X
XPORTNAME=	crtmpserver
XPORTVERSION=	0.804
XPORTREVISION=	1
XCATEGORIES=	net
XMASTER_SITES=	http://rtmpd.com/assets/sources/
X
XMAINTAINER=	support@rtmpd.com
XCOMMENT=	C++ RTSP/RTMP/MPEG-TS Server
X
XLIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo
X
XUSE_LUA=	5.1
XWANT_LUA_VER=	5.1
X
XUSE_CMAKE=	yes
XCMAKE_OUTSOURCE=	yes
XCMAKE_SOURCE_PATH=	${WRKSRC}/builders/cmake
XCMAKE_BUILD_TYPE=	Release
XCMAKE_ARGS=	-DCRTMPSERVER_INSTALL_PREFIX:STRING=${CMAKE_INSTALL_PREFIX} -DTEMP_FRAMEWORK_VER=0.804
XUSE_LDCONFIG=	1
X
XUSERS=	crtmpserver
XGROUPS=	crtmpserver
X
XUSE_RC_SUBR=	crtmpserver
X
XMAN1=	crtmpserver.1
X
Xpre-install:
X	@${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/crtmpserver.lua" "${PREFIX}" "${WRKSRC}"
X	@${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/all.debug.lua" "${PREFIX}" "${WRKSRC}"
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/etc/crtmpserver.lua ]; then \
X		${CP} -p ${PREFIX}/etc/crtmpserver.lua.sample ${PREFIX}/etc/crtmpserver.lua ; \
X	fi
X	@${MKDIR} ${PREFIX}/var/log/crtmpserver
X
X.include <bsd.port.mk>
3ce67d7dd07e5b58b0ecf2a729e9fb53
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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