684f38da454ab155b5ef9867f5b5cc067dc67a0a
[openwrt/svn-archive/archive.git] / utils / mdadm / Makefile
1 #
2 # Copyright (C) 2008-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:=mdadm
11 PKG_VERSION:=3.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=4ac70ccead74f947bf5aa4d189a977a0
17
18 PKG_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mdadm
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=A tool for managing Soft RAID under Linux
26 URL:=http://www.kernel.org/pub/linux/utils/raid/mdadm/
27 DEPENDS:=@!LINUX_2_4
28 MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
29 endef
30
31 define Package/at/description
32 A tool for managing Linux Software RAID arrays.
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS) -DUCLIBC -DHAVE_STDINT_H" \
39 LDFLAGS="$(TARGET_LDFLAGS)" \
40 mdadm mdassemble
41 endef
42
43 define Package/mdadm/install
44 $(INSTALL_DIR) $(1)/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdadm $(1)/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdassemble $(1)/sbin
47 endef
48
49 $(eval $(call BuildPackage,mdadm))