diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-12 20:21:42 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-12 20:21:42 +0800 |
commit | 5f952bce1492afed7f22caa87dedd07979a14646 (patch) | |
tree | c801abc54132355bcac8e1d3c7d46a396f3f609d /misc/pciids/Makefile | |
parent | 4b48fe10a17c6b5af754ccb105908d4f28ecc1da (diff) | |
download | marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar.gz marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar.bz2 marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar.lz marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar.xz marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.tar.zst marcuscom-ports-5f952bce1492afed7f22caa87dedd07979a14646.zip |
Update to 20080312 snapshot
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10717 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/pciids/Makefile')
-rw-r--r-- | misc/pciids/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/misc/pciids/Makefile b/misc/pciids/Makefile new file mode 100644 index 000000000..5577958d5 --- /dev/null +++ b/misc/pciids/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: pciids +# Date created: 2006-08-07 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD: ports/misc/pciids/Makefile,v 1.13 2008/01/09 14:00:24 ahze Exp $ +# $MCom: ports/misc/pciids/Makefile,v 1.8 2006/10/26 16:14:10 ahze Exp $ + +PORTNAME= pciids +PORTVERSION= 20080312 +CATEGORIES= misc +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= ahze + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Database of all known ID's used in PCI devices + +USE_BZIP2= yes +NO_BUILD= yes +PLIST_FILES= %%DATADIR%%/pci.ids \ + %%DATADIR%%/pci.db +PLIST_DIRS= %%DATADIR%% + +do-install: + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pci.ids ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pci.db ${DATADIR} + +.include <bsd.port.pre.mk> + +# 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: extract + ${MKDIR} ${CT_TEMPDIR} +.for file in ${CT_DISTFILES} + (cd ${CT_TEMPDIR} && ${FETCH_CMD} ${CT_MASTER_SITE}/${file}) +.endfor + ${DIFF} -u ${WRKSRC}/pci.ids ${CT_TEMPDIR}/pci.ids || ${TRUE} + (cd ${CT_WRKSRC} && ${TAR} -jcf ${PORTNAME}-${CT_DATE}.tar.bz2 ${CT_DESTDIR}) + ${SED} -i.bak -e 's|${PORTVERSION}|${CT_DATE}|' ${.CURDIR}/Makefile + @(cd ${.CURDIR} && ${CP} -f ${CT_WRKSRC}/${PORTNAME}-${CT_DATE}.tar.bz2 ${DISTDIR} && \ + ${MAKE} makesum) + +.include <bsd.port.post.mk> |