2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/tdb
17 PKG_MD5SUM
:=6b643fdeb48304010dcd5f675e458b58
20 PKG_BUILD_DEPENDS
:=+libgdbm
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Trivial Database
29 URL
:=http
://sourceforge.net
/projects
/tdb
/
30 MAINTAINER
:=Dmitry V. Zimin
<pfzim@mail.ru
>
34 define Package
/tdb
/description
35 TDB is a Trivial Database. In concept
, it is very much like GDBM
,
36 and BSD
's DB except that it allows multiple simultaneous writers
37 and uses locking internally to keep writers from trampling on
38 each other. TDB is also extremely small.
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/tdb.h $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
48 define Package/tdb/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
55 $(eval $(call BuildPackage,tdb))