From 9f19223e4e4db2b120014d562367ce697011d3f8 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 6 Apr 2016 19:44:34 +0200 Subject: [PATCH] mcelog: new package Signed-off-by: Arne Fitzenreiter --- config/rootfiles/packages/mcelog | 13 +++++ lfs/mcelog | 86 ++++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 100 insertions(+) create mode 100644 config/rootfiles/packages/mcelog create mode 100644 lfs/mcelog diff --git a/config/rootfiles/packages/mcelog b/config/rootfiles/packages/mcelog new file mode 100644 index 000000000..04f439ef4 --- /dev/null +++ b/config/rootfiles/packages/mcelog @@ -0,0 +1,13 @@ +#etc/mcelog +etc/mcelog/bus-error-trigger +etc/mcelog/cache-error-trigger +etc/mcelog/dimm-error-trigger +etc/mcelog/iomca-error-trigger +etc/mcelog/mcelog.conf +etc/mcelog/page-error-trigger +etc/mcelog/socket-memory-error-trigger +etc/mcelog/unknown-error-trigger +usr/sbin/mcelog +#usr/share/man/man5/mcelog.conf.5 +#usr/share/man/man5/mcelog.triggers.5 +#usr/share/man/man8/mcelog.8 diff --git a/lfs/mcelog b/lfs/mcelog new file mode 100644 index 000000000..6821c738f --- /dev/null +++ b/lfs/mcelog @@ -0,0 +1,86 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2016 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 135 + +THISAPP = mcelog-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = mcelog +PAK_VER = 1 +SUP_ARCH = i586 x86_64 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 7819c74796c1e52e3e56fc065b9fe26a + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index fc7843e89..d954b62d5 100755 --- a/make.sh +++ b/make.sh @@ -859,6 +859,7 @@ buildipfire() { ipfiremake dnsdist ipfiremake bird ipfiremake dmidecode + ipfiremake mcelog } buildinstaller() { -- 2.39.5