Skip to content

Commit

Permalink
- initial version
Browse files Browse the repository at this point in the history
svn path=/trunk/bluetooth/; revision=18331
  • Loading branch information
lslezak committed Aug 2, 2004
0 parents commit a9cd25e
Show file tree
Hide file tree
Showing 26 changed files with 1,360 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .cvsignore
@@ -0,0 +1,20 @@
Makefile
Makefile.am
Makefile.am.common
Makefile.in
aclocal.m4
config.cache
config.guess
config.h.in
config.log
config.status
config.sub
configure
configure.in
depcomp
install-sh
missing
mkinstalldirs
stamp-h
bluetooth.pot
autom4te.cache
1 change: 1 addition & 0 deletions MAINTAINER
@@ -0,0 +1 @@
Ladislav Slezak <lslezak@suse.cz>
18 changes: 18 additions & 0 deletions Makefile.cvs
@@ -0,0 +1,18 @@
#
# Makefile.cvs
#
configure: all
./configure

all:
y2tool y2autoconf
y2tool y2automake
autoreconf --force --install

install: configure
make
make install

reconf: all
./config.status --recheck
./config.status
1 change: 1 addition & 0 deletions RPMNAME
@@ -0,0 +1 @@
yast2-bluetooth
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
2.10.0
2 changes: 2 additions & 0 deletions agents/.cvsignore
@@ -0,0 +1,2 @@
Makefile
Makefile.in
8 changes: 8 additions & 0 deletions agents/Makefile.am
@@ -0,0 +1,8 @@
# Makefile.am for bluetooth/agents

agent_SCRIPTS =

scrconf_DATA = bt_hcid.scr \
cfg_bluetooth.scr

EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
39 changes: 39 additions & 0 deletions agents/bt_hcid.scr
@@ -0,0 +1,39 @@
/**
* File: bt_hcid.scr
* Summary: Agent for rading and writing of /etc/bluetooth/hcid.conf file
* Author: Ladislav Slezak <lslezak@suse.cz>
* Access: read, write
*
* $Id$
*
* This file is based on dns_named.conf
*/
.bluetooth.hcid

// TODO: INI agent isn't optimal, in this file multiple occurences of one key
// in one section may be possible, section on one line is handled as a
// single value, and many many other problems are to be expected....
// should be replaced in future by some better agent

`ag_ini(
`IniAgent( "/etc/bluetooth/hcid.conf",
$[
"options" : [ "global_values", "repeat_names" ],
"comments" : [ "^[ \t]*#.*$", "^[ \t]*$" ],
"params" : [
$[ "match" : [ "([^ \t]+)[ \t]([^ \t]+(.*[^ \t]+)+)[ \t]*;$", "%s %s;" ]],
// (...)* made the agent crash when it did not match,
// changed it to ((...)*), #39597
// Still don't know why this is here at all
$[ "match" : [ "([^ \t]+)((.*[^ \t]+)*)[ \t]*\\{.*\\}[ \t]*;", "%s %s;" ]],
],
"sections" : [
$[
"begin" : [ "[ \t]*([^ \t]+(.*[^ \t]+)*)[ \t]*\\{$", "%s {" ],
"end" : [ "^[ \t]*\\}", "}" ],
],
],
"subindent" : "\t"
]
))

19 changes: 19 additions & 0 deletions agents/cfg_bluetooth.scr
@@ -0,0 +1,19 @@
/**
* File:
* cfg_bluetooth.scr
* Summary:
* SCR Agent for reading/writing /etc/sysconfig/bluetooth
* using the ini-agent
* Access:
* read/write
* Authors:
* Ladislav Slezak <lslezak@suse.cz>
*
* $Id$
*
*/
.sysconfig.bluetooth

`ag_ini(
`SysConfigFile("/etc/sysconfig/bluetooth")
)
12 changes: 12 additions & 0 deletions configure.in.in
@@ -0,0 +1,12 @@
## YCP module configure.in.in

## Initialize
@YAST2-INIT-COMMON@
@YAST2-INIT-YCP@

## some common checks
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-YCP@

## and generate the output...
@YAST2-OUTPUT@
2 changes: 2 additions & 0 deletions doc/.cvsignore
@@ -0,0 +1,2 @@
Makefile
Makefile.in
10 changes: 10 additions & 0 deletions doc/Makefile.am
@@ -0,0 +1,10 @@
# Makefile.am for bluetooth/doc

SUBDIRS = autodocs

htmldir = $(docdir)

doc_DATA =
html_DATA =

EXTRA_DIST = $(doc_DATA) $(html_DATA)
4 changes: 4 additions & 0 deletions src/.cvsignore
@@ -0,0 +1,4 @@
Makefile
Makefile.in
*.ybc
.dep

0 comments on commit a9cd25e

Please sign in to comment.