Minor update: add some /etc/bluetooth files. And change MASTER_SITE
to the mine. ok sturm@ a while ago.
This commit is contained in:
parent
2dcd5d3f21
commit
4587928acb
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/07/16 20:45:39 grange Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2005/09/06 18:59:19 grange Exp $
|
||||
|
||||
COMMENT= "bluetooth network libraries"
|
||||
DISTNAME= bluetooth-libs-20050716
|
||||
@ -11,11 +11,15 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ftp://ftp.erisiandiscord.de/pub/misc/
|
||||
MASTER_SITES= http://www.disorder.ru/openbsd/distfiles/
|
||||
|
||||
MAKE_ENV= LIBDIR=${TRUEPREFIX}/lib MANDIR=${TRUEPREFIX}/man/cat
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-build:
|
||||
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR},g" \
|
||||
${WRKSRC}/libbluetooth/*.[ch3]
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/libbluetooth/bluetooth.h ${PREFIX}/include
|
||||
${INSTALL_DATA} ${WRKSRC}/libsdp/sdp.h ${PREFIX}/include
|
||||
|
96
devel/bluetooth-libs/patches/patch-libbluetooth_bluetooth_3
Normal file
96
devel/bluetooth-libs/patches/patch-libbluetooth_bluetooth_3
Normal file
@ -0,0 +1,96 @@
|
||||
$OpenBSD: patch-libbluetooth_bluetooth_3,v 1.1 2005/09/06 18:59:19 grange Exp $
|
||||
--- libbluetooth/bluetooth.3.orig Sat Jul 16 00:17:58 2005
|
||||
+++ libbluetooth/bluetooth.3 Tue Jul 26 23:36:52 2005
|
||||
@@ -106,13 +106,13 @@ argument specifies the address family of
|
||||
.Dv AF_BLUETOOTH .
|
||||
.Pp
|
||||
The structure returned contains the information obtained from a line in
|
||||
-.Pa /etc/bluetooth/hosts
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/hosts
|
||||
file.
|
||||
.Pp
|
||||
The
|
||||
.Fn bt_sethostent
|
||||
function controls whether
|
||||
-.Pa /etc/bluetooth/hosts
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/hosts
|
||||
file should stay open after each call to
|
||||
.Fn bt_gethostbyname
|
||||
or
|
||||
@@ -124,7 +124,7 @@ flag is non-zero, the file will not be c
|
||||
The
|
||||
.Fn bt_endhostent
|
||||
function closes the
|
||||
-.Pa /etc/bluetooth/hosts
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/hosts
|
||||
file.
|
||||
.Pp
|
||||
The
|
||||
@@ -151,13 +151,13 @@ argument passed to
|
||||
should have numeric value of the desired Bluetooth Protocol Service Multiplexor.
|
||||
.Pp
|
||||
The structure returned contains the information obtained from a line in
|
||||
-.Pa /etc/bluetooth/protocols
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/protocols
|
||||
file.
|
||||
.Pp
|
||||
The
|
||||
.Fn bt_setprotoent
|
||||
function controls whether
|
||||
-.Pa /etc/bluetooth/protocols
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/protocols
|
||||
file should stay open after each call to
|
||||
.Fn bt_getprotobyname
|
||||
or
|
||||
@@ -169,7 +169,7 @@ flag is non-zero, the file will not be c
|
||||
The
|
||||
.Fn bt_endprotoent
|
||||
function closes the
|
||||
-.Pa /etc/bluetooth/protocols
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/protocols
|
||||
file.
|
||||
.Pp
|
||||
The
|
||||
@@ -187,9 +187,9 @@ string representing the address into the
|
||||
It is up to the caller to ensure that provided buffer has enough space.
|
||||
If no buffer was provided then internal static buffer will be used.
|
||||
.Sh FILES
|
||||
-.Bl -tag -width ".Pa /etc/bluetooth/hosts" -compact
|
||||
-.It Pa /etc/bluetooth/hosts
|
||||
-.It Pa /etc/bluetooth/protocols
|
||||
+.Bl -tag -width ".Pa %%SYSCONFDIR%%/bluetooth/hosts" -compact
|
||||
+.It Pa %%SYSCONFDIR%%/bluetooth/hosts
|
||||
+.It Pa %%SYSCONFDIR%%/bluetooth/protocols
|
||||
.El
|
||||
.Sh EXAMPLES
|
||||
Print out the hostname associated with a specific BD_ADDR:
|
||||
@@ -261,25 +261,25 @@ on EOF or error.
|
||||
The
|
||||
.Fn bt_gethostent
|
||||
function reads the next line of
|
||||
-.Pa /etc/bluetooth/hosts ,
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/hosts ,
|
||||
opening the file if necessary.
|
||||
.Pp
|
||||
The
|
||||
.Fn bt_sethostent
|
||||
function opens and/or rewinds the
|
||||
-.Pa /etc/bluetooth/hosts
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/hosts
|
||||
file.
|
||||
.Pp
|
||||
The
|
||||
.Fn bt_getprotoent
|
||||
function reads the next line of
|
||||
-.Pa /etc/bluetooth/protocols ,
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/protocols ,
|
||||
opening the file if necessary.
|
||||
.Pp
|
||||
The
|
||||
.Fn bt_setprotoent
|
||||
function opens and/or rewinds the
|
||||
-.Pa /etc/bluetooth/protocols
|
||||
+.Pa %%SYSCONFDIR%%/bluetooth/protocols
|
||||
file.
|
||||
.Sh AUTHORS
|
||||
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
|
14
devel/bluetooth-libs/patches/patch-libbluetooth_bluetooth_c
Normal file
14
devel/bluetooth-libs/patches/patch-libbluetooth_bluetooth_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-libbluetooth_bluetooth_c,v 1.1 2005/09/06 18:59:19 grange Exp $
|
||||
--- libbluetooth/bluetooth.c.orig Sat Jul 16 00:17:58 2005
|
||||
+++ libbluetooth/bluetooth.c Tue Jul 26 23:36:18 2005
|
||||
@@ -34,8 +34,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
-#define _PATH_BT_HOSTS "/etc/bluetooth/hosts"
|
||||
-#define _PATH_BT_PROTOCOLS "/etc/bluetooth/protocols"
|
||||
+#define _PATH_BT_HOSTS "%%SYSCONFDIR%%/bluetooth/hosts"
|
||||
+#define _PATH_BT_PROTOCOLS "%%SYSCONFDIR%%/bluetooth/protocols"
|
||||
#define MAXALIASES 35
|
||||
|
||||
static FILE *hostf = NULL;
|
@ -1,8 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2005/07/17 18:20:29 grange Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2005/09/06 18:59:19 grange Exp $
|
||||
|
||||
COMMENT= "bluetooth network tools"
|
||||
DISTNAME= bluetooth-tools-20050716
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
DISTNAME= bluetooth-tools-20050725
|
||||
CATEGORIES= net
|
||||
MAINTAINER= Alexander Yurchenko <grange@openbsd.org>
|
||||
|
||||
@ -12,7 +11,7 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ftp://ftp.erisiandiscord.de/pub/misc/
|
||||
MASTER_SITES= http://www.disorder.ru/openbsd/distfiles/
|
||||
|
||||
WANTLIB= c
|
||||
LIB_DEPENDS= bluetooth.1.0::devel/bluetooth-libs
|
||||
@ -22,4 +21,11 @@ MAKE_ENV= BINDIR=${TRUEPREFIX}/bin SBINDIR=${TRUEPREFIX}/sbin \
|
||||
COPTS=-I${LOCALBASE}/include LDADD=-L${LOCALBASE}/lib
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bluetooth
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/bluetooth/hosts \
|
||||
${PREFIX}/share/examples/bluetooth
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/bluetooth/protocols \
|
||||
${PREFIX}/share/examples/bluetooth
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
MD5 (bluetooth-tools-20050716.tar.gz) = 74194befffd64315618ad76190dd4e80
|
||||
RMD160 (bluetooth-tools-20050716.tar.gz) = e3e7f4afa812ed8ed2d46eafa688bda7223b2794
|
||||
SHA1 (bluetooth-tools-20050716.tar.gz) = c1137565a641d65bc70ce2fb0b357f953bb61682
|
||||
SIZE (bluetooth-tools-20050716.tar.gz) = 25717
|
||||
MD5 (bluetooth-tools-20050725.tar.gz) = 7c0337446ef1e3e96aada6483364282e
|
||||
RMD160 (bluetooth-tools-20050725.tar.gz) = 6c75b24927fb6175103f33e294d4fd800800afe8
|
||||
SHA1 (bluetooth-tools-20050725.tar.gz) = c1ce039273b8b95e4a724475a644c220fd31adbe
|
||||
SIZE (bluetooth-tools-20050725.tar.gz) = 27579
|
||||
|
@ -1,3 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/07/16 20:49:46 grange Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2005/09/06 18:59:19 grange Exp $
|
||||
bin/hccontrol
|
||||
@man man/cat8/hccontrol.0
|
||||
share/examples/bluetooth/
|
||||
@sample ${SYSCONFDIR}/bluetooth/
|
||||
share/examples/bluetooth/hosts
|
||||
@sample ${SYSCONFDIR}/bluetooth/hosts
|
||||
share/examples/bluetooth/protocols
|
||||
@sample ${SYSCONFDIR}/bluetooth/protocols
|
||||
|
Loading…
Reference in New Issue
Block a user