summaryrefslogtreecommitdiffstats
path: root/misc/pciids/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-10 08:28:54 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-10 08:28:54 +0800
commit3f0935d0188e114b027c2e370acd2d00312d788f (patch)
treef4420c98ddd614fd2b648f7d617250929ca1415f /misc/pciids/Makefile
parent6897410334e780305a6f28472d7e51f0ecfb594e (diff)
downloadmarcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar.gz
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar.bz2
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar.lz
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar.xz
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.tar.zst
marcuscom-ports-3f0935d0188e114b027c2e370acd2d00312d788f.zip
- 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
Diffstat (limited to 'misc/pciids/Makefile')
-rw-r--r--misc/pciids/Makefile34
1 files changed, 24 insertions, 10 deletions
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 <ahze@FreeBSD.org>
#
# $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 <bsd.port.mk>