1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Copyright (C) 2007-2011 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:=softflowd
  9. PKG_VERSION:=0.9.9
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://softflowd.googlecode.com/files/
  13. PKG_MD5SUM:=ba83e2715e6250e6645ebcaa9ae1009d
  14. PKG_MAINTAINER:=Ross Vandegrift <ross@kallisti.us>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/softflowd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libpcap
  22. TITLE:=softflowd
  23. URL:=http://code.google.com/p/softflowd/
  24. endef
  25. define Package/softflowd/description
  26. Software netflow exporter
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" softflowd softflowctl
  30. endef
  31. define Package/softflowd/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowd $(1)/usr/sbin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowctl $(1)/usr/sbin/
  35. $(INSTALL_DIR) $(1)/etc/config
  36. $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  39. endef
  40. define Package/softflowd/conffiles
  41. /etc/config/softflowd
  42. endef
  43. $(eval $(call BuildPackage,softflowd))