[39076] trunk/dports/databases

simon at macports.org simon at macports.org
Thu Aug 7 04:27:41 PDT 2008


Revision: 39076
          http://trac.macosforge.org/projects/macports/changeset/39076
Author:   simon at macports.org
Date:     2008-08-07 04:27:40 -0700 (Thu, 07 Aug 2008)
Log Message:
-----------
databases/tdb: New port, a simple database similar to GDBM and BSD's DB.

Added Paths:
-----------
    trunk/dports/databases/tdb/
    trunk/dports/databases/tdb/Portfile
    trunk/dports/databases/tdb/files/
    trunk/dports/databases/tdb/files/patch-tdbtool.c.diff

Added: trunk/dports/databases/tdb/Portfile
===================================================================
--- trunk/dports/databases/tdb/Portfile	                        (rev 0)
+++ trunk/dports/databases/tdb/Portfile	2008-08-07 11:27:40 UTC (rev 39076)
@@ -0,0 +1,30 @@
+# $Id$
+
+PortSystem          1.0
+
+name                tdb
+version             1.0.6
+categories          databases
+platforms           darwin
+maintainers         simon openmaintainer
+description         TDB is a Trivial Database
+long_description    TDB is a Trivial Database. In concept, it is very much \
+                    like GDBM, and BSD's DB except that it allows multiple \
+                    simultaneous writers and uses locking internally to keep \
+                    writers from trampling on each other. TDB is also \
+                    extremely small.
+
+homepage            http://sourceforge.net/projects/tdb/
+master_sites        sourceforge
+checksums           md5 6b643fdeb48304010dcd5f675e458b58 \
+                    sha1 d1876522f1b8ffa8cf844a1f6605e0c32d387a7a \
+                    rmd160 5163caf1cc76c9f3a69e88f7438ecd98ec5e52cf
+
+patchfiles          patch-tdbtool.c.diff
+
+configure.args      --mandir=${prefix}/share/man
+
+platform darwin {
+   # Fix the configure script which can't guess our host type.
+   configure.args-append   --host=${os.arch}-apple
+}


Property changes on: trunk/dports/databases/tdb/Portfile
___________________________________________________________________
Name: svn:keyword
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/databases/tdb/files/patch-tdbtool.c.diff
===================================================================
--- trunk/dports/databases/tdb/files/patch-tdbtool.c.diff	                        (rev 0)
+++ trunk/dports/databases/tdb/files/patch-tdbtool.c.diff	2008-08-07 11:27:40 UTC (rev 39076)
@@ -0,0 +1,41 @@
+--- tdbtool.c	2008-01-20 22:26:37.000000000 +0100
++++ tdbtool.c	2008-01-20 22:27:45.000000000 +0100
+@@ -169,23 +169,21 @@
+ 
+ static void help(void)
+ {
+-	printf("
+-tdbtool: 
+-  create    dbname     : create a database
+-  open      dbname     : open an existing database
+-  erase                : erase the database
+-  dump      dumpname   : dump the database as strings
+-  insert    key  data  : insert a record
+-  store     key  data  : store a record (replace)
+-  show      key        : show a record by key
+-  delete    key        : delete a record by key
+-  list                 : print the database hash table and freelist
+-  free                 : print the database freelist
+-  1 | first            : print the first record
+-  n | next             : print the next record
+-  q | quit             : terminate
+-  \\n                   : repeat 'next' command
+-");
++printf("tdbtool: ");
++printf("  create    dbname     : create a database\n");
++printf("  open      dbname     : open an existing database\n");
++printf("  erase                : erase the database\n");
++printf("  dump      dumpname   : dump the database as strings\n");
++printf("  insert    key  data  : insert a record\n");
++printf("  store     key  data  : store a record (replace)\n");
++printf("  show      key        : show a record by key\n");
++printf("  delete    key        : delete a record by key\n");
++printf("  list                 : print the database hash table and freelist\n");
++printf("  free                 : print the database freelist\n");
++printf("  1 | first            : print the first record\n");
++printf("  n | next             : print the next record\n");
++printf("  q | quit             : terminate\n");
++printf("  \\n                   : repeat 'next' command\n");
+ }
+ 
+ static void terror(char *why)


Property changes on: trunk/dports/databases/tdb/files/patch-tdbtool.c.diff
___________________________________________________________________
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080807/d14ea3e9/attachment.html 


More information about the macports-changes mailing list