[packages] update conntrack-tools and friends
[openwrt/svn-archive/archive.git] / libs / libnetfilter-conntrack / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libnetfilter_conntrack
11 PKG_VERSION:=0.0.100
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/
15 PKG_MD5SUM:=c047cea509621cf2abed0718cb210972
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/libnetfilter-conntrack
20 SECTION:=libs
21 CATEGORY:=Libraries
22 DEPENDS:=@LINUX_2_6 +libnfnetlink +kmod-nf-conntrack-netlink
23 TITLE:=API to the in-kernel connection tracking state table
24 URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
25 endef
26
27 define Package/libnetfilter-conntrack/description
28 libnetfilter_conntrack is a userspace library providing a programming
29 interface (API) to the in-kernel connection tracking state table. The
30 library libnetfilter_conntrack has been previously known as
31 libnfnetlink_conntrack and libctnetlink. This library is currently
32 used by conntrack-tools among many other applications.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --enable-static \
39 --enable-shared \
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) all
43 $(call libtool_fixup_libdir)
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_conntrack
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_conntrack/*.h \
51 $(1)/usr/include/libnetfilter_conntrack/
52
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.{so*,a,la} \
56 $(1)/usr/lib/
57
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_conntrack.pc \
61 $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libnetfilter-conntrack/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.so.* \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libnetfilter-conntrack))