Makefile 1.9 KB

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