Browse Source

Tobias Hintze <th@rocklinux.org>:


			
			
				rocklinux
			
			
		
Tobias Hintze 20 years ago
parent
commit
ae67361b89
3 changed files with 242 additions and 0 deletions
  1. +156
    -0
      package/teha/openobex-apps/gcc34.patch
  2. +34
    -0
      package/teha/openobex-apps/openobex-apps.conf
  3. +52
    -0
      package/teha/openobex-apps/openobex-apps.desc

+ 156
- 0
package/teha/openobex-apps/gcc34.patch

@ -0,0 +1,156 @@
diff -ruN openobex-apps-1.0.0/src/obex_put_common.c openobex-apps-1.0.0-new/src/obex_put_common.c
--- openobex-apps-1.0.0/src/obex_put_common.c 2002-12-01 18:34:41.000000000 +0100
+++ openobex-apps-1.0.0-new/src/obex_put_common.c 2004-09-12 00:57:04.000000000 +0200
@@ -82,7 +82,7 @@
break;
default:
- printf(__FUNCTION__ "() Skipped header %02x\n", hi);
+ printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
}
}
if(!body) {
@@ -123,7 +123,7 @@
OBEX_ObjectSetRsp(object, OBEX_RSP_SUCCESS, OBEX_RSP_SUCCESS);
break;
default:
- printf(__FUNCTION__ "() Denied %02x request\n", cmd);
+ printf("%s() Denied %02x request\n",__FUNCTION__, cmd);
OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_IMPLEMENTED, OBEX_RSP_NOT_IMPLEMENTED);
break;
}
diff -ruN openobex-apps-1.0.0/src/obex_test_cable.h openobex-apps-1.0.0-new/src/obex_test_cable.h
--- openobex-apps-1.0.0/src/obex_test_cable.h 2002-12-01 18:34:41.000000000 +0100
+++ openobex-apps-1.0.0-new/src/obex_test_cable.h 2004-09-12 01:05:31.000000000 +0200
@@ -38,7 +38,7 @@
#include <openobex/obex.h>
#ifdef CABLE_DEBUG
-#define CDEBUG(args...) printf(__FUNCTION__ "() " args)
+#define CDEBUG(args...) printf("%s() ",__FUNCTION__, args)
#else
#define CDEBUG(args...)
#endif
diff -ruN openobex-apps-1.0.0/src/obex_test_client.c openobex-apps-1.0.0-new/src/obex_test_client.c
--- openobex-apps-1.0.0/src/obex_test_client.c 2002-12-01 18:34:41.000000000 +0100
+++ openobex-apps-1.0.0-new/src/obex_test_client.c 2004-09-12 00:58:31.000000000 +0200
@@ -370,13 +370,13 @@
while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
if(hi == OBEX_HDR_BODY) {
- printf(__FUNCTION__ "() Found body\n");
+ printf("%s() Found body\n",__FUNCTION__ );
body = hv.bs;
body_len = hlen;
break;
}
else {
- printf(__FUNCTION__ "() Skipped header %02x\n", hi);
+ printf("%s() Skipped header %02x\n",__FUNCTION__, hi);
}
}
diff -ruN openobex-apps-1.0.0/src/obex_test_server.c openobex-apps-1.0.0-new/src/obex_test_server.c
--- openobex-apps-1.0.0/src/obex_test_server.c 2002-12-01 18:34:41.000000000 +0100
+++ openobex-apps-1.0.0-new/src/obex_test_server.c 2004-09-12 01:02:48.000000000 +0200
@@ -54,17 +54,17 @@
char *name = NULL;
char *namebuf = NULL;
- printf(__FUNCTION__ "()\n");
+ printf("%s()\n", __FUNCTION__);
while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
switch(hi) {
case OBEX_HDR_BODY:
- printf(__FUNCTION__ "() Found body\n");
+ printf("%s() Found body\n", __FUNCTION__ );
body = hv.bs;
body_len = hlen;
break;
case OBEX_HDR_NAME:
- printf(__FUNCTION__ "() Found name\n");
+ printf("%s() Found name\n",__FUNCTION__);
if( (namebuf = malloc(hlen / 2))) {
OBEX_UnicodeToChar(namebuf, hv.bs, hlen);
name = namebuf;
@@ -72,7 +72,7 @@
break;
default:
- printf(__FUNCTION__ "() Skipped header %02x\n", hi);
+ printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
}
}
if(!body) {
@@ -103,12 +103,12 @@
char *name = NULL;
char *namebuf = NULL;
- printf(__FUNCTION__ "()\n");
+ printf("%s()\n", __FUNCTION__);
while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
switch(hi) {
case OBEX_HDR_NAME:
- printf(__FUNCTION__ "() Found name\n");
+ printf("%s() Found name\n", __FUNCTION__);
if( (namebuf = malloc(hlen / 2))) {
OBEX_UnicodeToChar(namebuf, hv.bs, hlen);
name = namebuf;
@@ -116,16 +116,16 @@
break;
default:
- printf(__FUNCTION__ "() Skipped header %02x\n", hi);
+ printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
}
}
if(!name) {
- printf(__FUNCTION__ "() Got a GET without a name-header!\n");
+ printf("%s() Got a GET without a name-header!\n", __FUNCTION__);
OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_FOUND, OBEX_RSP_NOT_FOUND);
return;
}
- printf(__FUNCTION__ "() Got a request for %s\n", name);
+ printf("%s() Got a request for %s\n", __FUNCTION__, name);
buf = easy_readfile(name, &file_size);
if(buf == NULL) {
@@ -154,7 +154,7 @@
const uint8_t *who = NULL;
int who_len = 0;
- printf(__FUNCTION__ "()\n");
+ printf("%s()\n", __FUNCTION__);
while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) {
if(hi == OBEX_HDR_WHO) {
@@ -162,7 +162,7 @@
who_len = hlen;
}
else {
- printf(__FUNCTION__ "() Skipped header %02x\n", hi);
+ printf("%s() Skipped header %02x\n", __FUNCTION__, hi);
}
}
if (who_len == 6) {
@@ -199,7 +199,7 @@
OBEX_ObjectSetRsp(object, OBEX_RSP_CONTINUE, OBEX_RSP_SUCCESS);
break;
default:
- printf(__FUNCTION__ "() Denied %02x request\n", cmd);
+ printf("%s() Denied %02x request\n", __FUNCTION__, cmd);
OBEX_ObjectSetRsp(object, OBEX_RSP_NOT_IMPLEMENTED, OBEX_RSP_NOT_IMPLEMENTED);
break;
}
@@ -224,7 +224,7 @@
break;
default:
- printf(__FUNCTION__ "() Command (%02x) has now finished\n", obex_cmd);
+ printf("%s() Command (%02x) has now finished\n", __FUNCTION__, obex_cmd);
break;
}
}

