2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libnetfilter_log
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 http
://www.netfilter.org
/projects
/libnetfilter_log
/files
/ \
17 ftp
://ftp.netfilter.org
/pub
/libnetfilter_log
/
18 PKG_MD5SUM
:=2a4bb0654ae675a52d2e8d1c06090b94
19 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libnetfilter-log
30 DEPENDS
:=+libnfnetlink
+kmod-nfnetlink-log
+libmnl
31 TITLE
:=API to receive to-be-logged packets from the kernel nfnetlink_log subsystem
32 URL
:=http
://www.netfilter.org
/projects
/libnetfilter_log
/
35 define Package
/libnetfilter-log
/description
36 libnetfilter_log is a userspace library providing interface to packets that
37 have been logged by the kernel packet
filter. It is is part of a system that
38 deprecates the old syslog
/dmesg based packet logging. This library has been
39 previously known
as libnfnetlink_log.
42 TARGET_CFLAGS
+= $(FPIC
)
49 define Build
/InstallDev
50 $(INSTALL_DIR
) $(1)/usr
/include/libnetfilter_log
52 $(PKG_INSTALL_DIR
)/usr
/include/libnetfilter_log
/*.h \
53 $(1)/usr
/include/libnetfilter_log
/
55 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(PKG_INSTALL_DIR
)/usr
/lib
/libnetfilter_log.
{so
*,a
,la
} \
60 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
62 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnetfilter_log.
pc \
63 $(1)/usr
/lib
/pkgconfig
/
66 define Package
/libnetfilter-log
/install
67 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(PKG_INSTALL_DIR
)/usr
/lib
/libnetfilter_log.so.
* \
73 $(eval
$(call BuildPackage
,libnetfilter-log
))