|
@@ -0,0 +1,75 @@
|
|
1
|
+#
|
|
2
|
+# Copyright (C) 2009-2014 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_log
|
|
11
|
+PKG_VERSION:=1.0.1
|
|
12
|
+PKG_RELEASE:=1
|
|
13
|
+
|
|
14
|
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
15
|
+PKG_SOURCE_URL:= \
|
|
16
|
+ http://www.netfilter.org/projects/libnetfilter_log/files/ \
|
|
17
|
+ ftp://ftp.netfilter.org/pub/libnetfilter_log/ \
|
|
18
|
+ http://mirrors.evolva.ro/netfilter.org/libnetfilter_log/
|
|
19
|
+PKG_MD5SUM:=2a4bb0654ae675a52d2e8d1c06090b94
|
|
20
|
+
|
|
21
|
+PKG_LICENSE:=GPL-2.0
|
|
22
|
+PKG_LICENSE_FILE:=COPYING
|
|
23
|
+PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
|
|
24
|
+
|
|
25
|
+PKG_FIXUP:=autoreconf
|
|
26
|
+PKG_INSTALL:=1
|
|
27
|
+
|
|
28
|
+include $(INCLUDE_DIR)/package.mk
|
|
29
|
+
|
|
30
|
+define Package/libnetfilter-log
|
|
31
|
+ SECTION:=libs
|
|
32
|
+ CATEGORY:=Libraries
|
|
33
|
+ DEPENDS:=+libnfnetlink +kmod-nfnetlink-log
|
|
34
|
+ TITLE:=API to packets logged by the kernel packet filter
|
|
35
|
+ URL:=http://www.netfilter.org/projects/libnetfilter_log/
|
|
36
|
+endef
|
|
37
|
+
|
|
38
|
+define Package/libnetfilter-log/description
|
|
39
|
+ libnetfilter_log is a userspace library providing interface to
|
|
40
|
+ packets that have been logged by the kernel packet filter.
|
|
41
|
+endef
|
|
42
|
+
|
|
43
|
+TARGET_CFLAGS += $(FPIC)
|
|
44
|
+
|
|
45
|
+CONFIGURE_ARGS += \
|
|
46
|
+ --enable-static \
|
|
47
|
+ --enable-shared \
|
|
48
|
+
|
|
49
|
+CONFIGURE_VARS += \
|
|
50
|
+ LIBNFNETLINK_CFLAGS="$(TARGET_CPPFLAGS)" \
|
|
51
|
+ LIBNFNETLINK_LIBS="$(TARGET_LDFLAGS)"
|
|
52
|
+
|
|
53
|
+define Build/InstallDev
|
|
54
|
+ $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
|
|
55
|
+ $(INSTALL_DATA) \
|
|
56
|
+ $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
|
|
57
|
+ $(1)/usr/include/libnetfilter_log/
|
|
58
|
+
|
|
59
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
60
|
+ $(CP) \
|
|
61
|
+ $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.{so*,a,la} \
|
|
62
|
+ $(1)/usr/lib/
|
|
63
|
+
|
|
64
|
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
65
|
+ $(INSTALL_DATA) \
|
|
66
|
+ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
|
|
67
|
+ $(1)/usr/lib/pkgconfig/
|
|
68
|
+endef
|
|
69
|
+
|
|
70
|
+define Package/libnetfilter-log/install
|
|
71
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
72
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.so.* $(1)/usr/lib/
|
|
73
|
+endef
|
|
74
|
+
|
|
75
|
+$(eval $(call BuildPackage,libnetfilter-log))
|