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.

67 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2009-2015 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_acct
  9. PKG_VERSION:=1.0.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://netfilter.org/projects/libnetfilter_acct/files
  13. PKG_HASH:=4250ceef3efe2034f4ac05906c3ee427db31b9b0a2df41b2744f4bf79a959a1a
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-acct
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=API to extended accounting infrastructure
  24. URL:=http://www.netfilter.org/projects/libnetfilter_acct/
  25. DEPENDS:=+libmnl
  26. endef
  27. define Package/libnetfilter-acct/description
  28. libnetfilter_acct is a userspace library providing a programming interface
  29. (API) to the extended accounting infrastructure.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-static \
  34. --enable-shared \
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_acct \
  39. $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct*.{so*,a,la} \
  43. $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_acct.pc \
  47. $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libnetfilter-acct/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_acct.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libnetfilter-acct))