Date: Tue, 5 Mar 2002 13:41:47 +0600 (NOVT) From: Alexey Dokuchaev <danfe@cytherea.weblab.nsu.ru> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/35554: NEW PORT: mmsclient, for fetching Microsoft Message-ID: <200203050741.g257fl524940@cytherea.weblab.nsu.ru>
next in thread | raw e-mail | index | archive | help
>Number: 35554 >Category: ports >Synopsis: NEW PORT: mmsclient, for fetching Microsoft >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 05 01:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alexey Dokuchaev >Release: FreeBSD 4.5-STABLE i386 >Organization: CNIT NSU >Environment: System: FreeBSD cytherea.weblab.nsu.ru 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Feb 3 22:19:53 NOVT 2002 root@cytherea.weblab.nsu.ru:/usr/src/sys/compile/CYTHEREA i386 >Description: mmsclient is a simple utility that allows you to download Internet streams using Microsoft's MMS protocol, e.g. CNN video and similar. Downloaded stream can be watched/listened with any software that understands Microsoft Media format, like xine with mms-plugin. >How-To-Repeat: >Fix: # 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: # # mmsclient/ # mmsclient/Makefile # mmsclient/distinfo # mmsclient/pkg-comment # mmsclient/pkg-descr # mmsclient/pkg-plist # mmsclient/files # mmsclient/files/patch-aa # mmsclient/files/patch-ab # mmsclient/files/mmsclient.1 # echo c - mmsclient/ mkdir -p mmsclient/ > /dev/null 2>&1 echo x - mmsclient/Makefile sed 's/^X//' >mmsclient/Makefile << 'END-of-mmsclient/Makefile' X# New ports collection makefile for: mmsclient X# Date created: 4 March 2002 X# Whom: danfe@regency.nsu.ru X# X# $FreeBSD$ X# X XPORTNAME= mmsclient XPORTVERSION= 0.0.3 XCATEGORIES= graphics audio XMASTER_SITES= http://www.geocities.com/majormms/ \ X ftp://danfe.rimusa.org/tmp/ \ X http://inet.ssc.nsu.ru/~danfe/ XDISTNAME= mms_client-${PORTVERSION} X XMAINTAINER?= danfe@regency.nsu.ru X XGNU_CONFIGURE= yes XMAN1= mmsclient.1 X Xpost-install: X ${INSTALL_MAN} ${FILESDIR}/mmsclient.1 ${MANPREFIX}/man/man1 X X.include <bsd.port.mk> END-of-mmsclient/Makefile echo x - mmsclient/distinfo sed 's/^X//' >mmsclient/distinfo << 'END-of-mmsclient/distinfo' XMD5 (mms_client-0.0.3.tar.gz) = c91171a0bbbfb94290d362e907432787 END-of-mmsclient/distinfo echo x - mmsclient/pkg-comment sed 's/^X//' >mmsclient/pkg-comment << 'END-of-mmsclient/pkg-comment' XDownload Microsoft Media streams END-of-mmsclient/pkg-comment echo x - mmsclient/pkg-descr sed 's/^X//' >mmsclient/pkg-descr << 'END-of-mmsclient/pkg-descr' Xmmsclient allows you to download Internet streams using Microsoft's MMS Xprotocol, e.g. CNN video and similar. Downloaded stream can be Xwatched/listened with any software that understands Microsoft Media Xformat, like xine with mms-plugin. X XWWW: http://www.geocities.com/majormms/ END-of-mmsclient/pkg-descr echo x - mmsclient/pkg-plist sed 's/^X//' >mmsclient/pkg-plist << 'END-of-mmsclient/pkg-plist' Xbin/mmsclient END-of-mmsclient/pkg-plist echo c - mmsclient/files mkdir -p mmsclient/files > /dev/null 2>&1 echo x - mmsclient/files/patch-aa sed 's/^X//' >mmsclient/files/patch-aa << 'END-of-mmsclient/files/patch-aa' X--- configure.orig Mon Mar 4 21:23:59 2002 X+++ configure Mon Mar 4 21:24:40 2002 X@@ -1649,7 +1649,6 @@ X fi X X X-dbl X X CFLAGS="$CFLAGS -Wall" X END-of-mmsclient/files/patch-aa echo x - mmsclient/files/patch-ab sed 's/^X//' >mmsclient/files/patch-ab << 'END-of-mmsclient/files/patch-ab' X--- client.c.orig Sat Dec 29 09:40:48 2001 X+++ client.c Mon Mar 4 21:42:05 2002 X@@ -277,12 +277,12 @@ X int packet_len, command; X char data[BUF_SIZE]; X X- if (!get_data (s, &packet_len, 4)) { X+ if (!get_data (s, (char *)&packet_len, 4)) { X printf ("packet_len read failed\n"); X return 0; X } X X- packet_len = get_32 (&packet_len, 0) + 4; X+ packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4; X X printf ("command packet detected, len=%d\n", X packet_len); X@@ -308,7 +308,7 @@ X int interp_header (uint8_t *header, int header_len) { X X int i; X- int packet_length; X+ int packet_length = 0; X X /* X * parse header X@@ -416,12 +416,12 @@ X X int packet_len, command; X X- if (!get_data (s, &packet_len, 4)) { X+ if (!get_data (s, (char *)&packet_len, 4)) { X printf ("packet_len read failed\n"); X return 0; X } X X- packet_len = get_32 (&packet_len, 0) + 4; X+ packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4; X X printf ("command packet detected, len=%d\n", X packet_len); END-of-mmsclient/files/patch-ab echo x - mmsclient/files/mmsclient.1 sed 's/^X//' >mmsclient/files/mmsclient.1 << 'END-of-mmsclient/files/mmsclient.1' X.\" X.\"man-page for mmsclient X.\" X.\"Derived from the man-page for axel download manager, which was originally X.\"based on example in the wonderful book called Beginning Linux Programming, X.\"written by Richard Stone and Neil Matthew. X.\" X.TH MMSCLIENT 1 X X.SH NAME X\fBmmsclient\fP \- download Microsoft Media streams X X.SH SYNOPSIS X.B mmsclient X\fIurl1\fP X X.SH DESCRIPTION Xmmsclient is a simple utility that allows you to download Internet streams Xusing Microsoft's MMS protocol, e.g. CNN video and similar. Downloaded Xstream can be watched/listened with any software that understands Microsoft XMedia format, like xine with mms-plugin. X X.SH OPTIONS X.PP XOnly one argument is required, the URL to the stream you want to download. XDon't let to confuse yourself by verbose output, once it's finished, you'll Xfind the stream .asf file in the current directory. X X.SH CREDITS XThis software would never have been possible without the help from Xhttp://get.to/sdp. X X.SH EXAMPLES X.nf Xmmsclient mms://netshow.msn.com/msnbc8 X.fi X XThis will attempt to download Microsoft Media stream and save it as X`msnbc8' file in the current directory. X X.SH BUGS X.PP XLacks some useful command line options, not to mention probable bugs. X X.SH AUTHORS Xmmsclient was written by "Major MMS" (http://www.geocities.com/majormms/). X XThe manual page was written by Alexey Dokuchaev (danfe@regency.nsu.ru). END-of-mmsclient/files/mmsclient.1 exit >Release-Note: >Audit-Trail: >Unformatted: Media streams from the Net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203050741.g257fl524940>