e65ee296990e4f75314dd79d111baec7b3b99745
[openwrt/staging/wigyori.git] / package / libs / libnetfilter-log / Makefile
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:=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 PKG_MD5SUM:=2a4bb0654ae675a52d2e8d1c06090b94
19 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
20
21 PKG_FIXUP:=autoreconf
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libnetfilter-log
28 SECTION:=libs
29 CATEGORY:=Libraries
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/
33 endef
34
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.
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43
44 CONFIGURE_ARGS += \
45 --enable-static \
46 --enable-shared \
47 --without-ipulog \
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
53 $(1)/usr/include/libnetfilter_log/
54
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
58 $(1)/usr/lib/
59
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
63 $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libnetfilter-log/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
70 $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libnetfilter-log))