* [PATCH] wireless-regdb: adds a manpage for regulatory.bin, updates Makefile
@ 2009-01-23 22:56 Luis R. Rodriguez
2009-01-24 6:04 ` Michael Buesch
0 siblings, 1 reply; 3+ messages in thread
From: Luis R. Rodriguez @ 2009-01-23 22:56 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, Luis R. Rodriguez
This adds a man page for the regulatory.bin file and updates
the Makefile to make it the install target flexible for distributions.
As part of the install you also now get the the man page.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
Makefile | 19 +++++++++++++++----
regulatory.bin.5 | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 4 deletions(-)
create mode 100644 regulatory.bin.5
diff --git a/Makefile b/Makefile
index 07c3030..0171196 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,16 @@
PREFIX = /usr
CDRA_PATH = $(PREFIX)/lib/crda
+SBINDIR ?= /sbin/
+MANDIR ?= $(PREFIX)/share/man/
+
+
.PHONY: all clean install maintainer-clean
all: regulatory.bin key.pub.pem
clean:
- rm -f *.pyc
+ rm -f *.pyc *.gz
maintainer-clean: clean
rm -f regulatory.bin key.pub.pem
@@ -23,6 +27,13 @@ endif
key.priv.pem:
openssl genrsa -out key.priv.pem 2048
-install:
- install -o 0 -g 0 -m 755 -d $(CDRA_PATH)
- install -o 0 -g 0 -m 644 regulatory.bin $(CDRA_PATH)/regulatory.bin
+%.gz: %
+ gzip < $< > $@
+
+# Distributions wishing to just use John's database
+# can just call make install.
+install: regulatory.bin.5.gz
+ install -o 0 -g 0 -m 755 -d $(DESTDIR)/$(CDRA_PATH)
+ install -o 0 -g 0 -m 644 regulatory.bin $(DESTDIR)/$(CDRA_PATH)/regulatory.bin
+ mkdir -p $(DESTDIR)/$(MANDIR)/man5/
+ install -m 644 -t $(DESTDIR)/$(MANDIR)/man5/ regulatory.bin.5.gz
diff --git a/regulatory.bin.5 b/regulatory.bin.5
new file mode 100644
index 0000000..d4f80cb
--- /dev/null
+++ b/regulatory.bin.5
@@ -0,0 +1,37 @@
+.TH regulatory.bin 8 "23 January 2009" "regulatory.bin" "Linux"
+.SH NAME
+regulatory.bin \- The Linux wireless regulatory database
+
+.ad l
+.in +8
+.ti -8
+
+.SS
+.SH Description
+.B regulatory.bin
+is the file used by the Linux wireless subsystem to keep its regulatory
+database information. It is read by
+.B crda
+upon the Linux kernel's request for regulatory information for a specific
+ISO / IEC 3166 alpha2 country code. The regulatory database is kept in
+a small binary format for size and code efficiency. The
+.B regulatory.bin
+file can be parsed and read in human format by using the
+.B regdbdump
+command. The
+.B regulatory.bin
+file should be updated upon regulatory changes or corrections.
+
+.SH Upkeeping
+The regulatory database is maintained by the community as such
+you are encouraged to send any corrections or updates to the
+linux-wireless mailing list:
+.B linux-wireless@vger.kernel.org
+
+.SH SEE ALSO
+.BR regdbdump (8)
+.BR crda (8)
+.BR iw (8)
+
+.BR http://wireless.kernel.org/en/developers/Regulatory/
+
--
1.6.1.rc3.51.g5832d
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wireless-regdb: adds a manpage for regulatory.bin, updates Makefile
2009-01-23 22:56 [PATCH] wireless-regdb: adds a manpage for regulatory.bin, updates Makefile Luis R. Rodriguez
@ 2009-01-24 6:04 ` Michael Buesch
2009-01-24 20:36 ` Luis R. Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Michael Buesch @ 2009-01-24 6:04 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linville, linux-wireless
On Friday 23 January 2009 23:56:27 Luis R. Rodriguez wrote:
> This adds a man page for the regulatory.bin file and updates
> the Makefile to make it the install target flexible for distributions.
> As part of the install you also now get the the man page.
>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> ---
> Makefile | 19 +++++++++++++++----
> regulatory.bin.5 | 37 +++++++++++++++++++++++++++++++++++++
> 2 files changed, 52 insertions(+), 4 deletions(-)
> create mode 100644 regulatory.bin.5
>
> diff --git a/Makefile b/Makefile
> index 07c3030..0171196 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2,12 +2,16 @@
> PREFIX = /usr
> CDRA_PATH = $(PREFIX)/lib/crda
>
> +SBINDIR ?= /sbin/
> +MANDIR ?= $(PREFIX)/share/man/
Why do you define SBINDIR? It doesn't seem to be used.
--
Greetings, Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] wireless-regdb: adds a manpage for regulatory.bin, updates Makefile
2009-01-24 6:04 ` Michael Buesch
@ 2009-01-24 20:36 ` Luis R. Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2009-01-24 20:36 UTC (permalink / raw)
To: Michael Buesch
Cc: Luis Rodriguez, linville@tuxdriver.com,
linux-wireless@vger.kernel.org
On Fri, Jan 23, 2009 at 10:04:24PM -0800, Michael Buesch wrote:
> On Friday 23 January 2009 23:56:27 Luis R. Rodriguez wrote:
> > This adds a man page for the regulatory.bin file and updates
> > the Makefile to make it the install target flexible for distributions.
> > As part of the install you also now get the the man page.
> >
> > Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> > ---
> > Makefile | 19 +++++++++++++++----
> > regulatory.bin.5 | 37 +++++++++++++++++++++++++++++++++++++
> > 2 files changed, 52 insertions(+), 4 deletions(-)
> > create mode 100644 regulatory.bin.5
> >
> > diff --git a/Makefile b/Makefile
> > index 07c3030..0171196 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -2,12 +2,16 @@
> > PREFIX = /usr
> > CDRA_PATH = $(PREFIX)/lib/crda
> >
> > +SBINDIR ?= /sbin/
> > +MANDIR ?= $(PREFIX)/share/man/
>
> Why do you define SBINDIR? It doesn't seem to be used.
Sorry, a copy a paste from crda makefile :)
Luis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-24 20:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 22:56 [PATCH] wireless-regdb: adds a manpage for regulatory.bin, updates Makefile Luis R. Rodriguez
2009-01-24 6:04 ` Michael Buesch
2009-01-24 20:36 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).