aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pciutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-12-19 21:30:15 +0800
committerpav <pav@FreeBSD.org>2008-12-19 21:30:15 +0800
commit1f2d393fb70d7d947e3a3da3e2fbec00e6806786 (patch)
tree65cdc436d944debbd51cac22159749871fe86343 /sysutils/pciutils
parentcbaf4bc051365699e68013e17ccc10119432b62a (diff)
downloadfreebsd-ports-gnome-1f2d393fb70d7d947e3a3da3e2fbec00e6806786.tar.gz
freebsd-ports-gnome-1f2d393fb70d7d947e3a3da3e2fbec00e6806786.tar.zst
freebsd-ports-gnome-1f2d393fb70d7d947e3a3da3e2fbec00e6806786.zip
- Update to 3.0.3
PR: ports/129161 Submitted by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw> Approved by: Samy Al Bahra <sbahra@kerneled.org> (maintainer)
Diffstat (limited to 'sysutils/pciutils')
-rw-r--r--sysutils/pciutils/Makefile23
-rw-r--r--sysutils/pciutils/distinfo6
-rw-r--r--sysutils/pciutils/files/patch-Makefile30
-rw-r--r--sysutils/pciutils/pkg-plist6
4 files changed, 45 insertions, 20 deletions
diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile
index 7e7f67678de9..7280033320dc 100644
--- a/sysutils/pciutils/Makefile
+++ b/sysutils/pciutils/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pciutils
-PORTVERSION= 2.2.8
+PORTVERSION= 3.0.3
CATEGORIES= sysutils
MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \
ftp://ftp.kernel.org/pub/software/utils/pciutils/ \
@@ -16,17 +16,22 @@ MAINTAINER= sbahra@gwu.edu
COMMENT= PCI configuration utilities
USE_GMAKE= yes
-MAKE_ENV= LANG=C
MAN8= lspci.8 setpci.8 update-pciids.8
do-install:
- @${INSTALL_MAN} ${WRKSRC}/lspci.8 ${PREFIX}/man/man8
- @${INSTALL_MAN} ${WRKSRC}/setpci.8 ${PREFIX}/man/man8
- @${INSTALL_MAN} ${WRKSRC}/update-pciids.8 ${PREFIX}/man/man8
- @${INSTALL_PROGRAM} ${WRKSRC}/lspci ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/setpci ${PREFIX}/bin
- @${INSTALL_SCRIPT} ${WRKSRC}/update-pciids ${PREFIX}/sbin
- @${INSTALL_DATA} ${WRKSRC}/pci.ids ${PREFIX}/share
+ ${INSTALL_MAN} ${WRKSRC}/lspci.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/setpci.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/update-pciids.8 ${PREFIX}/man/man8
+ ${INSTALL_PROGRAM} ${WRKSRC}/lspci ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/setpci ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/update-pciids ${PREFIX}/sbin
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/pci.ids ${DATADIR}/pci.ids.sample
+
+post-install:
+ @if [ ! -f ${DATADIR}/pci.ids ]; then \
+ ${CP} -p ${DATADIR}/pci.ids.sample ${DATADIR}/pci.ids ; \
+ fi
.include <bsd.port.mk>
diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo
index 700d6e67cc90..cc1809918252 100644
--- a/sysutils/pciutils/distinfo
+++ b/sysutils/pciutils/distinfo
@@ -1,3 +1,3 @@
-MD5 (pciutils-2.2.8.tar.gz) = c0b742521a13ef624b9a0a237f46c1c8
-SHA256 (pciutils-2.2.8.tar.gz) = 8bdbcac28a80e05799c3e788bbb24417059537aff53b8bf16c7c8e08b3979fa2
-SIZE (pciutils-2.2.8.tar.gz) = 232602
+MD5 (pciutils-3.0.3.tar.gz) = d07da501bb11e6af40acd036536c2e9a
+SHA256 (pciutils-3.0.3.tar.gz) = 6f9b244e1581940bb59e729cf844dc1a47d06a1238475f78725336f4423fba02
+SIZE (pciutils-3.0.3.tar.gz) = 280329
diff --git a/sysutils/pciutils/files/patch-Makefile b/sysutils/pciutils/files/patch-Makefile
index ea4020744cf9..60457eecd281 100644
--- a/sysutils/pciutils/files/patch-Makefile
+++ b/sysutils/pciutils/files/patch-Makefile
@@ -1,17 +1,33 @@
---- Makefile.orig Fri May 5 21:46:32 2006
-+++ Makefile Mon Nov 27 22:12:24 2006
-@@ -1,13 +1,11 @@
+--- Makefile.orig 2008-11-09 21:28:18.000000000 +0100
++++ Makefile 2008-12-19 14:23:43.000000000 +0100
+@@ -1,8 +1,7 @@
# Makefile for The PCI Utilities
- # (c) 1998--2007 Martin Mares <mj@ucw.cz>
+ # (c) 1998--2008 Martin Mares <mj@ucw.cz>
-OPT=-O2
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS+=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
- VERSION=2.2.8
- DATE=2007-10-19
+ VERSION=3.0.3
+ DATE=2008-11-09
+@@ -25,10 +24,9 @@
+ ABI_VERSION=.3
+ # Installation directories
-PREFIX=/usr/local
SBINDIR=$(PREFIX)/sbin
SHAREDIR=$(PREFIX)/share
- IDSDIR=$(SHAREDIR)
+-IDSDIR=$(SHAREDIR)
++IDSDIR=$(SHAREDIR)/pciutils
+ MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
+ INCDIR=$(PREFIX)/include
+ LIBDIR=$(PREFIX)/lib
+@@ -38,7 +36,7 @@
+ INSTALL=install
+ DIRINSTALL=install -d
+ STRIP=-s
+-CC=$(CROSS_COMPILE)gcc
++CC?=$(CROSS_COMPILE)gcc
+ AR=$(CROSS_COMPILE)ar
+ RANLIB=$(CROSS_COMPILE)ranlib
+
diff --git a/sysutils/pciutils/pkg-plist b/sysutils/pciutils/pkg-plist
index 0b29aea1181e..9ee2568bf158 100644
--- a/sysutils/pciutils/pkg-plist
+++ b/sysutils/pciutils/pkg-plist
@@ -1,4 +1,8 @@
bin/lspci
bin/setpci
sbin/update-pciids
-share/pci.ids
+@unexec if cmp -s %D/share/pciutils/pci.ids.sample %D/share/pciutils/pci.ids; then rm -f %D/share/pciutils/pci.ids; fi
+%%DATADIR%%/pci.ids.sample
+@exec [ -f %B/pci.ids ] || cp -p %B/%f %B/pci.ids
+@unexec rm -f %D/share/pciutils/pci.ids.old 2> /dev/null || true
+@dirrmtry %%DATADIR%%