Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7.  
  8. include $(TOPDIR)/rules.mk
  9.  
  10. PKG_NAME:=pmacct
  11. PKG_VERSION:=1.6.2
  12. PKG_RELEASE:=1
  13.  
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://www.pmacct.net/
  16. PKG_HASH:=e6ede7f500fb1771b5cdfb63dfa016e34c19b8aa2d2f672bd4c63016a5d6bbe2
  17. PKG_MAINTAINER:=Damiano Verzulli <damiano@verzulli.it>
  18. PKG_LICENSE:=GPL-2.0
  19.  
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  21.  
  22. PKG_FIXUP:=autoreconf
  23.  
  24. PKG_INSTALL:=1
  25.  
  26. include $(INCLUDE_DIR)/package.mk
  27.  
  28. CONFIGURE_ARGS += \
  29. --with-pcap-includes="$(STAGING_DIR)/usr/include" \
  30. --with-pcap-libs="$(STAGING_DIR)/usr/lib" \
  31. --enable-bgp-bins=no \
  32. --enable-bmp-bins=no \
  33. --enable-st-bins=no
  34.  
  35. TARGET_CFLAGS += -ffunction-sections -fdata-sections
  36. TARGET_LDFLAGS += -Wl,--gc-sections
  37.  
  38. CONFIGURE_VARS += \
  39. BUILD_CC="$(TARGET_CC)" \
  40. HOSTCC="$(HOSTCC)" \
  41. td_cv_buggygetaddrinfo="no" \
  42. ac_cv_linux_vers=$(LINUX_VERSION) \
  43. ac_cv_header_rpc_rpcent_h=no \
  44. ac_cv_lib_rpc_main=no \
  45. ac_cv_path_PCAP_CONFIG=""
  46.  
  47. MAKE_FLAGS := CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
  48.  
  49.  
  50. define Package/pmacct
  51. SECTION:=net
  52. CATEGORY:=Network
  53. DEPENDS:=+libpcap +libpthread
  54. TITLE:=a powerful IP accounting set of tools
  55. URL:=http://www.pmacct.net/
  56. endef
  57.  
  58. define Package/pmacct/install
  59. $(INSTALL_DIR) $(1)/usr/sbin
  60. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacct $(1)/usr/sbin/
  61. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacctd $(1)/usr/sbin/
  62. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sfacctd $(1)/usr/sbin/
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nfacctd $(1)/usr/sbin/
  64. endef
  65.  
  66. $(eval $(call BuildPackage,pmacct))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement