Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Darwin Streaming Server is an open source project intended for developers who
need to stream QuickTime and MPEG-4 media on alternative platforms such as
Windows, Linux, and Solaris, or those developers who need to extend and/or
modify the existing streaming server code to fit their needs. Darwin Streaming
Server is only supported by the open source community and is not eligible for
technical support from Apple. Apple hosts a number of email discussion lists
for Darwin Streaming Server users and developers to share ideas and discuss
deployment scenarios.

View File

@@ -0,0 +1,25 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2006/12/15 09:03:47 adam Exp $
You need to set up a DarwinStreamingServer administrator username and
password:
# qtpasswd -c username
# echo admin: username > ${PKG_SYSCONFDIR}/streaming/qtgroups
N.B. qtpasswd will overwrite the existing file with the -c option.
The file
${PKG_SYSCONFDIR}/streaming/qtgroups
will contain users separated by white space for each group.
In order to run the DarwinStreamingServer administration tools you need to
install SSL keys into
${PKG_SYSCONFDIR}/streaming/streamingadminserver.pem
After the administration tools are up and running you should be able to
access them at
http://your.hostname:1220/
If you select 'Secure Administration (SSL)' you'll be directed to
https://your.hostname:1240/
===========================================================================

View File

@@ -0,0 +1,167 @@
# $NetBSD: Makefile,v 1.14 2013/05/31 12:41:31 wiz Exp $
DISTNAME= DarwinStreamingSrvr5.5.5-Source
PKGNAME= DarwinStreamingServer-5.5.5
PKGREVISION= 5
CATEGORIES= net multimedia
MASTER_SITES= http://static.macosforge.org/dss/downloads/
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://dss.macosforge.org/
COMMENT= Open source version of Apple QuickTime Streaming Server
LICENSE= apple-public-source-license
MAKE_JOBS_SAFE= no
RESTRICTED= Under APSL (see http://www.opensource.apple.com/apsl/).
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
MAKE_FILE= Makefile.POSIX
MAKE_ENV+= CCOMP=${CC:Q} CPLUS=${CXX:Q}\ -fPIC LINKER=${CXX:Q}
MAKE_ENV+= COMPILER_FLAGS=${CFLAGS:Q} INCLUDE_FLAG="-include"
MAKE_ENV+= CORE_LINK_LIBS="-pthread -lm -lcrypt"
MAKE_ENV+= SHARED="-shared" MODULE_LIBS=""
BUILD_DIRS= CommonUtilitiesLib
BUILD_DIRS+= QTFileLib
BUILD_DIRS+= .
BUILD_DIRS+= APIModules/QTSSRefMovieModule
BUILD_DIRS+= APIModules/QTSSDemoAuthorizationModule.bproj
BUILD_DIRS+= APIModules/QTSSRawFileModule.bproj
BUILD_DIRS+= APIModules/QTSSSpamDefenseModule.bproj
BUILD_DIRS+= APIModules/QTSSHomeDirectoryModule
BUILD_DIRS+= StreamingProxy.tproj
BUILD_DIRS+= qtpasswd.tproj
BUILD_DIRS+= PlaylistBroadcaster.tproj
BUILD_DIRS+= MP3Broadcaster
BUILD_DIRS+= QTFileTools/QTBroadcaster.tproj
BUILD_DIRS+= QTFileTools/QTFileInfo.tproj
BUILD_DIRS+= QTFileTools/QTFileTest.tproj
BUILD_DIRS+= QTFileTools/QTRTPFileTest.tproj
BUILD_DIRS+= QTFileTools/QTRTPGen.tproj
BUILD_DIRS+= QTFileTools/QTSDPGen.tproj
BUILD_DIRS+= QTFileTools/QTSampleLister.tproj
BUILD_DIRS+= QTFileTools/QTTrackInfo.tproj
INSTALLATION_DIRS+= bin sbin
INSTALLATION_DIRS+= libexec/StreamingServerModules
INSTALLATION_DIRS+= share/examples/streaming
INSTALLATION_DIRS+= share/streaming
INSTALLATION_DIRS+= share/streaming/AdminHtml
INSTALLATION_DIRS+= share/streaming/AdminHtml/images
INSTALLATION_DIRS+= share/streaming/AdminHtml/includes
INSTALLATION_DIRS+= share/streaming/AdminHtml/html_en
INSTALLATION_DIRS+= share/streaming/movies
INSTALLATION_DIRS+= share/streaming/playlists
PKG_USERS= qtss:qtss
PKG_GROUPS= qtss
PKG_GECOS.qtss= Darwin Streaming Server user
REPLACE_PERL+= WebAdmin/WebAdminHtml/broadcaster_lib.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/parse_xml.cgi
REPLACE_PERL+= WebAdmin/WebAdminHtml/playlist-lib.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/relayxmlparser.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/startplaylists.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/view_broadcast.cgi
REPLACE_PERL+= WebAdmin/src/streamingadminserver.pl
REPLACE_PERL+= WinNTSupport/WinPasswdAssistant.pl
REQUIRE_DIRS+= ${PKG_SYSCONFDIR}/streaming
CONF_FILES= share/examples/streaming/qtgroups ${PKG_SYSCONFDIR}/streaming/qtgroups
CONF_FILES+= share/examples/streaming/qtusers ${PKG_SYSCONFDIR}/streaming/qtusers
CONF_FILES+= share/examples/streaming/relayconfig.xml-Sample ${PKG_SYSCONFDIR}/streaming/relayconfig.xml
CONF_FILES+= share/examples/streaming/streamingserver.xml-POSIX ${PKG_SYSCONFDIR}/streaming/streamingserver.xml
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= post-patch
SUBST_MESSAGE.makefile= Fixing Makefiles
SUBST_FILES.makefile+= APIModules/QTSSDemoAuthorizationModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSHomeDirectoryModule/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSRawFileModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSRefMovieModule/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSSpamDefenseModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIStubLib/makefile.apistublib.POSIX
SUBST_FILES.makefile+= CommonUtilitiesLib/Makefile.POSIX
SUBST_FILES.makefile+= HTTPUtilitiesLib/Makefile.POSIX
SUBST_FILES.makefile+= MP3Broadcaster/Makefile.POSIX
SUBST_FILES.makefile+= Makefile.POSIX
SUBST_FILES.makefile+= PlaylistBroadcaster.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileLib/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTBroadcaster.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTFileInfo.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTFileTest.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTRTPFileTest.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTRTPGen.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTSDPGen.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTSampleLister.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTTrackInfo.tproj/Makefile.POSIX
SUBST_FILES.makefile+= StreamingProxy.tproj/Makefile.POSIX
SUBST_FILES.makefile+= qtpasswd.tproj/Makefile.POSIX
SUBST_SED.makefile+= -e "s|-O[023]||"
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_MESSAGE.path= Fixing paths
SUBST_FILES.path+= defaultPaths.h
SUBST_FILES.path+= WebAdmin/src/streamingadminserver.pl
SUBST_FILES.path+= streamingserver.xml-POSIX
SUBST_SED.path+= -e "s|/etc/streaming|${PKG_SYSCONFDIR}/streaming|"
SUBST_SED.path+= -e "s|/movies|/share/streaming/movies|"
SUBST_SED.path+= -e "s|/usr/local|${PREFIX}|"
SUBST_SED.path+= -e "s|/sbin/StreamingServer|/libexec/StreamingServer|"
SUBST_SED.path+= -e "s|/var/streaming/AdminHtml|${PREFIX}/share/streaming/AdminHtml|"
SUBST_SED.path+= -e "s|/var/streaming/playlists|${PREFIX}/share/streaming/playlists|"
SUBST_SED.path+= -e "s|/var/streaming/logs|${VARBASE}/log/streaming|"
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_MESSAGE.conf= Fixing configuration file
SUBST_FILES.conf+= WebAdmin/streamingadminserver.conf
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/AdminHtml|${PREFIX}/share/streaming/AdminHtml|"
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/playlists|${PREFIX}/share/streaming/playlists|"
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/Logs|${VARBASE}/log/streaming|"
SUBST_SED.conf+= -e "s|/usr/sbin/QuickTime|${PREFIX}/sbin/Darwin|"
post-extract:
rm -rf ${WRKSRC}/*PackageMetaData
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/DarwinStreamingServer ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/PlaylistBroadcaster.tproj/PlaylistBroadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/MP3Broadcaster/MP3Broadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/qtpasswd.tproj/qtpasswd ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/APIModules/QTSSHomeDirectoryModule/QTSSHomeDirectoryModule ${DESTDIR}${PREFIX}/libexec/StreamingServerModules
${INSTALL_PROGRAM} ${WRKSRC}/APIModules/QTSSRefMovieModule/QTSSRefMovieModule ${DESTDIR}${PREFIX}/libexec/StreamingServerModules
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTBroadcaster.tproj/QTBroadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTFileTest.tproj/QTFileTest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTRTPFileTest.tproj/QTRTPFileTest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTRTPGen.tproj/QTRTPGen ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTSampleLister.tproj/QTSampleLister ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTSDPGen.tproj/QTSDPGen ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTTrackInfo.tproj/QTTrackInfo ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/APIModules/QTSSHomeDirectoryModule/createuserstreamingdir ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/streamingserver.xml-POSIX ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/relayconfig.xml-Sample ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/qtusers ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/qtgroups ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/Documentation/readme.txt ${DESTDIR}${PREFIX}/share/streaming
${INSTALL_DATA} ${WRKSRC}/Documentation/3rdPartyAcknowledgements.rtf ${DESTDIR}${PREFIX}/share/streaming
${INSTALL_SCRIPT} ${WRKSRC}/WebAdmin/src/streamingadminserver.pl ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.pl ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.cgi ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.html ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/images/*.gif ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/images
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/includes/*.js ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/includes
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/html_en/messages ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/html_en
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/html_en/genres ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/html_en
${INSTALL_DATA} ${WRKSRC}/sample* ${DESTDIR}${PREFIX}/share/streaming/movies
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,153 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 21:00:03 joerg Exp $
bin/MP3Broadcaster
bin/PlaylistBroadcaster
bin/QTBroadcaster
bin/QTFileTest
bin/QTRTPFileTest
bin/QTRTPGen
bin/QTSDPGen
bin/QTSampleLister
bin/QTTrackInfo
bin/createuserstreamingdir
bin/qtpasswd
libexec/StreamingServerModules/QTSSHomeDirectoryModule
libexec/StreamingServerModules/QTSSRefMovieModule
sbin/DarwinStreamingServer
sbin/streamingadminserver.pl
share/examples/streaming/qtgroups
share/examples/streaming/qtusers
share/examples/streaming/relayconfig.xml-Sample
share/examples/streaming/streamingserver.xml-POSIX
share/streaming/3rdPartyAcknowledgements.rtf
share/streaming/AdminHtml/MapUTF.pl
share/streaming/AdminHtml/access_log.html
share/streaming/AdminHtml/adminprotocol-lib.pl
share/streaming/AdminHtml/broadcaster_lib.pl
share/streaming/AdminHtml/broadcaster_settings.html
share/streaming/AdminHtml/cgi-lib.pl
share/streaming/AdminHtml/change_broadcast_password.html
share/streaming/AdminHtml/change_mp3_password.html
share/streaming/AdminHtml/change_password.html
share/streaming/AdminHtml/change_password_redirect.html
share/streaming/AdminHtml/confirm.html
share/streaming/AdminHtml/connected.html
share/streaming/AdminHtml/error_log.html
share/streaming/AdminHtml/format.html
share/streaming/AdminHtml/frameset.html
share/streaming/AdminHtml/general_settings.html
share/streaming/AdminHtml/html_en/genres
share/streaming/AdminHtml/html_en/messages
share/streaming/AdminHtml/images/LB_arrow_dn.gif
share/streaming/AdminHtml/images/LB_arrow_up.gif
share/streaming/AdminHtml/images/apple_logo.gif
share/streaming/AdminHtml/images/arrow_down.gif
share/streaming/AdminHtml/images/back.gif
share/streaming/AdminHtml/images/blackpixel.gif
share/streaming/AdminHtml/images/clearpixel.gif
share/streaming/AdminHtml/images/dialog_alert.gif
share/streaming/AdminHtml/images/dialog_bottom.gif
share/streaming/AdminHtml/images/dialog_bottom_sm.gif
share/streaming/AdminHtml/images/dialog_middle.gif
share/streaming/AdminHtml/images/dialog_middle_sm.gif
share/streaming/AdminHtml/images/dialog_qtss.gif
share/streaming/AdminHtml/images/dialog_side.gif
share/streaming/AdminHtml/images/dialog_top.gif
share/streaming/AdminHtml/images/dialog_top_sm.gif
share/streaming/AdminHtml/images/divider.gif
share/streaming/AdminHtml/images/divider_vert.gif
share/streaming/AdminHtml/images/dot.gif
share/streaming/AdminHtml/images/folder.gif
share/streaming/AdminHtml/images/greypixel.gif
share/streaming/AdminHtml/images/headerpixel.gif
share/streaming/AdminHtml/images/help.gif
share/streaming/AdminHtml/images/highlight.gif
share/streaming/AdminHtml/images/horz_line.gif
share/streaming/AdminHtml/images/icon_alert.gif
share/streaming/AdminHtml/images/icon_doc.gif
share/streaming/AdminHtml/images/icon_error.gif
share/streaming/AdminHtml/images/icon_folder.gif
share/streaming/AdminHtml/images/icon_generic.gif
share/streaming/AdminHtml/images/icon_group.gif
share/streaming/AdminHtml/images/icon_movie.gif
share/streaming/AdminHtml/images/icon_movie_off.gif
share/streaming/AdminHtml/images/icon_playlist.gif
share/streaming/AdminHtml/images/icon_playlist_off.gif
share/streaming/AdminHtml/images/icon_start_playlist.gif
share/streaming/AdminHtml/images/icon_stop_playlist.gif
share/streaming/AdminHtml/images/icon_user.gif
share/streaming/AdminHtml/images/invis_dragcover.gif
share/streaming/AdminHtml/images/line.gif
share/streaming/AdminHtml/images/link.gif
share/streaming/AdminHtml/images/link_disabled.gif
share/streaming/AdminHtml/images/mp3_file.gif
share/streaming/AdminHtml/images/nav_help.gif
share/streaming/AdminHtml/images/nav_logo.gif
share/streaming/AdminHtml/images/nav_logo_small.gif
share/streaming/AdminHtml/images/pixel.gif
share/streaming/AdminHtml/images/scroll_arrow_down.gif
share/streaming/AdminHtml/images/scroll_arrow_up.gif
share/streaming/AdminHtml/images/scroll_bg.gif
share/streaming/AdminHtml/images/scroll_bg_inactive.gif
share/streaming/AdminHtml/images/scroll_thumb.gif
share/streaming/AdminHtml/images/sort_arrow.gif
share/streaming/AdminHtml/images/sort_arrow_desc.gif
share/streaming/AdminHtml/images/spacer.gif
share/streaming/AdminHtml/images/stripes_gray.gif
share/streaming/AdminHtml/images/stripes_gray_dark.gif
share/streaming/AdminHtml/images/trashcan.gif
share/streaming/AdminHtml/images/vert_line.gif
share/streaming/AdminHtml/images/weight_up_arrow.gif
share/streaming/AdminHtml/images/whitepixel.gif
share/streaming/AdminHtml/images/wieght_down_arrow.gif
share/streaming/AdminHtml/includes/DarwinListbox.js
share/streaming/AdminHtml/includes/draglib.js
share/streaming/AdminHtml/includes/encode_unicode.js
share/streaming/AdminHtml/includes/standardNav.js
share/streaming/AdminHtml/index.html
share/streaming/AdminHtml/listbox.html
share/streaming/AdminHtml/listbox2.html
share/streaming/AdminHtml/log_settings.html
share/streaming/AdminHtml/login.html
share/streaming/AdminHtml/nav.html
share/streaming/AdminHtml/parse_xml.cgi
share/streaming/AdminHtml/password-utils.pl
share/streaming/AdminHtml/playlist-lib.pl
share/streaming/AdminHtml/playlist_detail.html
share/streaming/AdminHtml/playlist_error_log.html
share/streaming/AdminHtml/playlists.html
share/streaming/AdminHtml/ports.html
share/streaming/AdminHtml/relay.html
share/streaming/AdminHtml/relay_details.html
share/streaming/AdminHtml/relay_details_default.html
share/streaming/AdminHtml/relay_status.html
share/streaming/AdminHtml/relay_targets.html
share/streaming/AdminHtml/relayxmlparser.pl
share/streaming/AdminHtml/restart_broadcaster.html
share/streaming/AdminHtml/setup_assistant.html
share/streaming/AdminHtml/setup_assistant2.html
share/streaming/AdminHtml/setup_assistant3.html
share/streaming/AdminHtml/setup_assistant4.html
share/streaming/AdminHtml/setup_assistant5.html
share/streaming/AdminHtml/start_broadcaster.html
share/streaming/AdminHtml/start_server.html
share/streaming/AdminHtml/startplaylists.pl
share/streaming/AdminHtml/tag_formats.pl
share/streaming/AdminHtml/tag_types.pl
share/streaming/AdminHtml/tag_vals.pl
share/streaming/AdminHtml/template.html
share/streaming/AdminHtml/template_blank.html
share/streaming/AdminHtml/top.html
share/streaming/AdminHtml/users.html
share/streaming/AdminHtml/view_broadcast.cgi
share/streaming/AdminHtml/welcome.html
share/streaming/movies/sample.mp3
share/streaming/movies/sample_100kbit.mov
share/streaming/movies/sample_100kbit.mp4
share/streaming/movies/sample_300kbit.mov
share/streaming/movies/sample_300kbit.mp4
share/streaming/movies/sample_50kbit.3gp
share/streaming/movies/sample_h264_100kbit.mp4
share/streaming/movies/sample_h264_1mbit.mp4
share/streaming/movies/sample_h264_300kbit.mp4
share/streaming/readme.txt
@pkgdir share/streaming/playlists

View File

@@ -0,0 +1,34 @@
$NetBSD: distinfo,v 1.4 2013/03/24 16:51:07 joerg Exp $
SHA1 (DarwinStreamingSrvr5.5.5-Source.tar.gz) = ba8419be20e1911f7167dbd48722b2ba5e6f1fe1
RMD160 (DarwinStreamingSrvr5.5.5-Source.tar.gz) = 62996496da51971e384fc26dd336ef2785c2dca7
Size (DarwinStreamingSrvr5.5.5-Source.tar.gz) = 21468268 bytes
SHA1 (patch-APIModules_QTSSAdminModule_AdminElementNode.cpp) = 3138cf323890d3c1789467f29efcc65f6489d5eb
SHA1 (patch-APIModules_QTSSMP3StreamingModule_QTSSMP3StreamingModule.cpp) = 0461ce97cdf2e7dd062d75b0139ee4c29e347218
SHA1 (patch-APIModules_QTSSReflectorModule_QTSSReflectorModule.cpp) = 52238d46381f3cfe8f0425e4d5e93e8ce8959179
SHA1 (patch-CommonUtilitiesLib_EventContext.h) = e6d8f19e54670141e35a811df64366ad9983fbd7
SHA1 (patch-CommonUtilitiesLib_Task.cpp) = 5274c99a1f9239ef5a2096a48e3925a024868615
SHA1 (patch-CommonUtilitiesLib_Task.h) = 7b231d0f84548c7b11fd392ebad9b96b6764428b
SHA1 (patch-QTFileTools_QTBroadcaster.tproj_QTBroadcaster.cpp) = 2c3efe74e286e3d2cb66448461f0b7b8d278705c
SHA1 (patch-Server.tproj_main.cpp) = d50e581a54609dab6a8146a39faf036de9c39ebf
SHA1 (patch-aa) = 2fc84964264f9b6529d031801b36bcca89f591a6
SHA1 (patch-ab) = cbd5aee473fcdd474fbdb13c0f9a769b544f250c
SHA1 (patch-ac) = a9d9ae530402c0976bcb93386b7d202aea633fab
SHA1 (patch-ad) = c3364ac4f520bae65ef8f63081cd8878c027bd08
SHA1 (patch-ae) = a0b7cc02576b8488702a4fc280a1a6aa17313974
SHA1 (patch-af) = 2e96215958104910c17b0abb149fb99551bfd5e8
SHA1 (patch-ag) = 1d0457166760a3dace57934418912cf82f7f9793
SHA1 (patch-ah) = fc7cf868dc5c9a01e703532ef81f02d70e07e1da
SHA1 (patch-ai) = 8d48abfe3c8def3de806d05f15a685b79acde3b9
SHA1 (patch-aj) = c430e97b3c99c31722474801cb3dfa31f8332413
SHA1 (patch-ak) = d573cee55a6097caf36de30cf95ea542c1f7a24f
SHA1 (patch-al) = e8aa206cca186c568569da743344225efbef4c44
SHA1 (patch-am) = 69f6c214a5922a7803708b35525d212b4bd3cff9
SHA1 (patch-an) = a87b660201f7c5674634966fab232aabd7467276
SHA1 (patch-ap) = 6fa5a543b0e20fb94e1695bd422600ade3612ce5
SHA1 (patch-aq) = ce5e88b4454139c0f7f7b3ae19b9d02e088a3cf4
SHA1 (patch-ar) = 31681ff6208969a1a44b7161187868b367ea4140
SHA1 (patch-as) = a149fedb77925063c64cef500e57e7e2fca90622
SHA1 (patch-at) = ce7db215f0650c1ee558b9c494aa14c30e8fda89
SHA1 (patch-au) = e8a060399da968e078ec38ff35de9c8928b0ef46
SHA1 (patch-av) = 9336a4a15f5af43d3b404ade340f7f571782a14a

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-APIModules_QTSSAdminModule_AdminElementNode.cpp,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- APIModules/QTSSAdminModule/AdminElementNode.cpp.orig 2003-08-15 23:52:42.000000000 +0000
+++ APIModules/QTSSAdminModule/AdminElementNode.cpp
@@ -883,7 +883,7 @@ inline SInt32 ElementNode::ResolveSPLKe
if (fElementMap != NULL && keyPtr != NULL && keyPtr->Len > 0)
{ osrefptr = fElementMap->Resolve(keyPtr);
if (osrefptr != NULL)
- index = (SInt32) osrefptr->GetObject();
+ index = (SInt32)(intptr_t) osrefptr->GetObject();
}
return index;

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-APIModules_QTSSMP3StreamingModule_QTSSMP3StreamingModule.cpp,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- APIModules/QTSSMP3StreamingModule/QTSSMP3StreamingModule.cpp.orig 2004-12-01 13:05:34.000000000 +0000
+++ APIModules/QTSSMP3StreamingModule/QTSSMP3StreamingModule.cpp
@@ -1172,7 +1172,7 @@ MP3SessionRefKey::MP3SessionRefKey(MP3Se
{
fMP3Session = fKeyValue->GetMP3Session();
if (fMP3Session != NULL)
- fHashValue = (SInt32)fMP3Session->GetSession();
+ fHashValue = (SInt32)(intptr_t)fMP3Session->GetSession();
}
else
{
@@ -1182,7 +1182,7 @@ MP3SessionRefKey::MP3SessionRefKey(MP3Se
MP3SessionRefKey::MP3SessionRefKey(QTSS_RTSPSessionObject rtspSessRef) :
fKeyValue(NULL),
- fHashValue((SInt32)rtspSessRef),
+ fHashValue((SInt32)(intptr_t)rtspSessRef),
fMP3Session(NULL)
{
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-APIModules_QTSSReflectorModule_QTSSReflectorModule.cpp,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp.orig 2005-07-31 09:00:31.000000000 +0000
+++ APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp
@@ -1114,7 +1114,7 @@ void DoDescribeAddRequiredSDPLines(QTSS_
editedSDP->Put("o=broadcast_sdp ");
char tempBuff[256]= "";
tempBuff[255] = 0;
- qtss_snprintf(tempBuff,sizeof(tempBuff) - 1, "%lu", (UInt32) theSession);
+ qtss_snprintf(tempBuff,sizeof(tempBuff) - 1, "%lu", (UInt32)(uintptr_t) theSession);
editedSDP->Put(tempBuff);
editedSDP->Put(" ");

View File

@@ -0,0 +1,28 @@
$NetBSD: patch-CommonUtilitiesLib_EventContext.h,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- CommonUtilitiesLib/EventContext.h.orig 2005-05-18 08:01:14.000000000 +0000
+++ CommonUtilitiesLib/EventContext.h
@@ -83,9 +83,9 @@ class EventContext
if (EVENTCONTEXT_DEBUG)
{
if (fTask== NULL)
- qtss_printf("EventContext::SetTask context=%lu task= NULL\n", (UInt32) this);
+ qtss_printf("EventContext::SetTask context=%lu task= NULL\n", (UInt32)(uintptr_t) this);
else
- qtss_printf("EventContext::SetTask context=%lu task= %lu name=%s\n",(UInt32) this,(UInt32) fTask, fTask->fTaskName);
+ qtss_printf("EventContext::SetTask context=%lu task= %lu name=%s\n",(UInt32)(uintptr_t) this,(UInt32)(uintptr_t) fTask, fTask->fTaskName);
}
}
@@ -119,9 +119,9 @@ class EventContext
if (EVENTCONTEXT_DEBUG)
{
if (fTask== NULL)
- qtss_printf("EventContext::ProcessEvent context=%lu task=NULL\n",(UInt32) this);
+ qtss_printf("EventContext::ProcessEvent context=%lu task=NULL\n",(UInt32)(uintptr_t) this);
else
- qtss_printf("EventContext::ProcessEvent context=%lu task=%lu TaskName=%s\n",(UInt32)this,(UInt32) fTask, fTask->fTaskName);
+ qtss_printf("EventContext::ProcessEvent context=%lu task=%lu TaskName=%s\n",(UInt32)(uintptr_t)this,(UInt32)(uintptr_t) fTask, fTask->fTaskName);
}
if (fTask != NULL)

View File

@@ -0,0 +1,82 @@
$NetBSD: patch-CommonUtilitiesLib_Task.cpp,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- CommonUtilitiesLib/Task.cpp.orig 2005-05-31 10:54:25.000000000 +0000
+++ CommonUtilitiesLib/Task.cpp
@@ -104,7 +104,7 @@ void Task::Signal(EventFlags events)
// Task needs to be placed on a particular thread.
{
if (TASK_DEBUG) if (fTaskName[0] == 0) ::strcpy(fTaskName, " corrupt task");
- if (TASK_DEBUG) qtss_printf("Task::Signal enque TaskName=%s fUseThisThread=%lu q elem=%lu enclosing=%lu\n", fTaskName, (UInt32) fUseThisThread, (UInt32) &fTaskQueueElem, (UInt32) this);
+ if (TASK_DEBUG) qtss_printf("Task::Signal enque TaskName=%s fUseThisThread=%lu q elem=%lu enclosing=%lu\n", fTaskName, (UInt32)(uintptr_t) fUseThisThread, (UInt32)(uintptr_t) &fTaskQueueElem, (UInt32)(uintptr_t) this);
fUseThisThread->fTaskQueue.EnQueue(&fTaskQueueElem);
}
else
@@ -113,12 +113,12 @@ void Task::Signal(EventFlags events)
unsigned int theThread = atomic_add(&sThreadPicker, 1);
theThread %= TaskThreadPool::sNumTaskThreads;
if (TASK_DEBUG) if (fTaskName[0] == 0) ::strcpy(fTaskName, " corrupt task");
- if (TASK_DEBUG) qtss_printf("Task::Signal enque TaskName=%s thread=%lu q elem=%lu enclosing=%lu\n", fTaskName, (UInt32)TaskThreadPool::sTaskThreadArray[theThread],(UInt32) &fTaskQueueElem,(UInt32) this);
+ if (TASK_DEBUG) qtss_printf("Task::Signal enque TaskName=%s thread=%lu q elem=%lu enclosing=%lu\n", fTaskName, (UInt32)(uintptr_t)TaskThreadPool::sTaskThreadArray[theThread],(UInt32)(uintptr_t) &fTaskQueueElem,(UInt32)(uintptr_t) this);
TaskThreadPool::sTaskThreadArray[theThread]->fTaskQueue.EnQueue(&fTaskQueueElem);
}
}
else
- if (TASK_DEBUG) qtss_printf("Task::Signal sent to dead TaskName=%s q elem=%lu enclosing=%lu\n", fTaskName, (UInt32) &fTaskQueueElem, (UInt32) this);
+ if (TASK_DEBUG) qtss_printf("Task::Signal sent to dead TaskName=%s q elem=%lu enclosing=%lu\n", fTaskName, (UInt32)(uintptr_t) &fTaskQueueElem, (UInt32)(uintptr_t) this);
}
@@ -165,7 +165,7 @@ void TaskThread::Entry()
if (theTask->fWriteLock)
{
OSMutexWriteLocker mutexLocker(&TaskThreadPool::sMutexRW);
- if (TASK_DEBUG) qtss_printf("TaskThread::Entry run global locked TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float() ,(SInt32) this,(SInt32) theTask);
+ if (TASK_DEBUG) qtss_printf("TaskThread::Entry run global locked TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float() ,(SInt32)(uintptr_t) this,(SInt32)(uintptr_t) theTask);
theTimeout = theTask->Run();
theTask->fWriteLock = false;
@@ -173,7 +173,7 @@ void TaskThread::Entry()
else
{
OSMutexReadLocker mutexLocker(&TaskThreadPool::sMutexRW);
- if (TASK_DEBUG) qtss_printf("TaskThread::Entry run TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float(), (SInt32) this,(SInt32) theTask);
+ if (TASK_DEBUG) qtss_printf("TaskThread::Entry run TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float(), (SInt32)(uintptr_t) this,(SInt32)(uintptr_t) theTask);
theTimeout = theTask->Run();
@@ -187,7 +187,7 @@ void TaskThread::Entry()
{
if (TASK_DEBUG)
{
- qtss_printf("TaskThread::Entry delete TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float(), (SInt32) this, (SInt32) theTask);
+ qtss_printf("TaskThread::Entry delete TaskName=%s CurMSec=%.3f thread=%ld task=%ld\n", theTask->fTaskName, OS::StartTimeMilli_Float(), (SInt32)(uintptr_t) this, (SInt32)(uintptr_t) theTask);
theTask->fUseThisThread = NULL;
@@ -226,7 +226,7 @@ void TaskThread::Entry()
{
//note that if we get here, we don't reset theTask, so it will get passed into
//WaitForTask
- if (TASK_DEBUG) qtss_printf("TaskThread::Entry insert TaskName=%s in timer heap thread=%lu elem=%lu task=%ld timeout=%.2f\n", theTask->fTaskName, (UInt32) this, (UInt32) &theTask->fTimerHeapElem,(SInt32) theTask, (float)theTimeout / (float) 1000);
+ if (TASK_DEBUG) qtss_printf("TaskThread::Entry insert TaskName=%s in timer heap thread=%lu elem=%lu task=%ld timeout=%.2f\n", theTask->fTaskName, (UInt32)(uintptr_t) this, (UInt32)(uintptr_t) &theTask->fTimerHeapElem,(SInt32)(uintptr_t) theTask, (float)theTimeout / (float) 1000);
theTask->fTimerHeapElem.SetValue(OS::Milliseconds() + theTimeout);
fHeap.Insert(&theTask->fTimerHeapElem);
(void)atomic_or(&theTask->fEvents, Task::kIdleEvent);
@@ -264,7 +264,7 @@ Task* TaskThread::WaitForTask()
if ((fHeap.PeekMin() != NULL) && (fHeap.PeekMin()->GetValue() <= theCurrentTime))
{
- if (TASK_DEBUG) qtss_printf("TaskThread::WaitForTask found timer-task=%s thread %lu fHeap.CurrentHeapSize(%lu) taskElem = %lu enclose=%lu\n",((Task*)fHeap.PeekMin()->GetEnclosingObject())->fTaskName, (UInt32) this, fHeap.CurrentHeapSize(), (UInt32) fHeap.PeekMin(), (UInt32) fHeap.PeekMin()->GetEnclosingObject());
+ if (TASK_DEBUG) qtss_printf("TaskThread::WaitForTask found timer-task=%s thread %lu fHeap.CurrentHeapSize(%lu) taskElem = %lu enclose=%lu\n",((Task*)fHeap.PeekMin()->GetEnclosingObject())->fTaskName, (UInt32)(uintptr_t) this, fHeap.CurrentHeapSize(), (UInt32)(uintptr_t) fHeap.PeekMin(), (UInt32)(uintptr_t) fHeap.PeekMin()->GetEnclosingObject());
return (Task*)fHeap.ExtractMin()->GetEnclosingObject();
}
@@ -286,7 +286,7 @@ Task* TaskThread::WaitForTask()
OSQueueElem* theElem = fTaskQueue.DeQueueBlocking(this, (SInt32) theTimeout);
if (theElem != NULL)
{
- if (TASK_DEBUG) qtss_printf("TaskThread::WaitForTask found signal-task=%s thread %lu fTaskQueue.GetLength(%lu) taskElem = %lu enclose=%lu\n", ((Task*)theElem->GetEnclosingObject())->fTaskName, (UInt32) this, fTaskQueue.GetQueue()->GetLength(), (UInt32) theElem, (UInt32)theElem->GetEnclosingObject() );
+ if (TASK_DEBUG) qtss_printf("TaskThread::WaitForTask found signal-task=%s thread %lu fTaskQueue.GetLength(%lu) taskElem = %lu enclose=%lu\n", ((Task*)theElem->GetEnclosingObject())->fTaskName, (UInt32)(uintptr_t) this, fTaskQueue.GetQueue()->GetLength(), (UInt32)(uintptr_t) theElem, (UInt32)(uintptr_t)theElem->GetEnclosingObject() );
return (Task*)theElem->GetEnclosingObject();
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-CommonUtilitiesLib_Task.h,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- CommonUtilitiesLib/Task.h.orig 2005-05-27 04:07:59.000000000 +0000
+++ CommonUtilitiesLib/Task.h
@@ -116,7 +116,7 @@ class Task
fUseThisThread = (TaskThread*)OSThread::GetCurrent();
Assert(fUseThisThread != NULL);
if (TASK_DEBUG) if (fTaskName[0] == 0) ::strcpy(fTaskName, " corrupt task");
- if (TASK_DEBUG) qtss_printf("Task::ForceSameThread fUseThisThread %lu task %s enque elem=%lu enclosing %lu\n", (UInt32)fUseThisThread, fTaskName,(UInt32) &fTaskQueueElem,(UInt32) this);
+ if (TASK_DEBUG) qtss_printf("Task::ForceSameThread fUseThisThread %lu task %s enque elem=%lu enclosing %lu\n", (UInt32)(uintptr_t)fUseThisThread, fTaskName,(UInt32)(uintptr_t) &fTaskQueueElem,(UInt32)(uintptr_t) this);
}
SInt64 CallLocked() { ForceSameThread();
fWriteLock = true;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-QTFileTools_QTBroadcaster.tproj_QTBroadcaster.cpp,v 1.1 2013/03/24 16:51:07 joerg Exp $
--- QTFileTools/QTBroadcaster.tproj/QTBroadcaster.cpp.orig 2013-03-24 12:37:12.000000000 +0000
+++ QTFileTools/QTBroadcaster.tproj/QTBroadcaster.cpp
@@ -201,7 +201,7 @@ int main(int argc, char *argv[]) {
// Send the packet.
memset(&sin, 0, sizeof(struct sockaddr_in));
sin.sin_family = AF_INET;
- sin.sin_port = htons( (int) RTPFile->GetLastPacketTrack()->Cookie1 );
+ sin.sin_port = htons( (int)(uintptr_t) RTPFile->GetLastPacketTrack()->Cookie1 );
sin.sin_addr.s_addr = inet_addr(IPAddress);
sendto(s, Packet, PacketLength, 0, (struct sockaddr *)&sin, sizeof(struct sockaddr));
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-Server.tproj_main.cpp,v 1.1 2013/03/24 16:51:08 joerg Exp $
--- Server.tproj/main.cpp.orig 2005-04-27 12:21:14.000000000 +0000
+++ Server.tproj/main.cpp
@@ -212,7 +212,7 @@ int main(int argc, char * argv[])
//(void) ::signal(SIGPIPE, SIG_IGN);
struct sigaction act;
-#if defined(sun) || defined(i386) || defined (__MacOSX__) || defined(__powerpc__) || defined (__osf__) || defined (__sgi_cc__) || defined (__hpux__)
+#if defined(sun) || defined(i386) || defined (__MacOSX__) || defined(__powerpc__) || defined (__osf__) || defined (__sgi_cc__) || defined (__hpux__) || defined(__NetBSD__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&sigcatcher;

View File

@@ -0,0 +1,52 @@
$NetBSD: patch-aa,v 1.2 2007/03/07 18:22:43 joerg Exp $
--- PlatformHeader.h.orig 2005-05-19 00:51:25.000000000 +0000
+++ PlatformHeader.h
@@ -144,6 +144,47 @@
#define EXPORT
#define _REENTRANT 1
+#elif defined(__DragonFly__)
+
+#include <sys/endian.h>
+#if _BYTE_ORDER == _BIG_ENDIAN
+ #define BIGENDIAN 1
+#else
+ #define BIGENDIAN 0
+#endif
+
+#define USE_ATOMICLIB 0
+#define MACOSXEVENTQUEUE 0
+#define __PTHREADS__ 1
+#define __PTHREADS_MUTEXES__ 1
+#define ALLOW_NON_WORD_ALIGN_ACCESS 1
+#define USE_THREAD 1 //Flag used in QTProxy
+#define THREADING_IS_COOPERATIVE 1
+#define USE_THR_YIELD 0
+#define kPlatformNameString "DragonFly"
+#define EXPORT
+#define _REENTRANT 1
+
+#elif __NetBSD__
+
+#define USE_ATOMICLIB 0
+#define MACOSXEVENTQUEUE 0
+#define __PTHREADS__ 1
+#define __PTHREADS_MUTEXES__ 1
+#include <machine/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+ #define BIGENDIAN 1
+#else
+ #define BIGENDIAN 0
+#endif
+#define ALLOW_NON_WORD_ALIGN_ACCESS 1
+#define USE_THREAD 1 //Flag used in QTProxy
+#define THREADING_IS_COOPERATIVE 1
+#define USE_THR_YIELD 0
+#define kPlatformNameString "NetBSD"
+#define EXPORT
+#define _REENTRANT 1
+
#elif __solaris__
#ifdef sparc

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ab,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- Server.tproj/RTSPSession.cpp.orig 2005-04-27 10:17:44.000000000 +0000
+++ Server.tproj/RTSPSession.cpp
@@ -47,7 +47,7 @@
#include "OSArrayObjectDeleter.h"
#include "md5digest.h"
-#if __FreeBSD__ || __hpux__
+#if __FreeBSD__ || __hpux__ || __NetBSD__ || defined(__DragonFly__)
#include <unistd.h>
#endif

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ac,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- RTSPClientLib/ClientSocket.cpp.orig 2003-08-15 23:53:20.000000000 +0000
+++ RTSPClientLib/ClientSocket.cpp
@@ -69,7 +69,7 @@ OS_Error ClientSocket::Open(TCPSocket* i
return theErr;
inSocket->NoDelay();
-#if __FreeBSD__ || __MacOSX__
+#if __FreeBSD__ || __MacOSX__ || __NetBSD__ || defined(__DragonFly__)
// no KeepAlive -- probably should be off for all platforms.
#else
inSocket->KeepAlive();
@@ -162,7 +162,7 @@ void TCPClientSocket::SetOptions(int snd
err = ::setsockopt(fSocket.GetSocketFD(), SOL_SOCKET, SO_RCVBUF, (char*)&rcvBufSize, sizeof(int));
AssertV(err == 0, OSThread::GetErrno());
-#if __FreeBSD__ || __MacOSX__
+#if __FreeBSD__ || __MacOSX__ || __NetBSD__ || defined(__DragonFly__)
struct timeval time;
//int len = sizeof(time);
time.tv_sec = 0;

View File

@@ -0,0 +1,67 @@
$NetBSD: patch-ad,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- PlaylistBroadcaster.tproj/PlaylistBroadcaster.cpp.orig 2005-03-11 23:24:54.000000000 +0000
+++ PlaylistBroadcaster.tproj/PlaylistBroadcaster.cpp
@@ -43,7 +43,9 @@
*/
-
+#if __NetBSD__
+#include <sys/param.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -57,7 +59,7 @@
#if defined (__solaris__) || defined (__osf__) || defined (__sgi__) || defined (__hpux__)
#include "daemon.h"
#else
- #ifndef __FreeBSD__
+ #ifndef __FreeBSD__ || __NetBSD__ || defined(__DragonFly__)
#include <sys/sysctl.h>
#endif
#endif
@@ -2077,7 +2079,7 @@ static void RegisterEventHandlers()
struct sigaction act;
-#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__powerpc__) || defined (__sgi_cc__) || defined(__osf__) || defined(__hpux__)
+#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__powerpc__) || defined (__sgi_cc__) || defined(__osf__) || defined(__hpux__) || defined(__NetBSD__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&SignalEventHandler;
@@ -2094,14 +2096,14 @@ struct sigaction act;
if ( ::signal(SIGTERM, SIG_IGN) != SIG_IGN)
{ // from kill...
if ( ::sigaction(SIGTERM, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
if ( ::signal(SIGINT, SIG_IGN) != SIG_IGN)
{ // ^C signal
if ( ::sigaction(SIGINT, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -2109,7 +2111,7 @@ struct sigaction act;
if ( ::signal(SIGPIPE, SIG_IGN) != SIG_IGN)
{ // broken pipe probably from a failed RTSP session (the server went down?)
if ( ::sigaction(SIGPIPE, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -2117,7 +2119,7 @@ struct sigaction act;
if ( ::signal(SIGHUP, SIG_IGN) != SIG_IGN)
{ // broken pipe probably from a failed RTSP session (the server went down?)
if ( ::sigaction(SIGHUP, &act, NULL) != 0)
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ae,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- PlaylistBroadcaster.tproj/GetLocalIPAddressString.c.orig 2003-08-15 23:53:06.000000000 +0000
+++ PlaylistBroadcaster.tproj/GetLocalIPAddressString.c
@@ -80,9 +80,9 @@ short GetLocalIPAddressString(char *retu
ifc.ifc_len = kMaxAddrBufferSize;
ifc.ifc_buf = buffer;
-#if (__linux__ || __MacOSX__ || __MACOS__ || __linuxppc__ || __solaris__ || __sgi__)
+#if (__linux__ || __MacOSX__ || __MACOS__ || __linuxppc__ || __solaris__ || __sgi__) || __NetBSD__
err = ioctl(tempSocket, SIOCGIFCONF, (char*)&ifc);
-#elif __FreeBSD__
+#elif __FreeBSD__ || defined(__DragonFly__)
err = ioctl(tempSocket, OSIOCGIFCONF, (char*)&ifc);
#else
#error
@@ -90,7 +90,7 @@ short GetLocalIPAddressString(char *retu
if (err == -1) break;
-#if __FreeBSD__
+#if __FreeBSD__ || __NetBSD__ || defined(__DragonFly__)
{
int netdev1, netdev2;
struct ifreq *netdevifr;

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-af,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- PlaylistBroadcaster.tproj/BroadcasterSession.cpp.orig 2004-09-30 14:40:54.000000000 +0000
+++ PlaylistBroadcaster.tproj/BroadcasterSession.cpp
@@ -350,7 +350,7 @@ SInt64 BroadcasterSession::Run()
#if BROADCAST_SESSION_DEBUG
qtss_printf("Session timing out.\n");
#endif
-#if __FreeBSD__ || __MacOSX__
+#if __FreeBSD__ || __MacOSX__ || __NetBSD__ || defined(__DragonFly__)
if (fTransportType != kTCPTransportType)
{
fTimeoutTask.RefreshTimeout();
@@ -554,7 +554,7 @@ SInt64 BroadcasterSession::Run()
}
break;
}
-#if __FreeBSD__ || __MacOSX__
+#if __FreeBSD__ || __MacOSX__ || __NetBSD__ || defined(__DragonFly__)
case kBroadcasting:
{
#if BROADCAST_SESSION_DEBUG

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ag,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- PlaylistBroadcaster.tproj/BCasterTracker.cpp.orig 2003-08-15 23:53:06.000000000 +0000
+++ PlaylistBroadcaster.tproj/BCasterTracker.cpp
@@ -49,8 +49,10 @@
#include <fcntl.h>
#include <sys/file.h>
#include <sys/stat.h>
+#ifndef __NetBSD__
#include <sys/types.h>
-#if !(defined(__solaris__) || defined(__osf__) || defined(__hpux__))
+#endif
+#if !(defined(__solaris__) || defined(__osf__) || defined(__hpux__) || defined(__NetBSD__) || defined(__DragonFly__))
#include <sys/sysctl.h>
#endif
#include <sys/time.h>

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ah,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- MP3Broadcaster/MP3Broadcaster.cpp.orig 2005-04-27 10:17:42.000000000 +0000
+++ MP3Broadcaster/MP3Broadcaster.cpp
@@ -38,13 +38,16 @@
#include <unistd.h>
#endif
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
#ifndef __Win32__
#include <netdb.h>
#if defined (__solaris__) || defined (__osf__) || defined (__hpux__)
#include "daemon.h"
#else
- #ifndef __FreeBSD__
+ #if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__))
#include <sys/sysctl.h>
#endif
#endif

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ai,v 1.2 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/StrPtrLen.h.orig 2005-05-18 08:01:14.000000000 +0000
+++ CommonUtilitiesLib/StrPtrLen.h
@@ -66,7 +66,12 @@ class StrPtrLen
Bool16 NumEqualIgnoreCase(const char* compare, const UInt32 len) const;
void Delete() { delete [] Ptr; Ptr = NULL; Len = 0; }
- char *ToUpper() { for (UInt32 x = 0; x < Len ; x++) Ptr[x] = toupper (Ptr[x]); return Ptr;}
+ char *ToUpper()
+ {
+ for (UInt32 x = 0; x < Len ; x++)
+ Ptr[x] = toupper (Ptr[x]);
+ return Ptr;
+ }
char *FindStringCase(char *queryCharStr, StrPtrLen *resultStr, Bool16 caseSensitive) const;

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-aj,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/SocketUtils.cpp.orig 2005-05-18 08:01:14.000000000 +0000
+++ CommonUtilitiesLib/SocketUtils.cpp
@@ -340,9 +340,9 @@ void SocketUtils::Initialize(Bool16 look
ifc.ifc_len = kMaxAddrBufferSize;
ifc.ifc_buf = buffer;
-#if __linux__ || __linuxppc__ || __solaris__ || __MacOSX__ || __sgi__ || __osf__
+#if __linux__ || __linuxppc__ || __solaris__ || __MacOSX__ || __sgi__ || __osf__ || __NetBSD__
int err = ::ioctl(tempSocket, SIOCGIFCONF, (char*)&ifc);
-#elif __FreeBSD__
+#elif __FreeBSD__ || defined(__DragonFly__)
int err = ::ioctl(tempSocket, OSIOCGIFCONF, (char*)&ifc);
#else
#error
@@ -350,7 +350,7 @@ void SocketUtils::Initialize(Bool16 look
if (err == -1)
return;
-#if __FreeBSD__
+#if __FreeBSD__ || __NetBSD__ || defined(__DragonFly__)
int netdev1, netdev2;
struct ifreq *netdevifr;
netdevifr = ifc.ifc_req;

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ak,v 1.2 2007/03/07 18:22:43 joerg Exp $
--- CommonUtilitiesLib/OSThread.h.orig 2005-05-31 10:54:25.000000000 +0000
+++ CommonUtilitiesLib/OSThread.h
@@ -37,11 +37,7 @@
#ifndef __Win32__
#if __PTHREADS__
-#if __solaris__ || __sgi__ || __hpux__
#include <errno.h>
-#else
- #include <sys/errno.h>
-#endif
#include <pthread.h>
#else
#include <mach/mach.h>

View File

@@ -0,0 +1,44 @@
$NetBSD: patch-al,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/OSHeaders.h.orig 2005-05-18 08:01:14.000000000 +0000
+++ CommonUtilitiesLib/OSHeaders.h
@@ -48,7 +48,7 @@
/* Platform-specific components */
-#if __linux__ || __linuxppc__ || __FreeBSD__ || __MacOSX__
+#if __linux__ || __linuxppc__ || __FreeBSD__ || __MacOSX__ || __NetBSD__ || defined(__DragonFly__)
/* Defines */
#define _64BITARG_ "q"
@@ -61,21 +61,22 @@
/* Includes */
#include <sys/types.h>
+ #include <stdint.h>
/* Constants */
#define QT_TIME_TO_LOCAL_TIME (-2082844800)
#define QT_PATH_SEPARATOR '/'
/* Typedefs */
- typedef unsigned int PointerSizedInt;
- typedef unsigned char UInt8;
- typedef signed char SInt8;
- typedef unsigned short UInt16;
- typedef signed short SInt16;
- typedef unsigned long UInt32;
- typedef signed long SInt32;
- typedef signed long long SInt64;
- typedef unsigned long long UInt64;
+ typedef uintptr_t PointerSizedInt;
+ typedef uint8_t UInt8;
+ typedef int8_t SInt8;
+ typedef uint16_t UInt16;
+ typedef int16_t SInt16;
+ typedef uint32_t UInt32;
+ typedef int32_t SInt32;
+ typedef int64_t SInt64;
+ typedef uint64_t UInt64;
typedef float Float32;
typedef double Float64;
typedef UInt16 Bool16;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-am,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/OSCodeFragment.cpp.orig 2005-05-27 10:17:02.000000000 +0000
+++ CommonUtilitiesLib/OSCodeFragment.cpp
@@ -62,6 +62,8 @@ OSCodeFragment::OSCodeFragment(const cha
fFragmentP = dlopen((char *)inPath, RTLD_NOW | RTLD_GLOBAL);
#elif defined(__FreeBSD__)
fFragmentP = dlopen(inPath, RTLD_NOW);
+#elif defined(__NetBSD__) || defined(__DragonFly__)
+ fFragmentP = dlopen(inPath, RTLD_LAZY);
#elif defined(__sgi__)
fFragmentP = dlopen(inPath, RTLD_NOW); // not sure this should be either RTLD_NOW or RTLD_LAZY
#elif defined(__Win32__)

View File

@@ -0,0 +1,56 @@
$NetBSD: patch-an,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- MP3Broadcaster/BroadcasterMain.cpp.orig 2005-03-11 23:24:54.000000000 +0000
+++ MP3Broadcaster/BroadcasterMain.cpp
@@ -216,7 +216,7 @@ static void RegisterEventHandlers()
struct sigaction act;
-#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__sgi__) || defined(__osf__) || defined(__hpux__)
+#if defined(sun) || defined(i386) || defined(__MacOSX__) || defined(__sgi__) || defined(__osf__) || defined(__hpux__) || defined(__NetBSD__) || defined(__DragonFly__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&SignalEventHandler;
@@ -229,14 +229,14 @@ struct sigaction act;
if ( ::signal(SIGTERM, SIG_IGN) != SIG_IGN)
{ // from kill...
if ( ::sigaction(SIGTERM, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
if ( ::signal(SIGINT, SIG_IGN) != SIG_IGN)
{ // ^C signal
if ( ::sigaction(SIGINT, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -244,7 +244,7 @@ struct sigaction act;
if ( ::signal(SIGPIPE, SIG_IGN) != SIG_IGN)
{ // broken pipe probably from a failed RTSP session (the server went down?)
if ( ::sigaction(SIGPIPE, &act, NULL) != 0 )
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -252,7 +252,7 @@ struct sigaction act;
if ( ::signal(SIGHUP, SIG_IGN) != SIG_IGN)
{ // catch any SIGHUP
if ( ::sigaction(SIGHUP, &act, NULL) != 0)
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}
@@ -260,7 +260,7 @@ struct sigaction act;
if ( ::signal(SIGALRM, SIG_IGN) != SIG_IGN)
{ // catch any SIGALRM
if ( ::sigaction(SIGALRM, &act, NULL) != 0)
- { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)SIG_ERR );
+ { qtss_printf( "- PlaylistBroadcaster: System error (%i).\n", (int)(uintptr_t)SIG_ERR );
}
}

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ap,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/OSRef.h.orig 2007-02-15 23:13:47.000000000 +0000
+++ CommonUtilitiesLib/OSRef.h
@@ -58,6 +58,9 @@ class OSRefTableUtils
friend class OSRefKey;
};
+// defined below
+class OSRefKey;
+
class OSRef
{
public:

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aq,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- CommonUtilitiesLib/UDPDemuxer.h.orig 2007-02-15 23:13:47.000000000 +0000
+++ CommonUtilitiesLib/UDPDemuxer.h
@@ -45,6 +45,8 @@ class UDPDemuxerKey;
//IMPLEMENTATION ONLY:
//HASH TABLE CLASSES USED ONLY IN IMPLEMENTATION
+// defined below
+class UDPDemuxerKey;
class UDPDemuxerUtils
{

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ar,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- Server.tproj/QTSServer.h.orig 2007-02-15 23:13:49.000000000 +0000
+++ Server.tproj/QTSServer.h
@@ -115,7 +115,7 @@ class QTSServer : public QTSServerInterf
// GLOBAL TASKS
RTCPTask* fRTCPTask;
RTPStatsUpdaterTask*fStatsTask;
- SessionTimeoutTask *fSessionTimeoutTask;
+ //SessionTimeoutTask *fSessionTimeoutTask;
static char* sPortPrefString;
static XMLPrefsParser* sPrefsSource;
static PrefsSource* sMessagesSource;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-as,v 1.2 2013/03/24 16:51:08 joerg Exp $
--- Server.tproj/RTPSessionInterface.h.orig 2007-02-15 23:13:49.000000000 +0000
+++ Server.tproj/RTPSessionInterface.h
@@ -40,6 +40,7 @@
#include "RTCPSRPacket.h"
#include "RTSPSessionInterface.h"
+#include "RTSPRequestInterface.h"
#include "TimeoutTask.h"
#include "Task.h"
#include "RTPBandwidthTracker.h"

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-at,v 1.3 2013/03/24 16:51:08 joerg Exp $
--- APIModules/QTSSSpamDefenseModule.bproj/QTSSSpamDefenseModule.cpp.orig 2007-02-15 23:13:47.000000000 +0000
+++ APIModules/QTSSSpamDefenseModule.bproj/QTSSSpamDefenseModule.cpp
@@ -62,6 +62,8 @@ class IPAddrTableElem
friend class OSHashTable<IPAddrTableElem, IPAddrTableKey>;
};
+// defined below
+class IPAddrTableKey;
class IPAddrTableKey
{

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-au,v 1.2 2013/03/24 16:51:08 joerg Exp $
--- QTFileTools/QTBroadcaster.tproj/Makefile.POSIX.orig 2005-04-27 12:21:14.000000000 +0000
+++ QTFileTools/QTBroadcaster.tproj/Makefile.POSIX
@@ -6,10 +6,10 @@ C++ = $(CPLUS)
CC = $(CCOMP)
LINK = $(LINKER)
CCFLAGS += $(COMPILER_FLAGS) $(INCLUDE_FLAG) ../../PlatformHeader.h -g -Wall
-LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a
+LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
#OPTIMIZATION
-CCFLAGS += -O3
+CCFLAGS +=
# EACH DIRECTORY WITH HEADERS MUST BE APPENDED IN THIS MANNER TO THE CCFLAGS

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-av,v 1.2 2013/03/24 16:51:08 joerg Exp $
--- QTFileTools/QTFileInfo.tproj/Makefile.POSIX.orig 2005-04-27 12:21:14.000000000 +0000
+++ QTFileTools/QTFileInfo.tproj/Makefile.POSIX
@@ -6,10 +6,10 @@ C++ = $(CPLUS)
CC = $(CCOMP)
LINK = $(LINKER)
CCFLAGS += $(COMPILER_FLAGS) $(INCLUDE_FLAG) ../../PlatformHeader.h -g -Wall
-LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a
+LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
#OPTIMIZATION
-CCFLAGS += -O3
+CCFLAGS +=
# EACH DIRECTORY WITH HEADERS MUST BE APPENDED IN THIS MANNER TO THE CCFLAGS