source: packages/utils/mdadm/Makefile @ 26757

Last change on this file since 26757 was 26757, checked in by jow, 5 years ago

[packages] mdadm: fix typo in r26755

File size: 1.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mdadm
11PKG_VERSION:=3.2
12PKG_RELEASE:=1
13
14PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_MD5SUM:=4ac70ccead74f947bf5aa4d189a977a0
17
18PKG_BUILD_PARALLEL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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>
29endef
30
31define Package/mdadm/description
32 A tool for managing Linux Software RAID arrays.
33endef
34
35define 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
41endef
42
43define 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
47endef
48
49$(eval $(call BuildPackage,mdadm))
Note: See TracBrowser for help on using the repository browser.