Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetfilter_log
  9. PKG_VERSION:=1.0.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_log/files/ \
  14. PKG_HASH:=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
  15. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-log
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libnfnetlink +kmod-nfnetlink-log +libmnl
  24. TITLE:=API to receive to-be-logged packets from the kernel nfnetlink_log subsystem
  25. URL:=http://www.netfilter.org/projects/libnetfilter_log/
  26. endef
  27. define Package/libnetfilter-log/description
  28. libnetfilter_log is a userspace library providing interface to packets that
  29. have been logged by the kernel packet filter. It is is part of a system that
  30. deprecates the old syslog/dmesg based packet logging. This library has been
  31. previously known as libnfnetlink_log.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --enable-static \
  36. --enable-shared \
  37. --without-ipulog \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
  42. $(1)/usr/include/libnetfilter_log/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libnetfilter-log/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
  56. $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libnetfilter-log))