source: branches/packages_10.03.2/net/softflowd/Makefile @ 30260

Last change on this file since 30260 was 30260, checked in by jow, 4 years ago

[packages_10.03.2] softflowd: merge r29100, r29199

File size: 1.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=softflowd
11PKG_VERSION:=0.9.8
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.mindrot.org/files/softflowd/
16PKG_MD5SUM:=0054d1c80494396cc15edb0a1c7748b1
17
18PKG_FIXUP = libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/softflowd
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+libpcap
26  TITLE:=softflowd
27  URL:=http://www.mindrot.org/projects/softflowd/
28endef
29
30define Package/softflowd/description
31        Software netflow exporter
32endef
33
34define Build/Compile
35        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" softflowd softflowctl
36endef
37
38define Package/softflowd/install
39        $(INSTALL_DIR) $(1)/usr/sbin
40        $(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowd $(1)/usr/sbin/
41        $(INSTALL_BIN) $(PKG_BUILD_DIR)/softflowctl $(1)/usr/sbin/
42        $(INSTALL_DIR) $(1)/etc/config
43        $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
44        $(INSTALL_DIR) $(1)/etc/init.d
45        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46endef
47
48define Package/softflowd/conffiles
49/etc/config/softflowd
50endef
51
52$(eval $(call BuildPackage,softflowd))
Note: See TracBrowser for help on using the repository browser.