1
0

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:=2
  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_HASH:=74e0fe75753dba3ac114531b5e73240452c789a3f3adccf5c51217da1d933b21
  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. ABI_VERSION:=1
  28. endef
  29. define Package/libnetfilter-log/description
  30. libnetfilter_log is a userspace library providing interface to packets that
  31. have been logged by the kernel packet filter. It is is part of a system that
  32. deprecates the old syslog/dmesg based packet logging. This library has been
  33. previously known as libnfnetlink_log.
  34. endef
  35. TARGET_CFLAGS += $(FPIC)
  36. CONFIGURE_ARGS += \
  37. --enable-static \
  38. --enable-shared \
  39. --without-ipulog \
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
  44. $(1)/usr/include/libnetfilter_log/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libnetfilter-log/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libnetfilter-log))