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_HASH
:=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
19 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libnetfilter-log
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
/
36 define Package
/libnetfilter-log
/description
37 libnetfilter_log is a userspace library providing interface to packets that
38 have been logged by the kernel packet
filter. It is is part of a system that
39 deprecates the old syslog
/dmesg based packet logging. This library has been
40 previously known
as libnfnetlink_log.
43 TARGET_CFLAGS
+= $(FPIC
)
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include/libnetfilter_log
53 $(PKG_INSTALL_DIR
)/usr
/include/libnetfilter_log
/*.h \
54 $(1)/usr
/include/libnetfilter_log
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(PKG_INSTALL_DIR
)/usr
/lib
/libnetfilter_log.
{so
*,a
,la
} \
61 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
63 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnetfilter_log.
pc \
64 $(1)/usr
/lib
/pkgconfig
/
67 define Package
/libnetfilter-log
/install
68 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(PKG_INSTALL_DIR
)/usr
/lib
/libnetfilter_log.so.
* \
74 $(eval
$(call BuildPackage
,libnetfilter-log
))