Changeset 4252


Ignore:
Timestamp:
2006-07-24T09:25:32+02:00 (10 years ago)
Author:
nico
Message:

port pciutils to buildroot-ng

Location:
packages/utils/pciutils
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/pciutils/Makefile

    r3365 r4252  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=2.2.1 
    713PKG_RELEASE:=1 
    8 PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086 
    914 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1017PKG_SOURCE_URL:=http://www.kernel.org/pub/software/utils/pciutils/ \ 
    1118        ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci 
    12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     19PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086 
    1320PKG_CAT:=zcat 
    1421 
    15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1622PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1723 
    18 include $(TOPDIR)/package/rules.mk 
     24include $(INCLUDE_DIR)/package.mk 
    1925 
    20 $(eval $(call PKG_template,PCIUTILS,pciutils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     26define Package/pciutils 
     27  SECTION:=utils 
     28  CATEGORY:=Utilities 
     29  TITLE:=Linux PCI Utilities 
     30  DESCRIPTION:=Linux PCI Utilities.\\\ 
     31    This package contains various utilities for inspecting and setting of \\\ 
     32    devices connected to the PCI bus. 
     33  URL:=http://www.kernel.org/pub/software/utils/pciutils/ 
     34endef 
    2135 
    22 $(PKG_BUILD_DIR)/.configured: 
    23         touch $@ 
     36define Build/Configure 
     37endef 
    2438 
    25 $(PKG_BUILD_DIR)/.built: 
     39define Build/Compile 
    2640        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    2741                CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME) 
    28         touch $@ 
     42endef 
    2943 
    30 $(IPKG_PCIUTILS): 
    31         install -d -m0755 $(IDIR_PCIUTILS)/usr/sbin 
    32         install -d -m0755 $(IDIR_PCIUTILS)/usr/share 
    33         $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/ 
    34         $(CP) $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/ 
    35         $(RSTRIP) $(IDIR_PCIUTILS)/ 
    36         $(IPKG_BUILD) $(IDIR_PCIUTILS) $(PACKAGE_DIR) 
     44define Package/pciutils/install 
     45        install -d -m0755 $(1)/usr/sbin 
     46        $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(1)/usr/sbin/ 
     47        install -d -m0755 $(1)/usr/share 
     48        $(CP) $(PKG_BUILD_DIR)/pci.ids $(1)/usr/share/ 
     49endef 
     50 
     51$(eval $(call BuildPackage,pciutils)) 
Note: See TracChangeset for help on using the changeset viewer.