source: packages/libs/libnetfilter-conntrack/Makefile @ 20068

Last change on this file since 20068 was 20068, checked in by nico, 6 years ago

[packages] add http download for files from http://www.netfilter.org/

File size: 1.9 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libnetfilter_conntrack
11PKG_VERSION:=0.0.101
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:= \
16        http://www.netfilter.org/projects/libnetfilter_conntrack/files/ \
17        ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/
18PKG_MD5SUM:=3c4b4048c914f2694c3ca6de2bb457dc
19
20PKG_FIXUP:=libtool
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libnetfilter-conntrack
26  SECTION:=libs
27  CATEGORY:=Libraries
28  DEPENDS:=@LINUX_2_6 +libnfnetlink +kmod-nf-conntrack-netlink
29  TITLE:=API to the in-kernel connection tracking state table
30  URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
31endef
32
33define Package/libnetfilter-conntrack/description
34 libnetfilter_conntrack is a userspace library providing a programming
35 interface (API) to the in-kernel connection tracking state table. The
36 library libnetfilter_conntrack has been previously known as
37 libnfnetlink_conntrack and libctnetlink. This library is currently
38 used by conntrack-tools among many other applications.
39endef
40
41TARGET_CFLAGS += $(FPIC)
42
43CONFIGURE_ARGS += \
44        --enable-static \
45        --enable-shared \
46
47define 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/
62endef
63
64define 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/
69endef
70
71$(eval $(call BuildPackage,libnetfilter-conntrack))
Note: See TracBrowser for help on using the repository browser.