chiark / gitweb /
Debian package wip
authorian <ian>
Thu, 30 Mar 2006 19:11:24 +0000 (19:11 +0000)
committerian <ian>
Thu, 30 Mar 2006 19:11:24 +0000 (19:11 +0000)
64 files changed:
TODO [new file with mode: 0644]
adns/adns.c
adns/adns.tct
adns/chiark_tcl_adns.h
base/Makefile
base/base.tct
base/chiark-tcl-base.h
base/chiark-tcl.h
base/common.make
base/enum.c
base/extension.make
base/final.make
base/hook.c
base/idtable.c
base/parse.c
base/scriptinv.c
base/shlib.make
base/tables-examples.tct [deleted file]
base/tcmdifgen
base/tcmdiflib.c
base/troglodyte-Makefile [deleted file]
cdb/Makefile
cdb/cdb.tct
cdb/chiark_tcl_cdb.h
cdb/lookup.c
cdb/readonly.c
cdb/tests [deleted file]
cdb/writeable.c
crypto/Makefile
crypto/algtables.c
crypto/bcmode.c
crypto/chiark_tcl_crypto.h
crypto/crypto.c
crypto/crypto.h
crypto/crypto.tct
crypto/hook.c
debian/.cvsignore [new file with mode: 0644]
debian/README [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/extractdoc [new file with mode: 0644]
debian/lintian-overrides [new file with mode: 0644]
debian/rules [new file with mode: 0755]
dgram/dgram.h
dgram/dgram.tct
dgram/hook.c
hbytes/Makefile
hbytes/chiark_tcl_hbytes.h
hbytes/chop.c
hbytes/hbytes-base.tct
hbytes/hbytes.c
hbytes/hbytes.h
hbytes/hbytes.tct
hbytes/hook.c
hbytes/parse.c
hbytes/ulongs.c
maskmap/addrmap.c
maskmap/maskmap-bits.c
maskmap/maskmap.c
maskmap/maskmap.tct
tuntap/tuntap.h
tuntap/tuntap.tct

diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..879083b
--- /dev/null
+++ b/TODO
@@ -0,0 +1,2 @@
+install lintian overrides
+change filenames to *.so.1 ?
index 30d036bd5f89e86f9eab09b7521a6dfb165eaaae..6405f0016d103f7b5643fb7a077a82e535f4fb09 100644 (file)
@@ -1,5 +1,3 @@
-/*
- */
 /*
  * adns lookup TYPE DOMAIN [QUERY-OPTIONS]                    => [list RDATA]
  *    if no or dontknow, throws an exception, with errorCode one of
  *
  * adns destroy-resolver RESOLVER
  *        cancels outstanding queries
+ *
+ */
+/* ---8<--- end of documentation comment --8<-- */
+
+/*
+ * adns.c - adns binding for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #define _GNU_SOURCE
index 513de6ed2126dc666c4e7ff709dd7d0a04319be1..dbb700ce0e1298c5d04b3aed2db387603a3cada7 100644 (file)
@@ -1,3 +1,22 @@
+# adns binding for Tcl
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Type adnsresults:              adns_answer *@
 Init adnsresults               @=0;
 Fini adnsresults               free(@);
index af8de0e9c70c09422accfa05bd674a41e2495d61..f450f4a6efcb95dfc69e35ce0b1d225d0050b5ae 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * adns binding for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #ifndef ADNSTCL_H
index 848210b95cfe768ea0fe1a2a468e69deaa4c6eaf..faa7f2922a7ddc66d9f3815aade0d27f9f377549 100644 (file)
@@ -1,3 +1,21 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
 default:       all
 
 CFILES =       enum hook idtable parse scriptinv tcmdiflib
index 425cb99e9e9b5708205e652dca59720c20be1f90..a5313e71df87aa99743c8779af530adac32eda19 100644 (file)
@@ -1,3 +1,22 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Type iddata(const IdDataSpec *idds):   void *@
 Type ulong:                    uint32_t @
 Type long:                     long @
index d8f000a9179f2305b62485ba8c94f8cd4523c7dc..f80fafa1161fd9d43b064ca2817a11e979e71a1d 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
 #include <string.h>
 #include <errno.h>
 
index 91d76fd7cd7e907f9b51dfa1c6652f8c64bd9c5d..2f80d58172904c0eea95e3feef49fe1e04e294da 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #ifndef CHIARK_TCL_H
index 12259fafc24fd6689f703e6bf076f4785e76e553..a71574786383e0d4e93395310d11f8b23d19b3f2 100644 (file)
@@ -1,3 +1,22 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 VERSION ?=     1
 FAMILY ?=      chiark_tcl
 
index e40b51343b3564cf7d3708d5f0f93f0c927e0f1f..feb9e2de0a505c7167fa725f127c4110088cdbf3 100644 (file)
@@ -1,5 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
  *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
index d03cb286fea34d9d7b8a866e1424f05e320a56ce..ed48edc65dc8e1c1b23dffb05fccc9a0272c408d 100644 (file)
@@ -1,3 +1,22 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 
 EXTPREFIX ?=   $(FAMILY)_
 EXTENSION ?=   $(EXTPREFIX)$(EXTBASE)
index 1100e8bbbf2972ace9d21eeb2bd8e3cfa693c503..1f14f62e467ebff107e409b72d8d08da9a3ef8d7 100644 (file)
@@ -1,3 +1,22 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 all:           $(TARGETS) $(AUTOS)
 
 $(OBJS_CFILES):        $(AUTO_HDRS)
index 9243724ecc91b3deaf08976949f6a6fa86a3be11..acd708a91f5cb92e2910e1656881300e9a9b7f32 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
index 554f9992a15ce116317b28f493acabdf93460ab8..389151e2c5a75096a669c37200f2adbc28c626f7 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
index 035e53122bd0a6c51c803569b3df29f2ebad1aa1..e04d8769ca0c5232d467964be52b82c801437475 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
index a066572c2873ecc3edff403574c8f6cc2a89f350..5757d47b52f9ef8549a577ee29f76b7d2a050f78 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
index e69ea6c64d54d007eed54ca1e40f1a5a4a5a0b77..a213a665b101b3a61482d3940f5ece479bc12d65 100644 (file)
@@ -1,9 +1,29 @@
+# base code for various Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 
 OBJS_CFILES += $(addsuffix .o, $(CFILES))
 OBJS +=                $(OBJS_CFILES)
+CFLAGS +=      -fPIC
 
 TARGETS +=     $(SHLIB).so
+SHLIB_LDFLAGS ?= $(LDFLAGS) -o $@ -shared -Xlinker -soname=$@
 
 $(SHLIB).so:   $(OBJS)
-               $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared \
-                       -Xlinker -soname=$@ $(OBJS) $(LDLIBS)
+               $(CC) $(CFLAGS) $(SHLIB_LDFLAGS) $(OBJS) $(LDLIBS)
diff --git a/base/tables-examples.tct b/base/tables-examples.tct
deleted file mode 100644 (file)
index e69de29..0000000
index bd972454147bb0151f7aacd889f55cf14c458628..f4c77fc95695c05cd44d4aed217ea639c676af3a 100755 (executable)
@@ -1,5 +1,24 @@
 #!/usr/bin/perl
 
+# code generator to help with writing Tcl extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 # Input format is line-based, ws-significant, offside rule (some kind
 #  of, anyway).
 #
index 984c75fc3e1ebf4dc1f5e0b8fe46ab55aae343dd..85b181ed34a2791a735fafcca5518396d81e24df 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * base code for various Tcl extensions
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark-tcl-base.h"
diff --git a/base/troglodyte-Makefile b/base/troglodyte-Makefile
deleted file mode 100644 (file)
index ed38b04..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-
-#alg.o:                alg.c alg.h alg2.h
-#              $(CC_CRYPTO) -o $@ -c $<
-
-clean:
-               rm -f $(OBJS) $(TARGETS) *~ ./#*#
index b3fadac313dc2482a15030fa6a07ec3214cd4873..c6a49be76198205fdcae4c921b6d0761f06419b1 100644 (file)
@@ -1,3 +1,22 @@
+# cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 BASE_DIR =     ../base
 EXTBASE =      cdb
 CFILES =       readonly writeable lookup
index c42fb669a8c27d559dcef5c1700f318ecca566b6..9754324ee88439840591b096ad2f3e4085315562 100644 (file)
@@ -1,3 +1,22 @@
+# cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Table *cdbtoplevel TopLevel_Command
        cdb
                subcmd  enum(Cdb/_SubCommand, "cdb subcommand")
index d06713dcb413945c1ab42ca4930cbd621cc800c0..629d66cca5de286ff6d34a5a439288ca0a2b60ab 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #ifndef CHIARK_TCL_CDB_H
index 5c32d865b07e15dcadb7c9d391b9d4393cddf321..6245384eed1c8c66d9c4543a3227ffde867a4a9e 100644 (file)
@@ -1,4 +1,22 @@
-/**/
+/*
+ * cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
 
 #include "chiark_tcl_cdb.h"
 
index 3bfa98bbb68bd3a691894e7b4772973938815a96..7a3ba446439b825fa8b51c05ba62b48d486b69ff 100644 (file)
@@ -1,4 +1,22 @@
-/**/
+/*
+ * cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
 
 #include "chiark_tcl_cdb.h"
 
diff --git a/cdb/tests b/cdb/tests
deleted file mode 100755 (executable)
index 658233e..0000000
--- a/cdb/tests
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/tclsh8.3
-
-proc addpath {p before after default} {
-    upvar #0 env($p) lc
-    if {[info exists lc]} {
-       set l [split $lc :]
-    } else {
-       set l $default
-    }
-    set l [append $before $l $after]
-    set lc [join $l :]
-}
-
-addpath LD_LIBRARY_PATH {../base ../hbytes} {} {}
-
-load ./chiark_tcl_cdb-1.so
-
-#
-# CURRENTLY TESTING WITH
-#  rm -f test-out.*
-#  LD_LIBRARY_PATH=../base:../hbytes:. ../../sauce/convertdb test-out 0 db.addr-list.main db.addr-list.log 
-#  LD_LIBRARY_PATH=../base:../hbytes:. strace ../../sauce/convertdb test-out 0 db.addr-list.main db.addr-list.log 
-#  LD_LIBRARY_PATH=../base:../hbytes:. valgrind --db-attach=yes tclsh8.3 ../../sauce/convertdb test-out 0 db.addr-list.main db.addr-list.log 
index 6dc412b21ded57aca8e516ee88ce0f99b1252b4c..9cdd0095bd615fd1a1359e2ee145a81e12487513 100644 (file)
@@ -1,4 +1,22 @@
-/**/
+/*
+ * cdb, cdb-wr - Tcl bindings for tinycdb and a journalling write extension
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
 
 #include "chiark_tcl_cdb.h"
 
index 9dee1a374baf77afbb08f364328eb1d6282ff978..dfdf7191cac8d35fff9bbc67135aa4db35430c0f 100644 (file)
@@ -1,3 +1,22 @@
+# crypto - Tcl bindings for parts of the `nettle' crypto library
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 BASE_DIR =     ../base
 EXTBASE =      crypto
 CFILES =       algtables bcmode crypto hook
index ea591fb0ed89860e026d12f9cd3edeee88eafca8..0e15cdf67e01f1f3b444157b6f366e2b5b61730d 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "chiark_tcl_crypto.h"
 
 #include <nettle/md5.h>
index 24dfdb80d85e22a6233f062fbd2b1da03cdb5490..7c1886e9b89968315fd05643039b51d47f48644e 100644 (file)
@@ -1,5 +1,23 @@
 /*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
+
   
 #include "chiark_tcl_crypto.h"
 
index 02f68dbb5ed0d35f9c6d6e6c9530f9a780892a34..538c23f6ea5eea7970ebc16d152062e7a586c74b 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
 
 #include <stdint.h>
 #include <stddef.h>
index e8d7f1a64dfff433a848b4c1f555e0f20a9d3c68..988d1bceb01e643afc7a14ef7b7cc57734990960 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "chiark_tcl_crypto.h"
 
 const PadOp cht_padop_entries[]= {
index 335063114cf5d596bd6da4be6db708888ab07857..b2a7bc8cc40e89771d4a82e5ef4bbf7efdf9e394 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #ifndef CRYPTO_H
 #define CRYPTO_H
 
index cc10545db55aea32c49a3c221c17400d35ee05b6..d12472ffe2dbd89d0da7886cc8d5886db6c13ce5 100644 (file)
@@ -1,3 +1,20 @@
+# crypto - Tcl bindings for parts of the `nettle' crypto library
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
 
 
 Table *hbcryptotoplevel TopLevel_Command
index 002c0d4fa30e79bc319311acdab8a4d52074c047..f8c567fe4dfc65da87412cee6fc31a95c3e73f5b 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * crypto - Tcl bindings for parts of the `nettle' crypto library
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "chiark_tcl_crypto.h"
 
 int cht_do_hbcryptotoplevel_hbcrypto(ClientData cd, Tcl_Interp *ip,
diff --git a/debian/.cvsignore b/debian/.cvsignore
new file mode 100644 (file)
index 0000000..b2e02fa
--- /dev/null
@@ -0,0 +1,3 @@
+files
+*.substvars
+libtcl-chiark-1
diff --git a/debian/README b/debian/README
new file mode 100644 (file)
index 0000000..e0fa3f2
--- /dev/null
@@ -0,0 +1,36 @@
+        chiark-tcl - some useful Tcl bindings
+        -------------------------------------
+
+This package contains, basically, shared libraries
+  chiark_tcl_<something>-1.so
+in /usr/lib.
+
+Each of these is a Tcl extension which can be loaded into a Tcl
+interpreter with
+  load chiark_tcl_<something>-1.so
+and then the new commands will immediately be available.
+
+The documentation for each extension is regrettably rather sketchy but
+the following information should be enough to get you started:
+
+  <something>.tct
+
+      This is the input file to the automatic Tcl<->C glue generator
+      used by all of the extensions provided in this package.  This
+      lists the commands and subcommands available.
+
+  <something>.[ch].txt
+
+      Some of the extensions have additional usage documentation in a
+      source code comment.  This comment has been mechanically
+      extracted from the source file for your comfort and convenience.
+
+To gain an understanding of the way the *.tct files work, take a
+look at adns.c.txt which describes the `adns' command provided by
+the adns binding.
+
+Note that the file /usr/lib/chiark_tcl-1.so is NOT an amalgam of all
+of the extensions.  It is a set of common routines which will be
+loaded automatically when required.  Each extension must be loaded
+explicitly with the Tcl `load' command to bring the additional
+commands into the Tcl command namespace.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..dd8dd7b
--- /dev/null
@@ -0,0 +1,24 @@
+chiark-tcl (1.0.0) unstable; urgency=low
+
+  * Initial release.
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 30 Mar 2006 18:34:51 +0100
+
+
+# chiark-tcl - various Tcl bindings and extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b7517dd
--- /dev/null
@@ -0,0 +1,39 @@
+Source: chiark-tcl
+Maintainer: Ian Jackson <ian@davenant.greenend.org.uk>
+Standards-Version: 3.6.2
+Build-Depends: libadns1-dev, libnettle-dev, tinycdb, tcl8.4-dev | tcl8.3-dev | tcl8.2-dev
+
+Package: libtcl-chiark-1
+Architecture: any
+Description: Tcl interfaces for adns, cdb, crypto, udp, etc.
+ Tcl bindings for:
+  * adns (resolver library)
+  * cdb (constant database) plus journalling writeable database
+  * crypto: the nettle cryptographic library
+  * hbytes: bytestrings with hex as string representation but efficient
+ To make sensible use of these you will need a version of Tcl installed
+ (this package is compatible with at least Tcl 8.0 to 8.4 inclusive).
+ To use the adns, cdb and nettle bindings you need to have the
+ appropriate libraries installed too.
+Priority: optional
+Section: interpreters
+Depends: ${shlibs:Depends}
+
+
+# chiark-tcl - various Tcl bindings and extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..dc04e2c
--- /dev/null
@@ -0,0 +1,25 @@
+chiark-tcl is a collection of Tcl extensions
+This Debian package was prepared by Ian Jackson, also the upstream
+author.
+
+
+Copyright 2006 Ian Jackson
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation; either version 2 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301, USA.
+
+
+A copy of the GNU General Public License, version 2, should be
+installed on your Debian system in /usr/share/common-licenses/GPL.
diff --git a/debian/extractdoc b/debian/extractdoc
new file mode 100644 (file)
index 0000000..318c8cc
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+$o= '';
+for (;;) {
+    exit 0 unless defined ($_= <STDIN>);
+    $o .= $_;
+    last if / \-\-\-8\<\-\-\- end of documentation /;
+}
+($before, $_, $after)= @ARGV;
+s,.*/,,;
+$of= $before.$_.$after;
+open F, "> $of" or die $!;
+print F $o or die $!;
+close F or die $!;
+print " wrote $of\n" or die $!;
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644 (file)
index 0000000..1853967
--- /dev/null
@@ -0,0 +1,16 @@
+# These things are not linkable against with ld; they're plugin modules
+# for use with dlopen but want to be on the default load path for Tcl's
+# convenience:
+libtcl-chiark-1 binary: no-shlibs-control-file usr/lib/chiark_tcl_adns-1.so
+libtcl-chiark-1 binary: no-shlibs-control-file usr/lib/chiark_tcl_hbytes-1.so
+libtcl-chiark-1 binary: no-shlibs-control-file usr/lib/chiark_tcl_crypto-1.so
+libtcl-chiark-1 binary: no-shlibs-control-file usr/lib/chiark_tcl_cdb-1.so
+libtcl-chiark-1 binary: no-shlibs-control-file usr/lib/chiark_tcl-1.so
+
+# tinycdb.deb doesn't produce any -fPIC code.  So this one only
+# works on archs where -fPIC for shlibs isn't mandatory.
+libtcl-chiark-1 binary: shlib-with-non-pic-code usr/lib/chiark_tcl_cdb-1.so
+
+# Our Description ends in `etc.' which makes lintian think it's a
+# sentence.
+libtcl-chiark-1 binary: description-synopsis-might-not-be-phrased-properly
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..333dfb6
--- /dev/null
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+# chiark-tcl - various Tcl bindings and extensions
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
+majversion=1
+srcpackage=chiark-tcl
+libpackage=libtcl-chiark-$(majversion)
+docpackage=libtcl-chiark-$(majversion)
+docdir=usr/share/doc/$(docpackage)
+
+define checkdir
+       test -f hbytes/hbytes.tct
+endef
+
+build:
+       $(checkdir)
+       $(MAKE) prefix=/usr VERSION=$(majversion)
+
+clean:
+       $(checkdir)
+       $(MAKE) clean
+       rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars*
+       dh_clean
+
+binary-indep:
+
+binary-arch:   checkroot build
+       $(checkdir)
+       -rm -rf debian/$(docpackage) debian/$(libpackage)
+       install -d debian/$(libpackage)/usr/lib
+       install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
+
+       cp */*.so debian/$(libpackage)/usr/lib/.
+
+       set -e; for f in */*.[ch]; do                                   \
+               perl debian/extractdoc <$$f                             \
+                       debian/$(docpackage)/$(docdir)/ $$f .txt;       \
+               done
+       cp */*.tct debian/README debian/copyright \
+               debian/$(docpackage)/$(docdir)
+
+       dh_installchangelogs
+       dh_strip
+
+       dh_shlibdeps
+       dh_compress
+       dh_fixperms
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+# Below here is fairly generic really
+
+binary:                binary-indep binary-arch
+
+source diff:
+       @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+       $(checkdir)
+       dh_testroot
+
+.PHONY: binary binary-arch binary-indep clean checkroot
index d95185c9e890467f201e6c061daefe7550be0c2f..99a6d103b541fa45a567bef1408dcc9f3bcebe4e 100644 (file)
@@ -1,3 +1,23 @@
+/* dgram - Tcl extension for udp datagrams
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
 /* from sockaddr.c */
 
 typedef struct {
index b2b12847f437a449ea1a905755ba09a2df92bf35..bdd2312af934dd45c925cd17a822f694d26e43db 100644 (file)
@@ -1,3 +1,22 @@
+# dgram - Tcl extension for udp datagrams
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Type sockaddr:                 SockAddr_Value @
 Init sockaddr                  sockaddr_clear(&@);
 
index 72b3f70b077be7a8374aad4e40d2fbfae95aabdd..55b26726b24cf93ca66737a38cfe8d611354d6fa 100644 (file)
@@ -1 +1,21 @@
+/* dgram - Tcl extension for udp datagrams
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
   Tcl_RegisterObjType(&sockaddr_type);
index 06b4a3a1c1b18daaf814c0c1c96818dd47448881..136fbc97e2ab8a25140d0204174f06a33634fb21 100644 (file)
@@ -1,3 +1,22 @@
+# hbytes - hex-stringrep efficient byteblocks for Tcl
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 BASE_DIR =     ../base
 EXTBASE =      hbytes
 CFILES =       chop hbytes hook parse ulongs
index 8786a6a5f6fa8780ab63e2e13f9712b2995d2881..ae7c5e345d11808979adf839ffc6ef9d33e120d0 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #ifndef CHIARK_TCL_HBYTES_H
 #define CHIARK_TCL_HBYTES_H
 
index ef0e5f0b737f18f9ecd7648786f4b363fec60d60..3e48569ff63bfa343b8984d09a385ba6c7a91338 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "chiark_tcl_hbytes.h"
 
 static int strs1(Tcl_Interp *ip, int strc, Tcl_Obj *const *strv, int *l_r) {
index 97b7ed3ad29237aa18a0f0b73b3703ed79975e26..10ddc81313baf3799feb6f9bac27a241e6440e63 100644 (file)
@@ -1,3 +1,22 @@
+# hbytes - hex-stringrep efficient byteblocks for Tcl
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Type hb:                       HBytes_Value @
 Init hb                                cht_hb_sentinel(&@);
 
index 22383df0d05f889201d380e1e6c7ab79daffbc8d..5daecd1c5038437357fb896f1bd9d4e4b9044005 100644 (file)
@@ -1,7 +1,24 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
  *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "hbytes.h"
 
 #define COMPLEX(hb) ((HBytes_ComplexValue*)hb->begin_complex)
index b24144b482b9a35dacad76763c6ddc2d526a344a..3b4dd157c022b71eb2633cb3caabb54408058580 100644 (file)
@@ -1,5 +1,3 @@
-/*
- */
 /*
  *  hbytes raw2h BINARY                          => hex
  *  hbytes h2raw HEX                             => binary
  * TUNTAP IFNAME LENGTH                tun/tap interface name too long
  * TUNTAP MTU OVERRUN                  tun/tap mtu limited to 2^16 bytes
  *
- * Refs: HMAC: RFC2104 */
+ * Refs: HMAC: RFC2104
+ */
+/* ---8<--- end of documentation comment --8<-- */
+
+/*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
 
 #ifndef HBYTES_H
 #define HBYTES_H
index 5611805de07165a0edb406af714ca9441fa84de4..35506d5179501ac46fa13a6c00f9742506c4f4bc 100644 (file)
@@ -1,3 +1,21 @@
+# hbytes - hex-stringrep efficient byteblocks for Tcl
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
 
 Table *hbytestoplevel TopLevel_Command
        hbytes
index 985122ecb1c912690aa612a58a5c623536597ab4..f3817ffe20d44de9c22029b270e554d650f0e44a 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include <errno.h>
 
 #include "chiark_tcl_hbytes.h"
index 266de4b6739ab96534539906450f7b0f3af264d2..1b23e93ca420a83afa3fa758a3baae98944266ab 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark_tcl_hbytes.h"
index 0f99db3eb1acfa043778a8b3d1b54c403086bbd9..5ab364ef33d248f788f8fe737323ded0ab9fe310 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark_tcl_hbytes.h"
index 33eeda42390c1dab9db0adef5eba40efcd962d0a..437b41ae1c8c12050bb0fea07b75e2eae3d62dd7 100644 (file)
@@ -1,6 +1,24 @@
 /*
+ * maskmap - Tcl extension for address mask map data structures
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
+
 #include "chiark_tcl_hbytes.h"
 
 /*---------- operations on AddrMap_Entry ----------*/
index 88cb31cac3c8806652a9d710f299dc2ac6ca8803..6e2cdd142432fd6c4c502edd4a290df8c015787c 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * maskmap - Tcl extension for address mask map data structures
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
 int cht_do_hbytes_addr_map(ClientData cd, Tcl_Interp *ip,
                       const AddrMap_SubCommand *subcmd,
                       int objc, Tcl_Obj *const *objv) {
index ea2a690b6f4f4a1e78ef92497040493d9de76518..ad141a925ca38123224a0cd21cb0ccd2b420cdff 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * maskmap - Tcl extension for address mask map data structures
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark_tcl_hbytes.h"
index a9e7056be19ed441387dea57644cd5e4db6e119f..4570073026491f020564d4d41f543158d1686344 100644 (file)
@@ -1,3 +1,22 @@
+# maskmap - Tcl extension for address mask map data structures
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 Table *maskmaptoplevel TopLevel_Command
        addr-map
                subcmd  enum(AddrMap/_SubCommand, "addr-map subcommand")
index f23eee1d912e3dc489ac523bfb01d9ad04360ddd..a17e22815ce82fc49a3b78e6792ff32434a33f82 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * tuntap - Tcl extension for tun/tap network device
+ * Copyright 2006 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
 /* from tuntap.c */
 
 extern const IdDataSpec tuntap_socks;
index 22f01fbad6364123d979f7341d965dfb38333b17..698f97f1d5570bc6c15428e9ba911c6921ee3bb9 100644 (file)
@@ -1,3 +1,22 @@
+# tuntap - Tcl extension for tun/tap network device
+# Copyright 2006 Ian Jackson
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
 
 Table tuntap_socket_raw TunSocket_SubCommand
        create