summaryrefslogtreecommitdiff
path: root/community/mms_client
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mms_client
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mms_client')
-rw-r--r--community/mms_client/ChangeLog2
-rw-r--r--community/mms_client/PKGBUILD28
-rw-r--r--community/mms_client/mmsclient-0.0.3-fbsd.patch41
-rw-r--r--community/mms_client/mmsclient-0.0.3-r1.patch92
4 files changed, 163 insertions, 0 deletions
diff --git a/community/mms_client/ChangeLog b/community/mms_client/ChangeLog
new file mode 100644
index 000000000..7fd5bbf99
--- /dev/null
+++ b/community/mms_client/ChangeLog
@@ -0,0 +1,2 @@
+2007-06-26 tardo <tardo@nagi-fanboi.net>
+* Built for x86_64
diff --git a/community/mms_client/PKGBUILD b/community/mms_client/PKGBUILD
new file mode 100644
index 000000000..8cdb4f89b
--- /dev/null
+++ b/community/mms_client/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor: William Rea <sillywilly@gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=mms_client
+pkgver=0.0.3
+pkgrel=4
+pkgdesc="mms protocol download utility"
+arch=('i686' 'x86_64')
+url="http://ole.tange.dk/projekter/kontroversielt/www.geocities.com/majormms/"
+license=('GPL')
+source=(http://ole.tange.dk/projekter/kontroversielt/www.geocities.com/majormms/mms_client-0.0.3.tar.gz
+ mmsclient-0.0.3-fbsd.patch \
+ mmsclient-0.0.3-r1.patch)
+md5sums=('c91171a0bbbfb94290d362e907432787' '8b1f4c95b4b13abd91d2c7c4ba51ea23'\
+ 'b85485058a26b3a0881639bc02de71cb')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p0 -i ../mmsclient-0.0.3-fbsd.patch
+ patch -p1 -i ../mmsclient-0.0.3-r1.patch
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make prefix=${pkgdir}/usr install
+}
diff --git a/community/mms_client/mmsclient-0.0.3-fbsd.patch b/community/mms_client/mmsclient-0.0.3-fbsd.patch
new file mode 100644
index 000000000..68904d616
--- /dev/null
+++ b/community/mms_client/mmsclient-0.0.3-fbsd.patch
@@ -0,0 +1,41 @@
+--- client.c.orig Sat Dec 29 09:40:48 2001
++++ client.c Mon Mar 4 21:42:05 2002
+@@ -277,12 +277,12 @@
+ int packet_len, command;
+ char data[BUF_SIZE];
+
+- if (!get_data (s, &packet_len, 4)) {
++ if (!get_data (s, (char *)&packet_len, 4)) {
+ printf ("packet_len read failed\n");
+ return 0;
+ }
+
+- packet_len = get_32 (&packet_len, 0) + 4;
++ packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4;
+
+ printf ("command packet detected, len=%d\n",
+ packet_len);
+@@ -308,7 +308,7 @@
+ int interp_header (uint8_t *header, int header_len) {
+
+ int i;
+- int packet_length;
++ int packet_length = 0;
+
+ /*
+ * parse header
+@@ -416,12 +416,12 @@
+
+ int packet_len, command;
+
+- if (!get_data (s, &packet_len, 4)) {
++ if (!get_data (s, (char *)&packet_len, 4)) {
+ printf ("packet_len read failed\n");
+ return 0;
+ }
+
+- packet_len = get_32 (&packet_len, 0) + 4;
++ packet_len = get_32 ((unsigned char *)&packet_len, 0) + 4;
+
+ printf ("command packet detected, len=%d\n",
+ packet_len);
diff --git a/community/mms_client/mmsclient-0.0.3-r1.patch b/community/mms_client/mmsclient-0.0.3-r1.patch
new file mode 100644
index 000000000..44577643b
--- /dev/null
+++ b/community/mms_client/mmsclient-0.0.3-r1.patch
@@ -0,0 +1,92 @@
+diff -u mms_client-0.0.3/Makefile.in mms_client-0.0.4/Makefile.in
+--- mms_client-0.0.3/Makefile.in 2002-01-21 18:51:31.000000000 -0800
++++ mms_client-0.0.4/Makefile.in 2004-04-17 15:57:10.241509408 -0700
+@@ -85,7 +85,7 @@
+ mmsclient_DEPENDENCIES =
+ mmsclient_LDFLAGS =
+ CFLAGS = @CFLAGS@
+-COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) "-DVERSION=\"$(VERSION)\""
+ CCLD = $(CC)
+ LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+ HEADERS = $(noinst_HEADERS)
+diff -u mms_client-0.0.3/README mms_client-0.0.4/README
+--- mms_client-0.0.3/README 2001-10-09 16:09:36.000000000 -0700
++++ mms_client-0.0.4/README 2004-04-17 17:16:29.204037136 -0700
+@@ -0,0 +1,2 @@
++mmsclient downloads MMS (Microsoft Media Server) streams, and
++saves them to disk.
+diff -u mms_client-0.0.3/client.c mms_client-0.0.4/client.c
+--- mms_client-0.0.3/client.c 2001-12-28 19:40:48.000000000 -0800
++++ mms_client-0.0.4/client.c 2004-04-17 17:02:06.409201888 -0700
+@@ -5,6 +5,9 @@
+ * mms://193.159.244.12/n24_wmt_mid
+ */
+
++#define HELPINFO "Usage: mmsclient mms://<url>\n -v --version\n\tPrint version information\n -h --help\n\tPrint this page\nhttp://www.geocities.com/majormms/\n"
++
++
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <assert.h>
+@@ -475,23 +478,44 @@
+ char *path, *url, *file, *cp;
+
+ if (argc != 2) {
+- printf ("usage: %s url\n", argv[0]);
++ printf ("Usage: %s URL\n", argv[0]);
+ exit(1);
+ }
+-
++
++ /* check for non-url arguments (version or help ...) */
++ if (strncmp(argv[1], "mms://", 6) == 0 && argv[1][6] == 0){ /* Just typed "mms://" with no URL */
++ printf("Error: No URL\n");
++ exit(1);
++ }
++ if (strncmp(argv[1], "mms://", 6) != 0){ /* haven't typed a url */
++
++ if (strncmp(argv[1], "--version", 9) == 0 || strncmp(argv[1], "-v", 9) == 0){
++ printf("%s\n", VERSION);
++ }else if (strncmp(argv[1], "--help", 9) == 0 || strncmp(argv[1], "-h", 9) == 0){
++ printf("%s\n", HELPINFO);
++ }else{
++ printf("Error: unrecognized command %s\n", argv[1]);
++ }
++ exit(1);
++ }
++
+ /* parse url */
+
+ url = argv[1];
+ strncpy (host, &url[6], 255);
+ cp = strchr(host,'/');
+- *cp= 0;
++ if(cp == 0){ /* If they just typed a top level domain name */
++ printf("Error: Incomplete URL '%s'\n", &url[6]);
++ exit(1);
++ }
++ *cp= 0; /* Make the '/' a null */
+
+ printf ("host : >%s<\n", host);
+
+ path = strchr(&url[6], '/') +1;
+
+ printf ("path : >%s<\n", path);
+-
++
+ file = strrchr (url, '/');
+
+ printf ("file : >%s<\n", file);
+diff -u mms_client-0.0.3/configure mms_client-0.0.4/configure
+--- mms_client-0.0.3/configure 2002-01-21 18:50:51.000000000 -0800
++++ mms_client-0.0.4/configure 2004-04-17 16:47:01.126825728 -0700
+@@ -694,7 +694,7 @@
+
+ PACKAGE="mms_client"
+
+-VERSION=0.0.3
++VERSION=0.0.4
+
+ if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
+ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }