summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/tdb')
-rw-r--r--abs/core-testing/tdb/PKGBUILD29
-rw-r--r--abs/core-testing/tdb/gcc3.patch41
2 files changed, 70 insertions, 0 deletions
diff --git a/abs/core-testing/tdb/PKGBUILD b/abs/core-testing/tdb/PKGBUILD
new file mode 100644
index 0000000..1714862
--- /dev/null
+++ b/abs/core-testing/tdb/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 14092 2008-10-03 15:43:08Z tpowa $
+# Maintainer: eric <eric@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=tdb
+pkgver=3.2.4
+pkgrel=1
+# We use the 'A' to fake out pacman's version comparators. Samba chooses
+# to append 'a','b',etc to their subsequent releases, which pamcan
+# misconstrues as alpha, beta, etc. Bad samba!
+_realver=3.2.4
+pkgdesc="A Trivial Database similar to GDBM but allows simultaneous commits"
+arch=(i686 x86_64)
+license=('GPL3')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+url="www.samba.org"
+source=(http://us1.samba.org/samba/ftp/samba-${_realver}.tar.gz)
+options=(!makeflags)
+
+build() {
+ cd ${startdir}/src/samba-${_realver}/source/lib/tdb
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=$startdir/pkg install
+ ln -sf /usr/lib/libtdb.so.1.1.1 $startdir/pkg/usr/lib/libtdb.so.1
+ ln -sf /usr/lib/libtdb.so.1.1.1 $startdir/pkg/usr/lib/libtdb.so
+}
+md5sums=('7870a6bb3a025c6081cd56688acd494a')
diff --git a/abs/core-testing/tdb/gcc3.patch b/abs/core-testing/tdb/gcc3.patch
new file mode 100644
index 0000000..c88c2e7
--- /dev/null
+++ b/abs/core-testing/tdb/gcc3.patch
@@ -0,0 +1,41 @@
+--- tdb-1.0.6/tdbtool.c 2001-12-10 22:45:47.000000000 -0500
++++ ./tdbtool.c 2003-12-31 19:44:50.000000000 -0500
+@@ -169,22 +169,22 @@
+
+ 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: \
++ 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\
+ ");
+ }
+