]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
i2c-tools: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Feb 2018 20:01:55 +0000 (20:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Feb 2018 20:01:55 +0000 (20:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/i2c-tools [new file with mode: 0644]
config/rootfiles/core/119/filelists/i2c-tools [new symlink]
lfs/i2c-tools [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/i2c-tools b/config/rootfiles/common/i2c-tools
new file mode 100644 (file)
index 0000000..fb5ee83
--- /dev/null
@@ -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 (symlink)
index 0000000..c5f5af9
--- /dev/null
@@ -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 (file)
index 0000000..ef60ebd
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 3fcac2880061666f919001a01355235d6234fa07..b85910ad458f06b01510238fa4bbf8f65a28b7ef 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1512,6 +1512,7 @@ buildipfire() {
   lfsmake2 wio
   lfsmake2 iftop
   lfsmake2 mdns-repeater
+  lfsmake2 i2c-tools
 }
 
 buildinstaller() {