+ 34
- 0
package/teha/openobex-apps/openobex-apps.conf

@ -0,0 +1,34 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/teha/openobex-apps/openobex-apps.conf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
install_libmisc() {
cp -v src/libmisc.a $root/usr/lib/libopenobex_apps_misc.a
}
install_obexserver() {
gcc -c $archdir/obexserver.c
gcc -o obexserver -lopenobex obexserver.o src/libmisc.a
cp -v obexserver $root/$prefix/bin/obexserver
}
hook_add postmake 3 "install_libmisc"
hook_add postmake 3 "install_obexserver"

+ 52
- 0
package/teha/openobex-apps/openobex-apps.desc

@ -0,0 +1,52 @@
[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/teha/openobex-apps/openobex-apps.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] OpenObex sample applications and libraries
[T] The applications that come with the OpenOBEX c-library.
[T] Only meant as test programs and templates for you own
[T] applications.
[T] This package also contains the OpenObex server
[U] http://openobex.sf.net/
[A] Dag Brattli <dagb@cs.uit.no>
[A] Pontus Fuchs <pontus.fuchs@tactel.se>
[A] Fons Botman <budely@tref.nl>
[A] Jean Tourrilhes <jt@hpl.hp.com>
[A] Marcel Holtmann <marcel@holtmann.org>
[A] Przemyslaw Frasunek <venglin@freebsd.lublin.pl> (obexserver)
[M] Tobias Hintze <th@rocklinux.org>
[C] extra/tool
[L] GPL
[S] Stable
[V] 1.0.0
[P] X -----5---9 800.000
[SRC] openobex-apps
[D] 4212279383 openobex-apps-1.0.0.tar.gz http://umn.dl.sourceforge.net/sourceforge/openobex/
[D] 3091185351 obexserver.c http://www.frasunek.com/sources/unix/

Loading…
Cancel
Save