From e4e23266b80a8b7705babfc1fa1fc8ce23e5ca95 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Thu, 17 Jun 2004 10:39:42 +0000 Subject: [PATCH] Benjamin Schieder: added package ircp [2004052710331726712] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3260 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/blindcoder/ircp/dest_hotfix.patch | 57 +++++++++++++++++++++++ package/blindcoder/ircp/ircp.desc | 42 +++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 package/blindcoder/ircp/dest_hotfix.patch create mode 100644 package/blindcoder/ircp/ircp.desc diff --git a/package/blindcoder/ircp/dest_hotfix.patch b/package/blindcoder/ircp/dest_hotfix.patch new file mode 100644 index 000000000..709267a16 --- /dev/null +++ b/package/blindcoder/ircp/dest_hotfix.patch @@ -0,0 +1,57 @@ +diff -pruN ircp-0.3/src/ircp.c ircp-0.3_patch/src/ircp.c +--- ircp-0.3/src/ircp.c 2002-12-01 18:34:41.000000000 +0100 ++++ ircp-0.3_patch/src/ircp.c 2004-05-27 10:23:01.008095904 +0200 +@@ -72,10 +72,15 @@ int main(int argc, char *argv[]) + return -1; + } + +- if(argc >= 3) ++ if(argc >= 3){ ++ downloadpath = (char *)malloc(strlen(argv[2]+1)); ++ sprintf(downloadpath, "%s", argv[2]); + inbox = argv[2]; +- else ++ } else { ++ downloadpath = (char *)malloc(2); ++ sprintf(downloadpath, "."); + inbox = "."; ++ } + + ircp_srv_recv(srv, inbox); + #ifdef DEBUG_TCP +diff -pruN ircp-0.3/src/ircp.h ircp-0.3_patch/src/ircp.h +--- ircp-0.3/src/ircp.h 2002-12-01 18:34:41.000000000 +0100 ++++ ircp-0.3_patch/src/ircp.h 2004-05-27 10:21:24.422779104 +0200 +@@ -22,6 +22,8 @@ enum { + IRCP_EV_RECEIVING, + }; + ++char *downloadpath; ++ + /* Number of bytes passed at one time to OBEX */ + #define STREAM_CHUNK 4096 + +diff -pruN ircp-0.3/src/ircp_server.c ircp-0.3_patch/src/ircp_server.c +--- ircp-0.3/src/ircp_server.c 2002-12-01 18:34:41.000000000 +0100 ++++ ircp-0.3_patch/src/ircp_server.c 2004-05-27 10:22:44.161656952 +0200 +@@ -223,15 +223,19 @@ static int new_file(ircp_server_t *srv, + } + } + if(name == NULL) { ++#if 0 + DEBUG(0, "Got a PUT without a name. Refusing\n"); + /* Send back error */ + OBEX_ObjectSetRsp(object, OBEX_RSP_BAD_REQUEST, OBEX_RSP_BAD_REQUEST); + srv->infocb(IRCP_EV_ERR, ""); + goto out; ++#endif ++ name=(char *)malloc(28); ++ sprintf(name, "ircp_receive_i_have_no_name"); + } + + srv->infocb(IRCP_EV_RECEIVING, name); +- srv->fd = ircp_open_safe("", name); ++ srv->fd = ircp_open_safe(downloadpath, name); + + ret = srv->fd; + diff --git a/package/blindcoder/ircp/ircp.desc b/package/blindcoder/ircp/ircp.desc new file mode 100644 index 000000000..a96e7cdeb --- /dev/null +++ b/package/blindcoder/ircp/ircp.desc @@ -0,0 +1,42 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/blindcoder/ircp/ircp.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] a tool to send and receive files over IRDA + +[T] ircp enables you to transfer files to and from other IRDA devices +[T] such as mobile phones, handhelds and laptops. + +[U] http://openobex.sourceforge.net/ + +[A] Christian W. Zuckschwerdt +[M] Benjamin Schieder + +[C] extra/filesystem + +[L] GPL +[S] Beta +[V] 0.3 +[P] X -----5---9 800.000 + +[D] 3354670973 ircp-0.3.tar.gz http://dl.sourceforge.net/sourceforge/openobex/ +