diff options
author | Remy Bohmer <linux@bohmer.net> | 2010-06-03 23:56:08 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 13:54:21 +0200 |
commit | 2b08f4df781a6fd18ff3759b8752cd3da802c222 (patch) | |
tree | fe1999e1b364d6ccd959caa89cd6cb8c42f0c86d /rules/lshw.make | |
parent | 0847e8b70f2de0dc71211e4f2f134a26934772aa (diff) | |
download | ptxdist-2b08f4df781a6fd18ff3759b8752cd3da802c222.tar.gz ptxdist-2b08f4df781a6fd18ff3759b8752cd3da802c222.tar.xz |
[lshw] add new packet
Adds the Hardware Lister package to ptxdist
A patch is added for the package to make the xml output
compatibility with a xml-parser using tinyxpath.
Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/lshw.make')
-rw-r--r-- | rules/lshw.make | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/lshw.make b/rules/lshw.make new file mode 100644 index 000000000..388f21307 --- /dev/null +++ b/rules/lshw.make @@ -0,0 +1,85 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeulen@gmail.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LSHW) += lshw + +# +# Paths and names +# +LSHW_VERSION := B.02.14 +LSHW := lshw-$(LSHW_VERSION) +LSHW_SUFFIX := tar.gz +LSHW_URL := http://www.ezix.org/software/files/$(LSHW).$(LSHW_SUFFIX) +LSHW_SOURCE := $(SRCDIR)/$(LSHW).$(LSHW_SUFFIX) +LSHW_DIR := $(BUILDDIR)/$(LSHW) +LSHW_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(LSHW_SOURCE): + @$(call targetinfo) + @$(call get, LSHW) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LSHW_CONF_TOOL := NO +LSHW_MAKE_OPT := $(CROSS_ENV) all +LSHW_INSTALL_OPT := $(CROSS_ENV) install +ifdef PTXCONF_LSHW_GUI +LSHW_MAKE_OPT += gui +LSHW_INSTALL_OPT += install-gui +endif + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/lshw.targetinstall: + @$(call targetinfo) + + @$(call install_init, lshw) + @$(call install_fixup, lshw,PACKAGE,lshw) + @$(call install_fixup, lshw,PRIORITY,optional) + @$(call install_fixup, lshw,VERSION,$(LSHW_VERSION)) + @$(call install_fixup, lshw,SECTION,base) + @$(call install_fixup, lshw,AUTHOR,"Bart vdr. Meulen <bartvdrmeulen@gmail.com>") + @$(call install_fixup, lshw,DEPENDS,) + @$(call install_fixup, lshw,DESCRIPTION,missing) + + @$(call install_copy, lshw, 0, 0, 0755, -, /usr/sbin/lshw) + + @$(call install_copy, lshw, 0, 0, 0755, /usr/share/lshw) + @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/pci.ids) + @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/usb.ids) + @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/oui.txt) + @$(call install_copy, lshw, 0, 0, 0644, -, /usr/share/lshw/manuf.txt) + +ifdef PTXCONF_LSHW_GUI + @$(call install_copy, lshw, 0, 0, 0755, -, /usr/sbin/gtk-lshw) + + @$(call install_copy, lshw, 0, 0, 0755, /usr/share/lshw/artwork) + @cd $(LSHW_PKGDIR)/usr/share/lshw/artwork; \ + for file in * ; do \ + $(call install_copy, lshw, 0, 0, 0644, -, \ + /usr/share/lshw/artwork/$$file); \ + done +endif + + @$(call install_finish, lshw) + @$(call touch) + +# vim: syntax=make |