lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1346B)


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