From 429af17883be439db0b67d05b43ad66c9c000382 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 16 Feb 2018 20:01:55 +0000 Subject: [PATCH] i2c-tools: New package Signed-off-by: Michael Tremer --- config/rootfiles/common/i2c-tools | 16 ++++ config/rootfiles/core/119/filelists/i2c-tools | 1 + lfs/i2c-tools | 79 +++++++++++++++++++ make.sh | 1 + 4 files changed, 97 insertions(+) create mode 100644 config/rootfiles/common/i2c-tools create mode 120000 config/rootfiles/core/119/filelists/i2c-tools create mode 100644 lfs/i2c-tools diff --git a/config/rootfiles/common/i2c-tools b/config/rootfiles/common/i2c-tools new file mode 100644 index 0000000000..fb5ee83269 --- /dev/null +++ b/config/rootfiles/common/i2c-tools @@ -0,0 +1,16 @@ +usr/bin/ddcmon +usr/bin/decode-dimms +usr/bin/decode-edid +usr/bin/decode-vaio +usr/sbin/i2c-stub-from-dump +usr/sbin/i2cdetect +usr/sbin/i2cdump +usr/sbin/i2cget +usr/sbin/i2cset +#usr/share/man/man1/decode-dimms.1 +#usr/share/man/man1/decode-vaio.1 +#usr/share/man/man8/i2c-stub-from-dump.8 +#usr/share/man/man8/i2cdetect.8 +#usr/share/man/man8/i2cdump.8 +#usr/share/man/man8/i2cget.8 +#usr/share/man/man8/i2cset.8 diff --git a/config/rootfiles/core/119/filelists/i2c-tools b/config/rootfiles/core/119/filelists/i2c-tools new file mode 120000 index 0000000000..c5f5af9e41 --- /dev/null +++ b/config/rootfiles/core/119/filelists/i2c-tools @@ -0,0 +1 @@ +../../../common/i2c-tools \ No newline at end of file diff --git a/lfs/i2c-tools b/lfs/i2c-tools new file mode 100644 index 0000000000..ef60ebd46b --- /dev/null +++ b/lfs/i2c-tools @@ -0,0 +1,79 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 = 3.1.2 + +THISAPP = i2c-tools-$(VER) +DL_FILE = $(THISAPP).tar.xz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 7fad5c6f6eb8aa35cf588a2fda5bcede + +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 axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install prefix=/usr + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 3fcac28800..b85910ad45 100755 --- a/make.sh +++ b/make.sh @@ -1512,6 +1512,7 @@ buildipfire() { lfsmake2 wio lfsmake2 iftop lfsmake2 mdns-repeater + lfsmake2 i2c-tools } buildinstaller() { -- 2.39.2