olli ed38f6e795 [Packages] Add softflowd package (#2748)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-24 21:10:15 +00:00

54 lines
1.3 KiB
Makefile

#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=softflowd
PKG_VERSION:=0.9.8
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.mindrot.org/files/softflowd/
PKG_MD5SUM:=0054d1c80494396cc15edb0a1c7748b1
include $(INCLUDE_DIR)/package.mk
define Package/softflowd
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap
TITLE:=softflowd
URL:=http://www.mindrot.org/projects/softflowd/
endef
define Package/softflowd/description
Software netflow exporter
endef
define Build/Configure
$(call Build/Configure/Default)
$(call libtool_disable_rpath)
endef
define Build/Compile
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" softflowd softflowctl
endef
define Package/softflowd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowd $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowctl $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
endef
$(eval $(call BuildPackage,softflowd))