]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pkgs/pciutils/pciutils.nm
5617812a27e07ef682605b6b7eedce5e8b916df0
[people/arne_f/ipfire-3.x.git] / pkgs / pciutils / pciutils.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = pciutils
28 PKG_VER = 3.1.7
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = System/Base
33 PKG_GROUPS-pciutils = Base $(PKG_GROUPS)
34 PKG_URL = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
35 PKG_LICENSE = GPLv2+
36 PKG_SUMMARY = PCI bus related utilities.
37
38 define PKG_DESCRIPTION
39 The pciutils package contains various utilities for inspecting \
40 and setting devices connected to the PCI bus.
41 endef
42
43 PKG_TARBALL = $(THISAPP).tar.bz2
44
45 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
46
47 define STAGE_BUILD
48 cd $(DIR_APP) && make SHARED=yes OPT="$(CFLAGS)" PREFIX=/usr \
49 IDSDIR=/usr/share/hwdata ZLIB=no $(PARALLELISMFLAGS)
50 endef
51
52 define STAGE_INSTALL
53 cd $(DIR_APP) && make SHARED=yes PREFIX=/usr install DESTDIR=$(BUILDROOT) \
54 IDSDIR=/usr/share/hwdata MANDIR=/usr/share/man
55
56 -mkdir -pv $(BUILDROOT)/usr/include/pci
57 install -v -m 644 $(DIR_APP)/lib/*.h $(BUILDROOT)/usr/include/pci
58
59 -mkdir -pv $(BUILDROOT)/usr/lib
60 ln -svf libpci.so.3 $(BUILDROOT)/usr/lib/libpci.so
61 endef