aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-10 06:54:40 +0800
committerwg <wg@FreeBSD.org>2013-09-10 06:54:40 +0800
commitb5c29fa46f9e9393584db0ee57dbe53798a7b96f (patch)
treeb583ad41537bda5e0cc6054ff1d2fe63149da1e8
parent441172f45abb136616a4fe98aa7bd602b0a249c6 (diff)
downloadfreebsd-ports-gnome-b5c29fa46f9e9393584db0ee57dbe53798a7b96f.tar.gz
freebsd-ports-gnome-b5c29fa46f9e9393584db0ee57dbe53798a7b96f.tar.zst
freebsd-ports-gnome-b5c29fa46f9e9393584db0ee57dbe53798a7b96f.zip
net/crtmpserver: update to 0.806
- Update to 0.806 [1] - Convert lib depends to new syntax - Add LICENSE (GPLv3) - Fix pkg-plist PR: ports/181924 [1] Submitted by: Gavriloaie Eugen-Andrei <support rtmpd.com> (maintainer)
-rw-r--r--net/crtmpserver/Makefile37
-rw-r--r--net/crtmpserver/distinfo4
-rw-r--r--net/crtmpserver/files/crtmpserver.in16
-rw-r--r--net/crtmpserver/pkg-descr4
-rw-r--r--net/crtmpserver/pkg-plist24
5 files changed, 58 insertions, 27 deletions
diff --git a/net/crtmpserver/Makefile b/net/crtmpserver/Makefile
index 407cc77b885c..79ddcc744b11 100644
--- a/net/crtmpserver/Makefile
+++ b/net/crtmpserver/Makefile
@@ -2,23 +2,24 @@
# $FreeBSD$
PORTNAME= crtmpserver
-PORTVERSION= 0.545
+PORTVERSION= 0.806
CATEGORIES= net
MASTER_SITES= http://rtmpd.com/assets/sources/
MAINTAINER= support@rtmpd.com
COMMENT= C++ RTSP/RTMP/MPEG-TS Server
-LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
+LICENSE= GPLv3
-WRKSRC= ${WRKDIR}/crtmpserver-545
+LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
-BROKEN= fails to build
+USE_LUA= 5.1
+WANT_LUA_VER= 5.1
+USE_LDCONFIG= yes
USES= cmake:outsource
-CMAKE_ENV= "COMPILE_STATIC=1"
CMAKE_SOURCE_PATH= ${WRKSRC}/builders/cmake
-CMAKE_ARGS= -DCRTMPSERVER_INSTALL_PREFIX:STRING=${PREFIX} -DTEMP_FRAMEWORK_VER=0.545
+CMAKE_ARGS= -DCRTMPSERVER_INSTALL_PREFIX:STRING=${PREFIX} -DTEMP_FRAMEWORK_VER=${PORTVERSION}
USERS= crtmpserver
GROUPS= crtmpserver
@@ -27,15 +28,17 @@ USE_RC_SUBR= crtmpserver
MAN1= crtmpserver.1
-post-install:
- @if [ ! -f ${PREFIX}/etc/crtmpserver.lua ]; then \
- ${CP} -p ${PREFIX}/etc/crtmpserver.lua.sample ${PREFIX}/etc/crtmpserver.lua ; \
- fi
-
-.include <bsd.port.pre.mk>
+pre-install:
+ @${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/crtmpserver.lua" "${PREFIX}" "${WRKSRC}"
+ @${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/all.debug.lua" "${PREFIX}" "${WRKSRC}"
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
-.include <bsd.port.post.mk>
+post-install:
+ @if [ ! -f ${PREFIX}/etc/crtmpserver.lua ]; then \
+ ${CP} -p ${PREFIX}/etc/crtmpserver.lua.sample ${PREFIX}/etc/crtmpserver.lua ; \
+ fi
+ @if [ ! -f ${PREFIX}/etc/crtmpserver.all.lua ]; then \
+ ${CP} -p ${PREFIX}/etc/crtmpserver.all.lua.sample ${PREFIX}/etc/crtmpserver.all.lua ; \
+ fi
+ @${MKDIR} ${PREFIX}/var/log/crtmpserver
+
+.include <bsd.port.mk>
diff --git a/net/crtmpserver/distinfo b/net/crtmpserver/distinfo
index 30098fee4919..3c438249a6c6 100644
--- a/net/crtmpserver/distinfo
+++ b/net/crtmpserver/distinfo
@@ -1,2 +1,2 @@
-SHA256 (crtmpserver-0.545.tar.gz) = 8ba7920c8a90f1e79dbddfeb4c8e22ccaec8dda1ad7f374a210baf57a3e61698
-SIZE (crtmpserver-0.545.tar.gz) = 1605578
+SHA256 (crtmpserver-0.806.tar.gz) = 162333b8559cfdcd1506368eaae0a7143fd4d5ce6d594bc9f44d32db619dab48
+SIZE (crtmpserver-0.806.tar.gz) = 1399313
diff --git a/net/crtmpserver/files/crtmpserver.in b/net/crtmpserver/files/crtmpserver.in
index 1495ae54e1f8..87cdda7bade0 100644
--- a/net/crtmpserver/files/crtmpserver.in
+++ b/net/crtmpserver/files/crtmpserver.in
@@ -15,25 +15,31 @@
# by default.
# crtmpserver_username (username): Set to crtmpserver
# by default.
+#
. /etc/rc.subr
name="crtmpserver"
-rcvar=crtmpserver_enable
+rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
+pidfile=/var/run/${name}.pid
+
+start_postcmd="${name}_poststart"
+
+crtmpserver_poststart()
+{
+ pgrep crtmpserver > /var/run/crtmpserver.pid
+}
load_rc_config $name
: ${crtmpserver_enable="NO"}
: ${crtmpserver_config="%%PREFIX%%/etc/crtmpserver.lua"}
: ${crtmpserver_username="crtmpserver"}
-: ${crtmpserver_groupname="crtmpserver"}
-: ${crtmpserver_pidfile="/var/run/${name}.pid"}
required_files="$crtmpserver_config"
-command_args="--daemon --uid=`id -u ${crtmpserver_username}` --gid=`pw groupshow ${crtmpserver_groupname} | awk -F ":" '{print $3}'` --pid=${crtmpserver_pidfile} $required_files"
+command_args="--daemon --gid=`id -g ${crtmpserver_username}` --uid=`id -u ${crtmpserver_username}` ${required_files}"
run_rc_command "$1"
-
diff --git a/net/crtmpserver/pkg-descr b/net/crtmpserver/pkg-descr
index 3bc18a30417a..ffe7325ccd33 100644
--- a/net/crtmpserver/pkg-descr
+++ b/net/crtmpserver/pkg-descr
@@ -5,11 +5,11 @@ High performance RTMP/RTSP streaming server
- To and from embedded devices: iPhone, Android
- From surveillance cameras
- IP-TV using MPEG-TS and RTSP/RTCP/RTP protocols
- Also, rtmpd can be used as a high performance rendes-vous server.
+ Also, rtmpd can be used as a high performance rendez-vous server.
For example, it enables you to do:
- Audio/Video conferencing
- Online gaming
- Online collaboration
- Simple/complex chat applications
-WWW: http://www.rtmpd.com
+WWW: http://www.rtmpd.com/
diff --git a/net/crtmpserver/pkg-plist b/net/crtmpserver/pkg-plist
index fefeec7f9fb1..8784e88d3db9 100644
--- a/net/crtmpserver/pkg-plist
+++ b/net/crtmpserver/pkg-plist
@@ -1,7 +1,29 @@
-@stopdaemon crtmpserver
@unexec if cmp -s %D/etc/crtmpserver.lua.sample %D/etc/crtmpserver.lua; then rm -f %D/etc/crtmpserver.lua; fi
etc/crtmpserver.lua.sample
@exec if [ ! -f %D/etc/crtmpserver.lua ] ; then cp -p %D/%F %B/crtmpserver.lua; fi
+@unexec if cmp -s %D/etc/crtmpserver.all.lua.sample %D/etc/crtmpserver.all.lua; then rm -f %D/etc/crtmpserver.all.lua; fi
+etc/crtmpserver.all.lua.sample
+@exec if [ ! -f %D/etc/crtmpserver.all.lua ] ; then cp -p %D/%F %B/crtmpserver.all.lua; fi
+lib/crtmpserver/libtinyxml.so
+lib/crtmpserver/libcommon.so
+lib/crtmpserver/libthelib.so
+lib/crtmpserver/applications/flvplayback/libflvplayback.so
+lib/crtmpserver/applications/appselector/libappselector.so
+lib/crtmpserver/applications/samplefactory/libsamplefactory.so
+lib/crtmpserver/applications/vptests/libvptests.so
+lib/crtmpserver/applications/admin/libadmin.so
+lib/crtmpserver/applications/proxypublish/libproxypublish.so
+lib/crtmpserver/applications/stresstest/libstresstest.so
sbin/crtmpserver
@dirrmtry var/crtmpserver/media
@dirrmtry var/crtmpserver
+@dirrmtry lib/crtmpserver/applications/flvplayback
+@dirrmtry lib/crtmpserver/applications/appselector
+@dirrmtry lib/crtmpserver/applications/samplefactory
+@dirrmtry lib/crtmpserver/applications/vptests
+@dirrmtry lib/crtmpserver/applications/admin
+@dirrmtry lib/crtmpserver/applications/proxypublish
+@dirrmtry lib/crtmpserver/applications/stresstest
+@dirrmtry lib/crtmpserver/applications
+@dirrmtry lib/crtmpserver
+@dirrmtry var/log/crtmpserver