You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2009-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. http://mirrors.evolva.ro/netfilter.org/libnetfilter_log/
  16. PKG_MD5SUM:=2a4bb0654ae675a52d2e8d1c06090b94
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILE:=COPYING
  19. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libnetfilter-log
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+libnfnetlink +kmod-nfnetlink-log
  27. TITLE:=API to packets logged by the kernel packet filter
  28. URL:=http://www.netfilter.org/projects/libnetfilter_log/
  29. endef
  30. define Package/libnetfilter-log/description
  31. libnetfilter_log is a userspace library providing interface to
  32. packets that have been logged by the kernel packet filter.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += \
  36. --enable-static \
  37. --enable-shared \
  38. CONFIGURE_VARS += \
  39. LIBNFNETLINK_CFLAGS="$(TARGET_CPPFLAGS)" \
  40. LIBNFNETLINK_LIBS="$(TARGET_LDFLAGS)"
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
  43. $(INSTALL_DATA) \
  44. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
  45. $(1)/usr/include/libnetfilter_log/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.{so*,a,la} \
  49. $(1)/usr/lib/
  50. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  51. $(INSTALL_DATA) \
  52. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
  53. $(1)/usr/lib/pkgconfig/
  54. endef
  55. define Package/libnetfilter-log/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log*.so.* $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,libnetfilter-log))