add chaos_calmer branch
[15.05/openwrt.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 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 endef
35
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.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 CONFIGURE_ARGS += \
46         --enable-static \
47         --enable-shared \
48         --without-ipulog \
49
50 define Build/InstallDev
51         $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
52         $(CP) \
53                 $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
54                 $(1)/usr/include/libnetfilter_log/
55
56         $(INSTALL_DIR) $(1)/usr/lib
57         $(CP) \
58                 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
59                 $(1)/usr/lib/
60
61         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62         $(CP) \
63                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
64                 $(1)/usr/lib/pkgconfig/
65 endef
66
67 define Package/libnetfilter-log/install
68         $(INSTALL_DIR) $(1)/usr/lib
69         $(CP) \
70                 $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
71                 $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libnetfilter-log))