source: packages/utils/pciutils/Makefile @ 19252

Last change on this file since 19252 was 19252, checked in by swalker, 6 years ago

[packages] pciutils: update to 3.1.5, remove the gzip-only mirror, switch to using the compressed ID file

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pciutils
11PKG_VERSION:=3.1.5
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
16PKG_MD5SUM:=7ccf8ae2353033158652bdca4e4aad0a
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/pciutils
23  SECTION:=utils
24  CATEGORY:=Utilities
25  TITLE:=Linux PCI Utilities
26  URL:=http://mj.ucw.cz/pciutils.shtml
27  DEPENDS:=+zlib
28endef
29
30define Package/pciutils/description
31        This package contains various utilities for inspecting and setting of
32        devices connected to the PCI bus.
33endef
34
35define Package/pciutils/postinst
36#!/bin/sh
37$${IPKG_INSTROOT}/usr/sbin/update-pciids
38endef
39
40MAKE_FLAGS += \
41        CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
42        PREFIX="/usr" \
43        HOST="$(GNU_TARGET_NAME)" \
44        ZLIB="yes" \
45
46define Build/InstallDev
47        $(INSTALL_DIR) $(1)/usr/lib
48        $(CP) $(PKG_BUILD_DIR)/lib/libpci.a $(1)/usr/lib
49        $(INSTALL_DIR) $(1)/usr/include/pci
50        $(CP) $(foreach i,pci.h config.h header.h types.h, \
51                $(PKG_BUILD_DIR)/lib/$(i)) $(1)/usr/include/pci
52endef
53
54define Package/pciutils/install
55        $(INSTALL_DIR) $(1)/usr/sbin
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{lspci,setpci,update-pciids} $(1)/usr/sbin/
57        $(INSTALL_DIR) $(1)/usr/share
58        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pci.ids.gz $(1)/usr/share/
59endef
60
61$(eval $(call BuildPackage,pciutils))
Note: See TracBrowser for help on using the repository browser.