2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://softflowd.googlecode.com
/files
/
16 PKG_HASH
:=2313f2c50ea9b3f2db3524e38ec7cd71f9a6e885ac2e3b55ab037bccf8173612
17 PKG_MAINTAINER
:=Ross Vandegrift
<ross@kallisti.us
>
18 PKG_LICENSE
:=BSD-3-Clause
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/softflowd
29 URL
:=http
://code.google.com
/p
/softflowd
/
32 define Package
/softflowd
/description
33 Software netflow exporter
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" softflowd softflowctl
40 define Package
/softflowd
/install
41 $(INSTALL_DIR
) $(1)/usr
/sbin
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/softflowd
$(1)/usr
/sbin
/
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/softflowctl
$(1)/usr
/sbin
/
44 $(INSTALL_DIR
) $(1)/etc
/config
45 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).config
$(1)/etc
/config
/$(PKG_NAME
)
46 $(INSTALL_DIR
) $(1)/etc
/init.d
47 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
50 define Package
/softflowd
/conffiles
54 $(eval
$(call BuildPackage
,softflowd
))