X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fmdadm;h=3e8444cbf5558b89f5bf202569c410f3d1bb60b4;hp=5c4024700fccf823db6e3c8465982b43f06139c6;hb=15b1a3e360a277dc7481103f8ddcbf189033e3a6;hpb=4bdb372a5c31f8ed5b124176f9102ef69f33780f diff --git a/lfs/mdadm b/lfs/mdadm index 5c4024700f..3e8444cbf5 100644 --- a/lfs/mdadm +++ b/lfs/mdadm @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # +# Copyright (C) 2007-2018 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,17 +24,13 @@ include Config -VER = 3.2.1 +VER = 4.0 THISAPP = mdadm-$(VER) -DL_FILE = $(THISAPP).tar.bz2 +DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) -PROG = mdadm -PAK_VER = 2 - -DEPS = "" ############################################################################### # Top-level Rules @@ -44,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = d1e2549202bd79d9e99f1498d1109530 +$(DL_FILE)_MD5 = 2cb4feffea9167ba71b5f346a0c0a40d install : $(TARGET) @@ -76,11 +72,9 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) - @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mdadm/gcc-7.patch cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install - ln -sf ../init.d/mdadm /etc/rc.d/rcsysinit.d/S11mdadm - ln -sf ../init.d/mdadm /etc/rc.d/rc0.d/S85mdadm - ln -sf ../init.d/mdadm /etc/rc.d/rc6.d/S75mdadm @rm -rf $(DIR_APP) @$(POSTBUILD)