OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2009-2013 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_cthelper |
||
11 | PKG_VERSION:=1.0.0 |
||
12 | PKG_RELEASE:=2 |
||
13 | |||
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
||
15 | PKG_SOURCE_URL:= \ |
||
16 | http://www.netfilter.org/projects/libnetfilter_cthelper/files/ \ |
||
17 | ftp://ftp.netfilter.org/pub/libnetfilter_cthelper/ |
||
18 | PKG_HASH:=07618e71c4d9a6b6b3dc1986540486ee310a9838ba754926c7d14a17d8fccf3d |
||
19 | |||
20 | PKG_FIXUP:=autoreconf |
||
21 | PKG_LICENSE:=GPL-2.0+ |
||
22 | |||
23 | PKG_INSTALL:=1 |
||
24 | |||
25 | include $(INCLUDE_DIR)/package.mk |
||
26 | |||
27 | define Package/libnetfilter-cthelper |
||
28 | SECTION:=libs |
||
29 | CATEGORY:=Libraries |
||
30 | DEPENDS:=+libmnl |
||
31 | TITLE:=API to the in-kernel connection tracking helper infrastructure |
||
32 | URL:=http://www.netfilter.org/projects/libnetfilter_cthelper/ |
||
33 | ABI_VERSION:=0 |
||
34 | endef |
||
35 | |||
36 | define Package/libnetfilter-cthelper/description |
||
37 | libnetfilter_cthelper is a userspace library providing a programming |
||
38 | interface (API) to the in-kernel connection tracking helpers. |
||
39 | This library is currently used by conntrack-tools. |
||
40 | endef |
||
41 | |||
42 | TARGET_CFLAGS += $(FPIC) |
||
43 | |||
44 | CONFIGURE_ARGS += \ |
||
45 | --enable-static \ |
||
46 | --enable-shared \ |
||
47 | |||
48 | define Build/InstallDev |
||
49 | $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cthelper |
||
50 | $(CP) \ |
||
51 | $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cthelper/*.h \ |
||
52 | $(1)/usr/include/libnetfilter_cthelper/ |
||
53 | |||
54 | $(INSTALL_DIR) $(1)/usr/lib |
||
55 | $(CP) \ |
||
56 | $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.{so*,a,la} \ |
||
57 | $(1)/usr/lib/ |
||
58 | |||
59 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
||
60 | $(CP) \ |
||
61 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cthelper.pc \ |
||
62 | $(1)/usr/lib/pkgconfig/ |
||
63 | endef |
||
64 | |||
65 | define Package/libnetfilter-cthelper/install |
||
66 | $(INSTALL_DIR) $(1)/usr/lib |
||
67 | $(CP) \ |
||
68 | $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.so.* \ |
||
69 | $(1)/usr/lib/ |
||
70 | endef |
||
71 | |||
72 | $(eval $(call BuildPackage,libnetfilter-cthelper)) |