mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Update to 1.37.91.
This commit is contained in:
parent
f8db46edcc
commit
fbeeb99886
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426004
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gammu
|
||||
PORTVERSION= 1.37.3
|
||||
PORTVERSION= 1.37.91
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://dl.cihar.com/gammu/releases/
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1464169663
|
||||
SHA256 (gammu-1.37.3.tar.xz) = 63fcb78e94e1c8cff199cada3f64c694f49c1e9fe2c3f17495dc01a5e8e03a84
|
||||
SIZE (gammu-1.37.3.tar.xz) = 1665088
|
||||
TIMESTAMP = 1478878437
|
||||
SHA256 (gammu-1.37.91.tar.xz) = fb353ed465b1ae408485e55c97f3a9e910af2c271b03a5bf3aab61bb4225fe00
|
||||
SIZE (gammu-1.37.91.tar.xz) = 1675144
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- libgammu/device/bluetooth/blue_bsd.c.orig 2016-11-12 10:13:02.619065000 +0800
|
||||
+++ libgammu/device/bluetooth/blue_bsd.c 2016-11-12 10:13:27.768173000 +0800
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifdef GSM_ENABLE_BLUETOOTHDEVICE
|
||||
#ifdef BSD_BLUE_FOUND
|
||||
|
||||
+#define L2CAP_SOCKET_CHECKED 1
|
||||
+
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -1,66 +0,0 @@
|
||||
--- libgammu/device/bluetoth/bluez.c.orig 2015-12-08 10:38:12 UTC
|
||||
+++ libgammu/device/bluetoth/bluez.c
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifdef GSM_ENABLE_BLUETOOTHDEVICE
|
||||
#ifdef BLUEZ_FOUND
|
||||
|
||||
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
|
||||
+
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@@ -31,11 +33,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/hci_lib.h>
|
||||
+#include <bluetooth.h>
|
||||
|
||||
#include "../../gsmcomon.h"
|
||||
#include "../devfunc.h"
|
||||
@@ -48,7 +46,7 @@ GSM_Error bluetooth_connect(GSM_StateMac
|
||||
/* Some phones need time till they are accessible after SDP browsing */
|
||||
for (tries = 0; tries < 5; tries++) {
|
||||
GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth;
|
||||
- struct sockaddr_rc laddr, raddr;
|
||||
+ struct sockaddr_rfcomm laddr, raddr;
|
||||
bdaddr_t bdaddr;
|
||||
int fd;
|
||||
|
||||
@@ -61,15 +59,15 @@ GSM_Error bluetooth_connect(GSM_StateMac
|
||||
|
||||
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) {
|
||||
smprintf(s, "Can't create socket\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
- 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) {
|
||||
smprintf(s, "Can't bind socket (%d, %s)\n", errno, strerror(errno));
|
||||
@@ -78,9 +76,9 @@ GSM_Error bluetooth_connect(GSM_StateMac
|
||||
}
|
||||
|
||||
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) {
|
||||
smprintf(s, "Can't connect (%d, %s)\n", errno, strerror(errno));
|
@ -1,11 +0,0 @@
|
||||
--- libgammu/device/devfunc.c.orig 2015-12-08 10:38:12 UTC
|
||||
+++ libgammu/device/devfunc.c
|
||||
@@ -15,6 +15,8 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
+#include <sys/stat.h>
|
||||
+#include <sys/socket.h>
|
||||
#ifdef WIN32
|
||||
# include <winsock2.h>
|
||||
# include <io.h>
|
@ -35,11 +35,11 @@ include/gammu/gammu-types.h
|
||||
include/gammu/gammu-unicode.h
|
||||
include/gammu/gammu-wap.h
|
||||
lib/libGammu.so
|
||||
lib/libGammu.so.7
|
||||
lib/libGammu.so.7.%%VERSION%%
|
||||
lib/libGammu.so.8
|
||||
lib/libGammu.so.8.%%VERSION%%
|
||||
lib/libgsmsd.so
|
||||
lib/libgsmsd.so.7
|
||||
lib/libgsmsd.so.7.%%VERSION%%
|
||||
lib/libgsmsd.so.8
|
||||
lib/libgsmsd.so.8.%%VERSION%%
|
||||
libdata/pkgconfig/gammu.pc
|
||||
libdata/pkgconfig/gammu-smsd.pc
|
||||
man/man1/gammu.1.gz
|
||||
|
Loading…
Reference in New Issue
Block a user