OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #
2 # Copyright (C) 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:=2
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 PKG_HASH:=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
19 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
20  
21 PKG_FIXUP:=autoreconf
22 PKG_LICENSE:=GPL-2.0+
23  
24 PKG_INSTALL:=1
25  
26 include $(INCLUDE_DIR)/package.mk
27  
28 define Package/libnetfilter-log
29 SECTION:=libs
30 CATEGORY:=Libraries
31 DEPENDS:=+libnfnetlink +kmod-nfnetlink-log +libmnl
32 TITLE:=API to receive to-be-logged packets from the kernel nfnetlink_log subsystem
33 URL:=http://www.netfilter.org/projects/libnetfilter_log/
34 ABI_VERSION:=1
35 endef
36  
37 define Package/libnetfilter-log/description
38 libnetfilter_log is a userspace library providing interface to packets that
39 have been logged by the kernel packet filter. It is is part of a system that
40 deprecates the old syslog/dmesg based packet logging. This library has been
41 previously known as libnfnetlink_log.
42 endef
43  
44 TARGET_CFLAGS += $(FPIC)
45  
46 CONFIGURE_ARGS += \
47 --enable-static \
48 --enable-shared \
49 --without-ipulog \
50  
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
55 $(1)/usr/include/libnetfilter_log/
56  
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
60 $(1)/usr/lib/
61  
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
65 $(1)/usr/lib/pkgconfig/
66 endef
67  
68 define Package/libnetfilter-log/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
72 $(1)/usr/lib/
73 endef
74  
75 $(eval $(call BuildPackage,libnetfilter-log))