replace 'mkdir -p' by 'install -d -m0755'
[openwrt.git] / openwrt / package / pciutils / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=pciutils
6 PKG_VERSION:=2.2.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086
9
10 PKG_SOURCE_URL:=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,PCIUTILS,pciutils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME)
27 touch $@
28
29 $(IPKG_PCIUTILS):
30 install -d -m0755 $(IDIR_PCIUTILS)/usr/sbin
31 install -d -m0755 $(IDIR_PCIUTILS)/usr/share
32 $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/
33 $(CP) $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/
34 $(RSTRIP) $(IDIR_PCIUTILS)/
35 $(IPKG_BUILD) $(IDIR_PCIUTILS) $(PACKAGE_DIR)
This page took 0.051066 seconds and 5 git commands to generate.