2008-11-21 19:19:51 +00:00
|
|
|
#
|
2011-04-25 20:37:11 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2008-11-21 19:19:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mdadm
|
2011-04-25 20:37:11 +00:00
|
|
|
PKG_VERSION:=3.2
|
2008-11-21 19:19:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
|
2008-11-21 19:19:51 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-04-25 20:37:11 +00:00
|
|
|
PKG_MD5SUM:=4ac70ccead74f947bf5aa4d189a977a0
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2008-11-21 19:19:51 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mdadm
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=A tool for managing Soft RAID under Linux
|
|
|
|
URL:=http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4
|
2011-04-25 20:37:11 +00:00
|
|
|
MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
|
|
|
|
endef
|
|
|
|
|
2011-04-25 21:24:40 +00:00
|
|
|
define Package/mdadm/description
|
2011-04-25 20:37:11 +00:00
|
|
|
A tool for managing Linux Software RAID arrays.
|
2008-11-21 19:19:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DUCLIBC -DHAVE_STDINT_H" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
mdadm mdassemble
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mdadm/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mdadm $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mdassemble $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mdadm))
|