From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 22 15:20:16 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A0B416A4CE for ; Mon, 22 Mar 2004 15:20:16 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D54643D39 for ; Mon, 22 Mar 2004 15:20:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2MNKFbv000678 for ; Mon, 22 Mar 2004 15:20:15 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2MNKFNH000677; Mon, 22 Mar 2004 15:20:15 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 22 Mar 2004 15:20:15 -0800 (PST) Resent-Message-Id: <200403222320.i2MNKFNH000677@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Guido Falsi Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C926D16A4CE for ; Mon, 22 Mar 2004 15:20:03 -0800 (PST) Received: from relay.dada.it (relay.dada.it [195.110.100.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2525943D2F for ; Mon, 22 Mar 2004 15:20:03 -0800 (PST) (envelope-from mad@madpilot.net) Received: from madpilot.net (195.110.100.3) by relay.dada.it with SMTP; 23 Mar 2004 00:20:02 +0100 Received: (qmail 5607 invoked from network); 22 Mar 2004 23:19:59 -0000 Received: from unknown (HELO madpilot.net) (195.110.114.197) by mail.dada.it with SMTP; 22 Mar 2004 23:19:59 -0000 Received: (qmail 27525 invoked from network); 22 Mar 2004 23:20:01 -0000 Received: from wedge.madpilot.net (192.168.13.11) by 0 with SMTP; 22 Mar 2004 23:20:01 -0000 Received: from wedge.madpilot.net (localhost.madpilot.net [127.0.0.1]) by wedge.madpilot.net (8.12.11/8.12.11) with ESMTP id i2MNK1Ws011066 for ; Tue, 23 Mar 2004 00:20:01 +0100 (CET) (envelope-from mad@wedge.madpilot.net) Received: (from mad@localhost) by wedge.madpilot.net (8.12.11/8.12.11/Submit) id i2MNK10r011065; Tue, 23 Mar 2004 00:20:01 +0100 (CET) (envelope-from mad) Message-Id: <200403222320.i2MNK10r011065@wedge.madpilot.net> Date: Tue, 23 Mar 2004 00:20:01 +0100 (CET) From: Guido Falsi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/64597: New port: sysutils/obexapp sends objects via OBEX to mobile devices X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guido Falsi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 23:20:16 -0000 >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 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 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 END-of-obexapp/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: