Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

4
comms/bthfp/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Very basic implementation of the Bluetooth Handsfree Profile for NetBSD.
bthfp opens a control connection to your phone and copies audio data
to and from your system audio as appropriate.

30
comms/bthfp/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.8 2012/10/03 11:24:39 asau Exp $
DISTNAME= bthfp-0.1
CATEGORIES= comms
MASTER_SITES= http://homepages.rya-online.net/plunky/
DISTFILES= bthfp-0.1.tar.gz
MAINTAINER= plunky@rya-online.net
COMMENT= Bluetooth Handsfree Profile
LICENSE= modified-bsd
ONLY_FOR_PLATFORM= NetBSD-[4-9].*-*
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
USE_BSD_MAKEFILE= yes
.include "../../mk/bsd.prefs.mk"
# This uses the older ServiceDiscovery API
.if (${OPSYS} == "NetBSD" && \
(!empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6-9].*)))
MAKE_ENV+= HAVE_LIBSDP=no
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bthfp ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/bthfp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"

3
comms/bthfp/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/12/07 20:29:10 plunky Exp $
bin/bthfp
man/man1/bthfp.1

7
comms/bthfp/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2009/05/12 14:36:28 plunky Exp $
SHA1 (bthfp-0.1.tar.gz) = f0cefa424596545dec3c7d61eb9e608e8178871b
RMD160 (bthfp-0.1.tar.gz) = 5185c59ee67a7482ec8c424172fdeebed5bb3238
Size (bthfp-0.1.tar.gz) = 8522 bytes
SHA1 (patch-aa) = 66e1d2be8a9de92b7a47bea8bba0adb68510d740
SHA1 (patch-ab) = 83a4185d99f658ca7a1779c5854dc71855277baf

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.1 2008/06/21 20:47:28 joerg Exp $
--- bthfp.c.orig 2008-06-21 14:42:12.000000000 +0000
+++ bthfp.c
@@ -480,8 +480,8 @@ accept_sco(int fd, short ev, void *arg)
/* XXX might need to up the socket buffer size? */
- size = sizeof(mtu);
- if (getsockopt(sc, BTPROTO_SCO, SO_SCO_MTU, &mtu, &size) < 0) {
+ len = sizeof(mtu);
+ if (getsockopt(sc, BTPROTO_SCO, SO_SCO_MTU, &mtu, &len) < 0) {
close(sc);
sc = -1;
return;

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.1 2009/05/12 14:36:28 plunky Exp $
--- Makefile.orig 2009-05-12 13:22:31.000000000 +0100
+++ Makefile 2009-05-12 13:23:00.000000000 +0100
@@ -4,7 +4,14 @@
SRCS= bthfp.c
MAN= bthfp.1
-DPADD+= ${LIBBLUETOOTH} ${LIBEVENT} ${LIBSDP}
-LDADD+= -lbluetooth -levent -lsdp
+DPADD+= ${LIBBLUETOOTH} ${LIBEVENT}
+LDADD+= -lbluetooth -levent
+
+.if (${HAVE_LIBSDP:Uyes} == "no")
+CPPFLAGS+= -DSDP_COMPAT
+.else
+DPADD+= ${LIBSDP}
+LDADD+= -lsdp
+.endif
.include <bsd.prog.mk>