Date: Tue, 23 Mar 2004 00:20:01 +0100 (CET) From: Guido Falsi <mad@madpilot.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/64597: New port: sysutils/obexapp sends objects via OBEX to mobile devices Message-ID: <200403222320.i2MNK10r011065@wedge.madpilot.net> Resent-Message-ID: <200403222320.i2MNKFNH000677@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 64597 >Category: ports >Synopsis: New port: sysutils/obexapp sends objects via OBEX to mobile devices >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 22 15:20:15 PST 2004 >Closed-Date: >Last-Modified: >Originator: Guido Falsi >Release: FreeBSD 5.2-CURRENT i386 >Organization: none >Environment: System: FreeBSD wedge.madpilot.net 5.2-CURRENT FreeBSD 5.2-CURRENT #11: Mon Mar 8 17:18:47 CET 2004 root@wedge.madpilot.net:/usr/obj/usr/src/sys/WEDGE i386 >Description: little character interface to send and get objects using the OBEX protocol. can be interfaced with the FreeBSD bluetooth stack to create a server. requires the "openobex" port I committed shortly before. >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: # # obexapp # obexapp/Makefile # obexapp/distinfo # obexapp/files # obexapp/files/patch-main.c # obexapp/files/patch-server.c # obexapp/files/patch-Makefile # obexapp/pkg-plist # obexapp/pkg-descr # echo c - obexapp mkdir -p obexapp > /dev/null 2>&1 echo x - obexapp/Makefile sed 's/^X//' >obexapp/Makefile << 'END-of-obexapp/Makefile' X# New ports collection makefile for: obexapp X# Date created: 22 March 2004 X# Whom: Guido Falsi <mad@madpilot.net> X# X# $FreeBSD$ X# X XPORTNAME= obexapp XPORTVERSION= 1.1 XCATEGORIES= sysutils net XMASTER_SITES= http://www.geocities.com/m_evmenkin/ XWRKSRC= ${WRKDIR}/${PORTNAME} X XLIB_DEPENDS= openobex-1.0.1:${PORTSDIR}/sysutils/openobex X XMAINTAINER= mad@madpilot.net XCOMMENT= Obex application to transfer objects to mobile equipment X XMAN1= obexapp.1 XMANCOMPRESSED= yes XUSE_GNOME= glib12 X X.include <bsd.port.mk> END-of-obexapp/Makefile echo x - obexapp/distinfo sed 's/^X//' >obexapp/distinfo << 'END-of-obexapp/distinfo' XMD5 (obexapp-1.1.tar.gz) = fbe6006f5f9490303ea43078edd298e8 XSIZE (obexapp-1.1.tar.gz) = 195743 END-of-obexapp/distinfo echo c - obexapp/files mkdir -p obexapp/files > /dev/null 2>&1 echo x - obexapp/files/patch-main.c sed 's/^X//' >obexapp/files/patch-main.c << 'END-of-obexapp/files/patch-main.c' X--- main.c.orig Mon Mar 22 21:01:45 2004 X+++ main.c Mon Mar 22 21:02:10 2004 X@@ -137,7 +137,7 @@ X custfunc.listen = obexapp_transport_listen; X custfunc.write = obexapp_transport_write; X custfunc.handleinput = obexapp_transport_handle_input; X- custfunc.userdata = &context; X+ custfunc.customdata = &context; X X /* Process command line options */ X service = 0; END-of-obexapp/files/patch-main.c echo x - obexapp/files/patch-server.c sed 's/^X//' >obexapp/files/patch-server.c << 'END-of-obexapp/files/patch-server.c' X--- server.c.orig Mon Mar 22 21:04:12 2004 X+++ server.c Mon Mar 22 21:32:45 2004 X@@ -105,6 +105,7 @@ X { X context_p context = (context_p) OBEX_GetUserData(handle); X struct passwd *pw = NULL; X+ struct sockaddr *saddr = NULL; X gint error; X X if (context->user != NULL) { X@@ -169,7 +170,13 @@ X X g_message("%s: Starting OBEX server", G_GNUC_FUNCTION); X X- if (OBEX_ServerRegister(handle, "OBEX") < 0) { X+ if (( saddr = (struct sockaddr *) g_malloc(sizeof(struct sockaddr))) == NULL) { X+ g_critical("%s(): Could not allocate saddr", X+ G_GNUC_FUNCTION); X+ exit(1); X+ } X+ X+ if (OBEX_ServerRegister(handle, saddr, sizeof(struct sockaddr)) < 0) { X g_critical("%s(): OBEX_ServerRegister failed", G_GNUC_FUNCTION); X return (-1); X } END-of-obexapp/files/patch-server.c echo x - obexapp/files/patch-Makefile sed 's/^X//' >obexapp/files/patch-Makefile << 'END-of-obexapp/files/patch-Makefile' X--- Makefile.orig Mon Mar 22 22:14:11 2004 X+++ Makefile Mon Mar 22 22:15:52 2004 X@@ -1,8 +1,10 @@ X # $Id: Makefile,v 1.6 2004/03/12 22:10:52 max Exp $ X # $FreeBSD$ X X-BINDIR= /usr/local/bin X-MANDIR= /usr/local/man/man X+PREFIX?= /usr/local X+ X+BINDIR= ${PREFIX}/bin X+MANDIR= ${PREFIX}/man/man X PROG= obexapp X MAN1= obexapp.1 X END-of-obexapp/files/patch-Makefile echo x - obexapp/pkg-plist sed 's/^X//' >obexapp/pkg-plist << 'END-of-obexapp/pkg-plist' Xbin/obexapp END-of-obexapp/pkg-plist echo x - obexapp/pkg-descr sed 's/^X//' >obexapp/pkg-descr << 'END-of-obexapp/pkg-descr' XAn obex application to transfer objects (address book items, images, movies, anything the target can handle) to mobile devices via IrDA, bluetooth and other protocol via the OBEX format. X X- Guido Falsi <mad@madpilot.net> END-of-obexapp/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403222320.i2MNK10r011065>