b847fd672c46facf46a567827e2c09ec12625caa
[openwrt/svn-archive/archive.git] / net / aoetools / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aoetools
12 PKG_VERSION:=16
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/aoetools
17 PKG_MD5SUM:=15742876cb21c2b1196cd6772f401e81
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/aoetools
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=ATA over Ethernet tools
27 URL:=http://aoetools.sourceforge.net/
28 endef
29
30 define Package/aoetools/description
31 The aoetools are programs for users of the ATA over Ethernet \ (AoE) network storage protocol, a simple protocol for using \ storage over an ethernet LAN. The vblade program (storage \ target) exports a block device using AoE.
32 endef
33
34 CONFIGURE_ARGS += NPERSHELF=16
35
36 define Package/$(PKG_NAME)/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-discover $(1)/usr/bin/
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-flush $(1)/usr/bin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-mkdevs $(1)/usr/bin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-mkshelf $(1)/usr/bin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-revalidate $(1)/usr/bin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoe-stat $(1)/usr/bin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aoeping $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,$(PKG_NAME)))