From 3f0935d0188e114b027c2e370acd2d00312d788f Mon Sep 17 00:00:00 2001 From: ahze Date: Thu, 10 Aug 2006 00:28:54 +0000 Subject: - Update to 20060809 - Install pci.db along with pci.ids - Add target maketar: which creates a tarball of the most current version of pci.ids & pci.db git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7019 df743ca5-7f9a-e211-a948-0013205c9059 --- misc/pciids/Makefile | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'misc/pciids/Makefile') diff --git a/misc/pciids/Makefile b/misc/pciids/Makefile index 344fcb393..38d211774 100644 --- a/misc/pciids/Makefile +++ b/misc/pciids/Makefile @@ -3,28 +3,42 @@ # Whom: Michael Johnson # # $FreeBSD$ -# $MCom$ +# $MCom: ports/misc/pciids/Makefile,v 1.1 2006/08/08 01:56:30 ahze Exp $ PORTNAME= pciids -PORTVERSION= 20060807 +PORTVERSION= 20060809 CATEGORIES= misc -MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + http://people.freebsd.org/~ahze/distfiles/ MASTER_SITE_SUBDIR= ahze -DISTNAME= pci.ids-${PORTVERSION} -EXTRACT_SUFX= .bz2 MAINTAINER= gnome@FreeBSD.org COMMENT= Pci.ids database from pciutils -EXTRACT_CMD= ${BZIP2_CMD} -EXTRACT_AFTER_ARGS= -d -s > ${WRKDIR}/pci.ids +USE_BZIP2= yes NO_BUILD= yes - -PLIST_FILES= %%DATADIR%%/pci.ids +PLIST_FILES= %%DATADIR%%/pci.ids \ + %%DATADIR%%/pci.db PLIST_DIRS= %%DATADIR%% do-install: ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKDIR}/pci.ids ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pci.ids ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pci.db ${DATADIR} + +# Below only contains code to create a tar file for this beast +CT_DATE!= date "+%Y%m%d" +CT_WRKSRC= ${WRKDIR}/tmp +CT_DESTDIR= ${PORTNAME}-${CT_DATE} +CT_TEMPDIR= ${CT_WRKSRC}/${CT_DESTDIR} +CT_MASTER_SITE= http://pciids.sourceforge.net/v2.2/ +CT_DISTFILES= pci.ids pci.db + +maketar: + ${MKDIR} ${CT_TEMPDIR} +.for file in ${CT_DISTFILES} + (cd ${CT_TEMPDIR} && ${FETCH_CMD} ${CT_MASTER_SITE}/${file}) +.endfor + (cd ${CT_WRKSRC} && ${TAR} -jcf ${PORTNAME}-${CT_DATE}.tar.bz2 ${CT_DESTDIR}) .include -- cgit v1.2.3