nfs-kernel-server: moved to github
[packages.git] / net / aoetools / Makefile
1 #
2 # Copyright (C) 2007-2014 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:=aoetools
11 PKG_VERSION:=32
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/aoetools
16 PKG_MD5SUM:=62c8b5664d413019d0008f27ab5dc4d1
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/aoetools
23   SECTION:=net
24   CATEGORY:=Network
25   TITLE:=ATA over Ethernet tools
26   URL:=http://aoetools.sourceforge.net/
27   DEPENDS:=+kmod-aoe +libpthread
28 endef
29
30 define Package/aoetools/description
31         The aoetools are programs for users of the ATA over Ethernet (AoE)
32         network storage protocol, a simple protocol for using storage over an
33         ethernet LAN. The vblade program (storage target) exports a block
34         device using AoE.
35 endef
36
37 MAKE_FLAGS += \
38         CFLAGS="$(TARGET_CFLAGS)"
39
40 define Package/$(PKG_NAME)/install
41         $(INSTALL_DIR) $(1)/usr/sbin
42         $(INSTALL_BIN) \
43                 $(PKG_INSTALL_DIR)/usr/sbin/aoe-{discover,flush,interfaces,mkdevs,mkshelf,revalidate,sancheck,stat,version} \
44                 $(1)/usr/sbin/
45         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/aoe{cfg,ping} $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,$(PKG_NAME)))