mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- Update to 0.98.0
PR: ports/74366 Submitted by: Kirill Bezzubets <kirill@solaris.ru> (maintainer)
This commit is contained in:
parent
e6eeb0f508
commit
9f0169f4e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122506
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= gammu
|
||||
PORTVERSION= 0.94.0
|
||||
PORTVERSION= 0.98.0
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://www.mwiacek.com/zips/gsm/gammu/older/ \
|
||||
http://www.kirill.spb.ru/gammu/
|
||||
@ -19,6 +19,6 @@ USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
WANT_AUTOCONF_VER=253
|
||||
|
||||
CONFIGURE_ARGS= --disable-fbuspl2303
|
||||
CONFIGURE_ARGS= --disable-bluerfsearch
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (gammu-0.94.0.tar.gz) = b38b6e55d3c233f1fecc18b18787628f
|
||||
SIZE (gammu-0.94.0.tar.gz) = 747383
|
||||
MD5 (gammu-0.98.0.tar.gz) = 6abfb95af979ce283fb22a179476dc6a
|
||||
SIZE (gammu-0.98.0.tar.gz) = 813856
|
||||
|
77
comms/gammu-devel/files/patch-bluetooth
Normal file
77
comms/gammu-devel/files/patch-bluetooth
Normal file
@ -0,0 +1,77 @@
|
||||
diff -ur orig/bluetoth.c patched/bluetoth.c
|
||||
--- common/device/bluetoth/bluetoth.c Thu Nov 25 12:36:26 2004
|
||||
+++ common/device/bluetoth/bluetoth.c Thu Nov 25 12:46:22 2004
|
||||
@@ -30,9 +30,6 @@
|
||||
{
|
||||
GSM_Error error;
|
||||
|
||||
-#ifdef BLUETOOTH_RF_SEARCHING
|
||||
- if (!mystrncasecmp(s->CurrentConfig->Connection, "bluerf", 6)) return bluetooth_findchannel(s);
|
||||
-#endif
|
||||
|
||||
switch (s->ConnectionType) {
|
||||
case GCT_BLUEAT:
|
||||
diff -ur common/device/bluetoth/bluez.c common/device/bluetoth/bluez.c
|
||||
--- common/device/bluetoth/bluez.c Thu Nov 25 12:36:26 2004
|
||||
+++ common/device/bluetoth/bluez.c Thu Nov 25 12:46:56 2004
|
||||
@@ -14,6 +14,8 @@
|
||||
#ifdef GSM_ENABLE_BLUETOOTHDEVICE
|
||||
#ifdef GSM_ENABLE_BLUEZ
|
||||
|
||||
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
|
||||
+
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@@ -22,10 +24,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
-#include <bluetooth/bluetooth.h>
|
||||
-#include <bluetooth/rfcomm.h>
|
||||
-#include <bluetooth/sdp.h>
|
||||
-#include <bluetooth/sdp_lib.h>
|
||||
+#include <bluetooth.h>
|
||||
|
||||
#include "../../gsmcomon.h"
|
||||
#include "../devfunc.h"
|
||||
@@ -34,21 +33,21 @@
|
||||
GSM_Error bluetooth_connect(GSM_StateMachine *s, int port, char *device)
|
||||
{
|
||||
GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth;
|
||||
- struct sockaddr_rc laddr, raddr;
|
||||
+ struct sockaddr_rfcomm laddr, raddr;
|
||||
bdaddr_t bdaddr;
|
||||
int fd;
|
||||
|
||||
smprintf(s, "Connecting to RF channel %i\n",port);
|
||||
|
||||
- fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
|
||||
+ fd = socket(PF_BLUETOOTH, SOCK_STREAM, BLUETOOTH_PROTO_RFCOMM);
|
||||
if (fd < 0) {
|
||||
dbgprintf("Can't create socket\n");
|
||||
return ERR_DEVICENODRIVER;
|
||||
}
|
||||
|
||||
- bacpy(&laddr.rc_bdaddr, BDADDR_ANY);
|
||||
- laddr.rc_family = AF_BLUETOOTH;
|
||||
- laddr.rc_channel = 0;
|
||||
+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY);
|
||||
+ laddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ laddr.rfcomm_channel = 0;
|
||||
|
||||
if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) {
|
||||
dbgprintf("Can't bind socket\n");
|
||||
@@ -57,9 +56,9 @@
|
||||
}
|
||||
|
||||
str2ba(device, &bdaddr);
|
||||
- bacpy(&raddr.rc_bdaddr, &bdaddr);
|
||||
- raddr.rc_family = AF_BLUETOOTH;
|
||||
- raddr.rc_channel = port;
|
||||
+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr);
|
||||
+ raddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ raddr.rfcomm_channel = port;
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) {
|
||||
dbgprintf("Can't connect\n");
|
@ -1,28 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/autoconf/configure.in ./cfg/autoconf/configure.in
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/autoconf/configure.in Tue Nov 25 19:22:06 2003
|
||||
+++ ./cfg/autoconf/configure.in Tue Dec 9 16:53:34 2003
|
||||
@@ -85,11 +85,8 @@
|
||||
pthread="no"])
|
||||
LDLIBS="$LDLIBS $PTHREAD_LIBS $PTHREAD_CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
-AC_CACHE_CHECK([for the Bluez Bluetooth stack], ac_cv_have_sockaddr_rc,
|
||||
- [AC_TRY_COMPILE([#include <sys/socket.h>
|
||||
- #include <bluetooth/bluetooth.h>
|
||||
- #include <bluetooth/rfcomm.h>],
|
||||
- [struct sockaddr_rc rc;],
|
||||
+AC_CACHE_CHECK([for FreeBSD Bluetooth stack], ac_cv_have_sockaddr_rc,
|
||||
+[AC_CHECK_LIB(bluetooth, main,
|
||||
ac_cv_have_sockaddr_rc=yes,
|
||||
ac_cv_have_sockaddr_rc=no)])
|
||||
|
||||
@@ -431,8 +428,8 @@
|
||||
Nokia PHONET FBUS - $gsm_enable_irdaphonet
|
||||
OBEX - $gsm_enable_irdaobex
|
||||
|
||||
- Phone protocols with Bluez Bluetooth stack
|
||||
- ------------------------------------------
|
||||
+ Phone protocols with FreeBSD Bluetooth stack
|
||||
+ --------------------------------------------
|
||||
AT commands - $gsm_enable_blueat
|
||||
Nokia FBUS2 - $gsm_enable_bluefbus2
|
||||
Nokia PHONET FBUS - $gsm_enable_bluephonet
|
@ -1,46 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/config.h ./cfg/config.h
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/config.h Tue Nov 25 19:24:12 2003
|
||||
+++ ./cfg/config.h Tue Dec 9 16:59:39 2003
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* config.h. Generated automatically by configure. */
|
||||
+/* config.h. Generated by configure. */
|
||||
|
||||
#ifndef _config_h_
|
||||
#define _config_h_
|
||||
@@ -45,20 +45,20 @@
|
||||
#define GSM_ENABLE_ALCABUS 1
|
||||
|
||||
/* Infrared. PHONET FBUS */
|
||||
-#define GSM_ENABLE_IRDAPHONET 1
|
||||
+/* #undef GSM_ENABLE_IRDAPHONET */
|
||||
/* Infrared. AT commands */
|
||||
-#define GSM_ENABLE_IRDAAT 1
|
||||
+/* #undef GSM_ENABLE_IRDAAT */
|
||||
/* Infrared. OBEX */
|
||||
-#define GSM_ENABLE_IRDAOBEX 1
|
||||
+/* #undef GSM_ENABLE_IRDAOBEX */
|
||||
|
||||
/* Bluetooth stack (like Bluez). FBUS2 (init done using AT commands) */
|
||||
-/* #undef GSM_ENABLE_BLUEFBUS2 */
|
||||
+#define GSM_ENABLE_BLUEFBUS2 1
|
||||
/* Bluetooth stack (like Bluez). PHONET FBUS */
|
||||
-/* #undef GSM_ENABLE_BLUEPHONET */
|
||||
+#define GSM_ENABLE_BLUEPHONET 1
|
||||
/* Blueooth stack (like Bluez). AT commands */
|
||||
-/* #undef GSM_ENABLE_BLUEAT */
|
||||
+#define GSM_ENABLE_BLUEAT 1
|
||||
/* Blueooth stack (like Bluez). OBEX */
|
||||
-/* #undef GSM_ENABLE_BLUEOBEX */
|
||||
+#define GSM_ENABLE_BLUEOBEX 1
|
||||
|
||||
/* --------------------------- Phone modules (specific) ----------------- */
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
#define GSM_ENABLE_ALCATEL 1
|
||||
|
||||
/* OBEX generic models */
|
||||
-#define GSM_ENABLE_OBEXGEN 1
|
||||
+/* #undef GSM_ENABLE_OBEXGEN */
|
||||
|
||||
/* Symbian with m-router generic models */
|
||||
#define GSM_ENABLE_MROUTERGEN 1
|
@ -1,66 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/device/bluetoth/bluetoth.c ./common/device/bluetoth/bluetoth.c
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/device/bluetoth/bluetoth.c Sun Nov 2 11:43:28 2003
|
||||
+++ ./common/device/bluetoth/bluetoth.c Tue Dec 9 17:19:59 2003
|
||||
@@ -11,11 +11,10 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
-# include <sys/socket.h>
|
||||
-# include <sys/time.h>
|
||||
-# include <unistd.h>
|
||||
-# include <bluetooth/bluetooth.h>
|
||||
-# include <bluetooth/rfcomm.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <sys/time.h>
|
||||
+#include <unistd.h>
|
||||
+#include <bluetooth.h>
|
||||
#else
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
@@ -25,6 +24,11 @@
|
||||
#include "../devfunc.h"
|
||||
#include "bluetoth.h"
|
||||
|
||||
+#define BTPROTO_RFCOMM BLUETOOTH_PROTO_RFCOMM
|
||||
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
|
||||
+
|
||||
+#undef WIN32
|
||||
+
|
||||
#ifdef WIN32
|
||||
static GSM_Error bluetooth_connect(GSM_StateMachine *s, int port)
|
||||
{
|
||||
@@ -80,7 +84,7 @@
|
||||
static GSM_Error bluetooth_connect(GSM_StateMachine *s, int port)
|
||||
{
|
||||
GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth;
|
||||
- struct sockaddr_rc laddr, raddr;
|
||||
+ struct sockaddr_rfcomm laddr, raddr;
|
||||
bdaddr_t bdaddr;
|
||||
int fd;
|
||||
|
||||
@@ -89,9 +93,9 @@
|
||||
return GE_DEVICENODRIVER;
|
||||
}
|
||||
|
||||
- bacpy(&laddr.rc_bdaddr, BDADDR_ANY);
|
||||
- laddr.rc_family = AF_BLUETOOTH;
|
||||
- laddr.rc_channel = 0;
|
||||
+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY);
|
||||
+ laddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ laddr.rfcomm_channel = 0;
|
||||
|
||||
if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) {
|
||||
dbgprintf("Can't bind socket\n");
|
||||
@@ -100,9 +104,9 @@
|
||||
}
|
||||
|
||||
str2ba(s->CurrentConfig->Device, &bdaddr);
|
||||
- bacpy(&raddr.rc_bdaddr, &bdaddr);
|
||||
- raddr.rc_family = AF_BLUETOOTH;
|
||||
- raddr.rc_channel = port;
|
||||
+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr);
|
||||
+ raddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ raddr.rfcomm_channel = port;
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) {
|
||||
dbgprintf("Can't connect\n");
|
18
comms/gammu-devel/files/patch-common-device-serial-ser_unx.c
Normal file
18
comms/gammu-devel/files/patch-common-device-serial-ser_unx.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- common/device/serial/ser_unx.c.orig Fri Aug 13 12:10:45 2004
|
||||
+++ common/device/serial/ser_unx.c Fri Nov 26 16:25:16 2004
|
||||
@@ -230,6 +230,7 @@
|
||||
case 57600: speed2 = B57600; break;
|
||||
case 115200: speed2 = B115200; break;
|
||||
case 230400: speed2 = B230400; break;
|
||||
+#ifdef B460800
|
||||
case 460800: speed2 = B460800; break;
|
||||
#ifdef B500000
|
||||
case 500000: speed2 = B500000; break;
|
||||
@@ -243,6 +244,7 @@
|
||||
case 3000000: speed2 = B3000000; break;
|
||||
case 3500000: speed2 = B3500000; break;
|
||||
case 4000000: speed2 = B4000000; break;
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/phone/at/sonyeric.c ./common/phone/at/sonyeric.c
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/phone/at/sonyeric.c Sun Nov 2 11:45:40 2003
|
||||
+++ ./common/phone/at/sonyeric.c Tue Dec 9 17:36:22 2003
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
#include "../../gsmstate.h"
|
||||
|
||||
-#ifdef GSM_ENABLE_ATGEN
|
||||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
@@ -13,7 +12,6 @@
|
||||
extern GSM_Reply_Function ATGENReplyFunctions[];
|
||||
extern GSM_Error ATGEN_DispatchMessage (GSM_StateMachine *s);
|
||||
|
||||
-#ifdef GSM_ENABLE_OBEXGEN
|
||||
|
||||
extern GSM_Reply_Function OBEXGENReplyFunctions[];
|
||||
extern GSM_Error OBEXGEN_GetFilePart (GSM_StateMachine *s, GSM_File *File);
|
||||
@@ -403,8 +401,6 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
-#endif
|
||||
-#endif
|
||||
|
||||
/* How should editor hadle tabs in this file? Add editor commands here.
|
||||
* vim: noexpandtab sw=8 ts=8 sts=8:
|
@ -1,7 +0,0 @@
|
||||
--- configure.orig Sat Oct 18 20:10:50 2003
|
||||
+++ configure Wed Jul 7 21:43:37 2004
|
||||
@@ -5,3 +5,3 @@
|
||||
echo "Running autoconf..."
|
||||
- autoconf
|
||||
+ ${AUTOCONF}
|
||||
test "x$1" = "x--regenerate" && shift
|
66
comms/gammu-devel/files/patch-configure.in
Normal file
66
comms/gammu-devel/files/patch-configure.in
Normal file
@ -0,0 +1,66 @@
|
||||
--- cfg/autoconf/configure.in.orig Thu Nov 25 13:02:35 2004
|
||||
+++ cfg/autoconf/configure.in Thu Nov 25 13:01:56 2004
|
||||
@@ -163,14 +163,14 @@
|
||||
dnl Bluetooth stacks
|
||||
gsm_blue_stack=unknown
|
||||
AC_CHECK_HEADERS(bluetooth/bluetooth.h,
|
||||
- [gsm_blue_stack=Bluez
|
||||
+ [gsm_blue_stack=FreeBSD
|
||||
AC_DEFINE(GSM_ENABLE_BLUEZ)
|
||||
- LDLIBS="$LDLIBS -lbluetooth -lsdp"])
|
||||
+ LDLIBS="$LDLIBS -lbluetooth"])
|
||||
|
||||
-dnl Path for Bluez bluetooth library
|
||||
+dnl Path for FreeBSD bluetooth library
|
||||
gsm_bt_dir=""
|
||||
AC_ARG_WITH(bluedir,
|
||||
- [ --with-bluedir=DIR Specifies the base libbluetooth from Bluez],
|
||||
+ [ --with-bluedir=DIR Specifies the base libbluetooth from FreeBSD],
|
||||
[ if test x$withval = xyes; then
|
||||
AC_MSG_WARN(Usage is: --with-bluedir=DIR)
|
||||
else
|
||||
@@ -261,7 +261,7 @@
|
||||
[ --disable-bluefbus Disable Nokia FBUS2 over Bluetooth stack
|
||||
(Nokia 6210)],
|
||||
[gsm_enable_bluefbus2="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEFBUS2)
|
||||
gsm_enable_bluefbus2="yes"
|
||||
else
|
||||
@@ -271,7 +271,7 @@
|
||||
[ --disable-bluephonet Disable Nokia PHONET FBUS over Bluetooth
|
||||
stack (all new Nokias)],
|
||||
[gsm_enable_bluephonet="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEPHONET)
|
||||
gsm_enable_bluephonet="yes"
|
||||
else
|
||||
@@ -280,7 +280,7 @@
|
||||
AC_ARG_ENABLE(blueat,
|
||||
[ --disable-blueat Disable AT commands over Bluetooth stack],
|
||||
[gsm_enable_blueat="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEAT)
|
||||
gsm_enable_blueat="yes"
|
||||
else
|
||||
@@ -289,7 +289,7 @@
|
||||
AC_ARG_ENABLE(blueobex,
|
||||
[ --disable-blueobex Disable OBEX over Bluetooth stack],
|
||||
[gsm_enable_blueobex="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEOBEX)
|
||||
gsm_enable_blueobex="yes"
|
||||
else
|
||||
@@ -408,7 +408,7 @@
|
||||
Binaries - $bindir
|
||||
RPM making directory - $RPM_DIR
|
||||
Temporary directory - $TEMP_DIR
|
||||
- Bluez library path - $gsm_bt_dir
|
||||
+ FreeBSD Bluetooth library path - $gsm_bt_dir
|
||||
|
||||
General options
|
||||
---------------
|
@ -1,5 +1,9 @@
|
||||
This is a port of GAMMU, advanced utility
|
||||
to manipulate cellular phones.
|
||||
Gammu (Gnu All Mobile Management Utilities) 0.98.0
|
||||
|
||||
Gammu allows you to manage your mobile phone directly from
|
||||
your PC. It has many features, such as SMS handling, Calendar,
|
||||
Java support, ringtones, pictures, and many, many other good
|
||||
things.
|
||||
|
||||
WWW: http://www.mwiacek.com
|
||||
|
||||
|
@ -1,21 +1,23 @@
|
||||
bin/gammu
|
||||
%%DOCSDIR%%/changelog
|
||||
%%DOCSDIR%%/copying
|
||||
%%DOCSDIR%%/readme.txt
|
||||
%%DOCSDIR%%/docs/english/gammu.txt
|
||||
%%DOCSDIR%%/docs/english/replace.txt
|
||||
%%DOCSDIR%%/docs/italian/gammu.txt
|
||||
%%DOCSDIR%%/docs/italian/readme.txt
|
||||
%%DOCSDIR%%/examples/gammu.png
|
||||
%%DOCSDIR%%/examples/config/gammurc
|
||||
%%DOCSDIR%%/examples/config/smsd_mysql.sql
|
||||
%%DOCSDIR%%/examples/config/smsdrc
|
||||
%%DOCSDIR%%/examples/fax/faxreceive
|
||||
%%DOCSDIR%%/examples/fax/faxsend
|
||||
%%DOCSDIR%%/examples/gammu.png
|
||||
%%DOCSDIR%%/examples/logo/greatings.nlm
|
||||
%%DOCSDIR%%/examples/ppp/data
|
||||
%%DOCSDIR%%/examples/ppp/gprs
|
||||
%%DOCSDIR%%/examples/ppp/startppp
|
||||
%%DOCSDIR%%/examples/ppp/statsppp
|
||||
%%DOCSDIR%%/examples/ring/axelf.txt
|
||||
%%DOCSDIR%%/changelog
|
||||
%%DOCSDIR%%/copying
|
||||
%%DOCSDIR%%/readme.txt
|
||||
share/gammu/gammu_cs.txt
|
||||
share/gammu/gammu_de.txt
|
||||
share/gammu/gammu_it.txt
|
||||
@ -28,6 +30,7 @@ share/gammu/gammu_us.txt
|
||||
@dirrm %%DOCSDIR%%/examples/config
|
||||
@dirrm %%DOCSDIR%%/examples/ppp
|
||||
@dirrm %%DOCSDIR%%/examples/ring
|
||||
@dirrm %%DOCSDIR%%/examples/logo
|
||||
@dirrm %%DOCSDIR%%/examples/fax
|
||||
@dirrm %%DOCSDIR%%/examples
|
||||
@dirrm %%DOCSDIR%%
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= gammu
|
||||
PORTVERSION= 0.94.0
|
||||
PORTVERSION= 0.98.0
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://www.mwiacek.com/zips/gsm/gammu/older/ \
|
||||
http://www.kirill.spb.ru/gammu/
|
||||
@ -19,6 +19,6 @@ USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
WANT_AUTOCONF_VER=253
|
||||
|
||||
CONFIGURE_ARGS= --disable-fbuspl2303
|
||||
CONFIGURE_ARGS= --disable-bluerfsearch
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (gammu-0.94.0.tar.gz) = b38b6e55d3c233f1fecc18b18787628f
|
||||
SIZE (gammu-0.94.0.tar.gz) = 747383
|
||||
MD5 (gammu-0.98.0.tar.gz) = 6abfb95af979ce283fb22a179476dc6a
|
||||
SIZE (gammu-0.98.0.tar.gz) = 813856
|
||||
|
77
comms/gammu/files/patch-bluetooth
Normal file
77
comms/gammu/files/patch-bluetooth
Normal file
@ -0,0 +1,77 @@
|
||||
diff -ur orig/bluetoth.c patched/bluetoth.c
|
||||
--- common/device/bluetoth/bluetoth.c Thu Nov 25 12:36:26 2004
|
||||
+++ common/device/bluetoth/bluetoth.c Thu Nov 25 12:46:22 2004
|
||||
@@ -30,9 +30,6 @@
|
||||
{
|
||||
GSM_Error error;
|
||||
|
||||
-#ifdef BLUETOOTH_RF_SEARCHING
|
||||
- if (!mystrncasecmp(s->CurrentConfig->Connection, "bluerf", 6)) return bluetooth_findchannel(s);
|
||||
-#endif
|
||||
|
||||
switch (s->ConnectionType) {
|
||||
case GCT_BLUEAT:
|
||||
diff -ur common/device/bluetoth/bluez.c common/device/bluetoth/bluez.c
|
||||
--- common/device/bluetoth/bluez.c Thu Nov 25 12:36:26 2004
|
||||
+++ common/device/bluetoth/bluez.c Thu Nov 25 12:46:56 2004
|
||||
@@ -14,6 +14,8 @@
|
||||
#ifdef GSM_ENABLE_BLUETOOTHDEVICE
|
||||
#ifdef GSM_ENABLE_BLUEZ
|
||||
|
||||
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
|
||||
+
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@@ -22,10 +24,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
-#include <bluetooth/bluetooth.h>
|
||||
-#include <bluetooth/rfcomm.h>
|
||||
-#include <bluetooth/sdp.h>
|
||||
-#include <bluetooth/sdp_lib.h>
|
||||
+#include <bluetooth.h>
|
||||
|
||||
#include "../../gsmcomon.h"
|
||||
#include "../devfunc.h"
|
||||
@@ -34,21 +33,21 @@
|
||||
GSM_Error bluetooth_connect(GSM_StateMachine *s, int port, char *device)
|
||||
{
|
||||
GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth;
|
||||
- struct sockaddr_rc laddr, raddr;
|
||||
+ struct sockaddr_rfcomm laddr, raddr;
|
||||
bdaddr_t bdaddr;
|
||||
int fd;
|
||||
|
||||
smprintf(s, "Connecting to RF channel %i\n",port);
|
||||
|
||||
- fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
|
||||
+ fd = socket(PF_BLUETOOTH, SOCK_STREAM, BLUETOOTH_PROTO_RFCOMM);
|
||||
if (fd < 0) {
|
||||
dbgprintf("Can't create socket\n");
|
||||
return ERR_DEVICENODRIVER;
|
||||
}
|
||||
|
||||
- bacpy(&laddr.rc_bdaddr, BDADDR_ANY);
|
||||
- laddr.rc_family = AF_BLUETOOTH;
|
||||
- laddr.rc_channel = 0;
|
||||
+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY);
|
||||
+ laddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ laddr.rfcomm_channel = 0;
|
||||
|
||||
if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) {
|
||||
dbgprintf("Can't bind socket\n");
|
||||
@@ -57,9 +56,9 @@
|
||||
}
|
||||
|
||||
str2ba(device, &bdaddr);
|
||||
- bacpy(&raddr.rc_bdaddr, &bdaddr);
|
||||
- raddr.rc_family = AF_BLUETOOTH;
|
||||
- raddr.rc_channel = port;
|
||||
+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr);
|
||||
+ raddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ raddr.rfcomm_channel = port;
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) {
|
||||
dbgprintf("Can't connect\n");
|
@ -1,28 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/autoconf/configure.in ./cfg/autoconf/configure.in
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/autoconf/configure.in Tue Nov 25 19:22:06 2003
|
||||
+++ ./cfg/autoconf/configure.in Tue Dec 9 16:53:34 2003
|
||||
@@ -85,11 +85,8 @@
|
||||
pthread="no"])
|
||||
LDLIBS="$LDLIBS $PTHREAD_LIBS $PTHREAD_CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
-AC_CACHE_CHECK([for the Bluez Bluetooth stack], ac_cv_have_sockaddr_rc,
|
||||
- [AC_TRY_COMPILE([#include <sys/socket.h>
|
||||
- #include <bluetooth/bluetooth.h>
|
||||
- #include <bluetooth/rfcomm.h>],
|
||||
- [struct sockaddr_rc rc;],
|
||||
+AC_CACHE_CHECK([for FreeBSD Bluetooth stack], ac_cv_have_sockaddr_rc,
|
||||
+[AC_CHECK_LIB(bluetooth, main,
|
||||
ac_cv_have_sockaddr_rc=yes,
|
||||
ac_cv_have_sockaddr_rc=no)])
|
||||
|
||||
@@ -431,8 +428,8 @@
|
||||
Nokia PHONET FBUS - $gsm_enable_irdaphonet
|
||||
OBEX - $gsm_enable_irdaobex
|
||||
|
||||
- Phone protocols with Bluez Bluetooth stack
|
||||
- ------------------------------------------
|
||||
+ Phone protocols with FreeBSD Bluetooth stack
|
||||
+ --------------------------------------------
|
||||
AT commands - $gsm_enable_blueat
|
||||
Nokia FBUS2 - $gsm_enable_bluefbus2
|
||||
Nokia PHONET FBUS - $gsm_enable_bluephonet
|
@ -1,46 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/config.h ./cfg/config.h
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/cfg/config.h Tue Nov 25 19:24:12 2003
|
||||
+++ ./cfg/config.h Tue Dec 9 16:59:39 2003
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* config.h. Generated automatically by configure. */
|
||||
+/* config.h. Generated by configure. */
|
||||
|
||||
#ifndef _config_h_
|
||||
#define _config_h_
|
||||
@@ -45,20 +45,20 @@
|
||||
#define GSM_ENABLE_ALCABUS 1
|
||||
|
||||
/* Infrared. PHONET FBUS */
|
||||
-#define GSM_ENABLE_IRDAPHONET 1
|
||||
+/* #undef GSM_ENABLE_IRDAPHONET */
|
||||
/* Infrared. AT commands */
|
||||
-#define GSM_ENABLE_IRDAAT 1
|
||||
+/* #undef GSM_ENABLE_IRDAAT */
|
||||
/* Infrared. OBEX */
|
||||
-#define GSM_ENABLE_IRDAOBEX 1
|
||||
+/* #undef GSM_ENABLE_IRDAOBEX */
|
||||
|
||||
/* Bluetooth stack (like Bluez). FBUS2 (init done using AT commands) */
|
||||
-/* #undef GSM_ENABLE_BLUEFBUS2 */
|
||||
+#define GSM_ENABLE_BLUEFBUS2 1
|
||||
/* Bluetooth stack (like Bluez). PHONET FBUS */
|
||||
-/* #undef GSM_ENABLE_BLUEPHONET */
|
||||
+#define GSM_ENABLE_BLUEPHONET 1
|
||||
/* Blueooth stack (like Bluez). AT commands */
|
||||
-/* #undef GSM_ENABLE_BLUEAT */
|
||||
+#define GSM_ENABLE_BLUEAT 1
|
||||
/* Blueooth stack (like Bluez). OBEX */
|
||||
-/* #undef GSM_ENABLE_BLUEOBEX */
|
||||
+#define GSM_ENABLE_BLUEOBEX 1
|
||||
|
||||
/* --------------------------- Phone modules (specific) ----------------- */
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
#define GSM_ENABLE_ALCATEL 1
|
||||
|
||||
/* OBEX generic models */
|
||||
-#define GSM_ENABLE_OBEXGEN 1
|
||||
+/* #undef GSM_ENABLE_OBEXGEN */
|
||||
|
||||
/* Symbian with m-router generic models */
|
||||
#define GSM_ENABLE_MROUTERGEN 1
|
@ -1,66 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/device/bluetoth/bluetoth.c ./common/device/bluetoth/bluetoth.c
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/device/bluetoth/bluetoth.c Sun Nov 2 11:43:28 2003
|
||||
+++ ./common/device/bluetoth/bluetoth.c Tue Dec 9 17:19:59 2003
|
||||
@@ -11,11 +11,10 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
-# include <sys/socket.h>
|
||||
-# include <sys/time.h>
|
||||
-# include <unistd.h>
|
||||
-# include <bluetooth/bluetooth.h>
|
||||
-# include <bluetooth/rfcomm.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <sys/time.h>
|
||||
+#include <unistd.h>
|
||||
+#include <bluetooth.h>
|
||||
#else
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
@@ -25,6 +24,11 @@
|
||||
#include "../devfunc.h"
|
||||
#include "bluetoth.h"
|
||||
|
||||
+#define BTPROTO_RFCOMM BLUETOOTH_PROTO_RFCOMM
|
||||
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
|
||||
+
|
||||
+#undef WIN32
|
||||
+
|
||||
#ifdef WIN32
|
||||
static GSM_Error bluetooth_connect(GSM_StateMachine *s, int port)
|
||||
{
|
||||
@@ -80,7 +84,7 @@
|
||||
static GSM_Error bluetooth_connect(GSM_StateMachine *s, int port)
|
||||
{
|
||||
GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth;
|
||||
- struct sockaddr_rc laddr, raddr;
|
||||
+ struct sockaddr_rfcomm laddr, raddr;
|
||||
bdaddr_t bdaddr;
|
||||
int fd;
|
||||
|
||||
@@ -89,9 +93,9 @@
|
||||
return GE_DEVICENODRIVER;
|
||||
}
|
||||
|
||||
- bacpy(&laddr.rc_bdaddr, BDADDR_ANY);
|
||||
- laddr.rc_family = AF_BLUETOOTH;
|
||||
- laddr.rc_channel = 0;
|
||||
+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY);
|
||||
+ laddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ laddr.rfcomm_channel = 0;
|
||||
|
||||
if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) {
|
||||
dbgprintf("Can't bind socket\n");
|
||||
@@ -100,9 +104,9 @@
|
||||
}
|
||||
|
||||
str2ba(s->CurrentConfig->Device, &bdaddr);
|
||||
- bacpy(&raddr.rc_bdaddr, &bdaddr);
|
||||
- raddr.rc_family = AF_BLUETOOTH;
|
||||
- raddr.rc_channel = port;
|
||||
+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr);
|
||||
+ raddr.rfcomm_family = AF_BLUETOOTH;
|
||||
+ raddr.rfcomm_channel = port;
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) {
|
||||
dbgprintf("Can't connect\n");
|
18
comms/gammu/files/patch-common-device-serial-ser_unx.c
Normal file
18
comms/gammu/files/patch-common-device-serial-ser_unx.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- common/device/serial/ser_unx.c.orig Fri Aug 13 12:10:45 2004
|
||||
+++ common/device/serial/ser_unx.c Fri Nov 26 16:25:16 2004
|
||||
@@ -230,6 +230,7 @@
|
||||
case 57600: speed2 = B57600; break;
|
||||
case 115200: speed2 = B115200; break;
|
||||
case 230400: speed2 = B230400; break;
|
||||
+#ifdef B460800
|
||||
case 460800: speed2 = B460800; break;
|
||||
#ifdef B500000
|
||||
case 500000: speed2 = B500000; break;
|
||||
@@ -243,6 +244,7 @@
|
||||
case 3000000: speed2 = B3000000; break;
|
||||
case 3500000: speed2 = B3500000; break;
|
||||
case 4000000: speed2 = B4000000; break;
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
diff -ur /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/phone/at/sonyeric.c ./common/phone/at/sonyeric.c
|
||||
--- /usr/Arch/Nokia/Gammu/gammu-0.90.0/common/phone/at/sonyeric.c Sun Nov 2 11:45:40 2003
|
||||
+++ ./common/phone/at/sonyeric.c Tue Dec 9 17:36:22 2003
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
#include "../../gsmstate.h"
|
||||
|
||||
-#ifdef GSM_ENABLE_ATGEN
|
||||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
@@ -13,7 +12,6 @@
|
||||
extern GSM_Reply_Function ATGENReplyFunctions[];
|
||||
extern GSM_Error ATGEN_DispatchMessage (GSM_StateMachine *s);
|
||||
|
||||
-#ifdef GSM_ENABLE_OBEXGEN
|
||||
|
||||
extern GSM_Reply_Function OBEXGENReplyFunctions[];
|
||||
extern GSM_Error OBEXGEN_GetFilePart (GSM_StateMachine *s, GSM_File *File);
|
||||
@@ -403,8 +401,6 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
-#endif
|
||||
-#endif
|
||||
|
||||
/* How should editor hadle tabs in this file? Add editor commands here.
|
||||
* vim: noexpandtab sw=8 ts=8 sts=8:
|
@ -1,7 +0,0 @@
|
||||
--- configure.orig Sat Oct 18 20:10:50 2003
|
||||
+++ configure Wed Jul 7 21:43:37 2004
|
||||
@@ -5,3 +5,3 @@
|
||||
echo "Running autoconf..."
|
||||
- autoconf
|
||||
+ ${AUTOCONF}
|
||||
test "x$1" = "x--regenerate" && shift
|
66
comms/gammu/files/patch-configure.in
Normal file
66
comms/gammu/files/patch-configure.in
Normal file
@ -0,0 +1,66 @@
|
||||
--- cfg/autoconf/configure.in.orig Thu Nov 25 13:02:35 2004
|
||||
+++ cfg/autoconf/configure.in Thu Nov 25 13:01:56 2004
|
||||
@@ -163,14 +163,14 @@
|
||||
dnl Bluetooth stacks
|
||||
gsm_blue_stack=unknown
|
||||
AC_CHECK_HEADERS(bluetooth/bluetooth.h,
|
||||
- [gsm_blue_stack=Bluez
|
||||
+ [gsm_blue_stack=FreeBSD
|
||||
AC_DEFINE(GSM_ENABLE_BLUEZ)
|
||||
- LDLIBS="$LDLIBS -lbluetooth -lsdp"])
|
||||
+ LDLIBS="$LDLIBS -lbluetooth"])
|
||||
|
||||
-dnl Path for Bluez bluetooth library
|
||||
+dnl Path for FreeBSD bluetooth library
|
||||
gsm_bt_dir=""
|
||||
AC_ARG_WITH(bluedir,
|
||||
- [ --with-bluedir=DIR Specifies the base libbluetooth from Bluez],
|
||||
+ [ --with-bluedir=DIR Specifies the base libbluetooth from FreeBSD],
|
||||
[ if test x$withval = xyes; then
|
||||
AC_MSG_WARN(Usage is: --with-bluedir=DIR)
|
||||
else
|
||||
@@ -261,7 +261,7 @@
|
||||
[ --disable-bluefbus Disable Nokia FBUS2 over Bluetooth stack
|
||||
(Nokia 6210)],
|
||||
[gsm_enable_bluefbus2="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEFBUS2)
|
||||
gsm_enable_bluefbus2="yes"
|
||||
else
|
||||
@@ -271,7 +271,7 @@
|
||||
[ --disable-bluephonet Disable Nokia PHONET FBUS over Bluetooth
|
||||
stack (all new Nokias)],
|
||||
[gsm_enable_bluephonet="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEPHONET)
|
||||
gsm_enable_bluephonet="yes"
|
||||
else
|
||||
@@ -280,7 +280,7 @@
|
||||
AC_ARG_ENABLE(blueat,
|
||||
[ --disable-blueat Disable AT commands over Bluetooth stack],
|
||||
[gsm_enable_blueat="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEAT)
|
||||
gsm_enable_blueat="yes"
|
||||
else
|
||||
@@ -289,7 +289,7 @@
|
||||
AC_ARG_ENABLE(blueobex,
|
||||
[ --disable-blueobex Disable OBEX over Bluetooth stack],
|
||||
[gsm_enable_blueobex="no"],
|
||||
- [if test $gsm_blue_stack = Bluez; then
|
||||
+ [if test $gsm_blue_stack = FreeBSD; then
|
||||
AC_DEFINE(GSM_ENABLE_BLUEOBEX)
|
||||
gsm_enable_blueobex="yes"
|
||||
else
|
||||
@@ -408,7 +408,7 @@
|
||||
Binaries - $bindir
|
||||
RPM making directory - $RPM_DIR
|
||||
Temporary directory - $TEMP_DIR
|
||||
- Bluez library path - $gsm_bt_dir
|
||||
+ FreeBSD Bluetooth library path - $gsm_bt_dir
|
||||
|
||||
General options
|
||||
---------------
|
@ -1,5 +1,9 @@
|
||||
This is a port of GAMMU, advanced utility
|
||||
to manipulate cellular phones.
|
||||
Gammu (Gnu All Mobile Management Utilities) 0.98.0
|
||||
|
||||
Gammu allows you to manage your mobile phone directly from
|
||||
your PC. It has many features, such as SMS handling, Calendar,
|
||||
Java support, ringtones, pictures, and many, many other good
|
||||
things.
|
||||
|
||||
WWW: http://www.mwiacek.com
|
||||
|
||||
|
@ -1,21 +1,23 @@
|
||||
bin/gammu
|
||||
%%DOCSDIR%%/changelog
|
||||
%%DOCSDIR%%/copying
|
||||
%%DOCSDIR%%/readme.txt
|
||||
%%DOCSDIR%%/docs/english/gammu.txt
|
||||
%%DOCSDIR%%/docs/english/replace.txt
|
||||
%%DOCSDIR%%/docs/italian/gammu.txt
|
||||
%%DOCSDIR%%/docs/italian/readme.txt
|
||||
%%DOCSDIR%%/examples/gammu.png
|
||||
%%DOCSDIR%%/examples/config/gammurc
|
||||
%%DOCSDIR%%/examples/config/smsd_mysql.sql
|
||||
%%DOCSDIR%%/examples/config/smsdrc
|
||||
%%DOCSDIR%%/examples/fax/faxreceive
|
||||
%%DOCSDIR%%/examples/fax/faxsend
|
||||
%%DOCSDIR%%/examples/gammu.png
|
||||
%%DOCSDIR%%/examples/logo/greatings.nlm
|
||||
%%DOCSDIR%%/examples/ppp/data
|
||||
%%DOCSDIR%%/examples/ppp/gprs
|
||||
%%DOCSDIR%%/examples/ppp/startppp
|
||||
%%DOCSDIR%%/examples/ppp/statsppp
|
||||
%%DOCSDIR%%/examples/ring/axelf.txt
|
||||
%%DOCSDIR%%/changelog
|
||||
%%DOCSDIR%%/copying
|
||||
%%DOCSDIR%%/readme.txt
|
||||
share/gammu/gammu_cs.txt
|
||||
share/gammu/gammu_de.txt
|
||||
share/gammu/gammu_it.txt
|
||||
@ -28,6 +30,7 @@ share/gammu/gammu_us.txt
|
||||
@dirrm %%DOCSDIR%%/examples/config
|
||||
@dirrm %%DOCSDIR%%/examples/ppp
|
||||
@dirrm %%DOCSDIR%%/examples/ring
|
||||
@dirrm %%DOCSDIR%%/examples/logo
|
||||
@dirrm %%DOCSDIR%%/examples/fax
|
||||
@dirrm %%DOCSDIR%%/examples
|
||||
@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user