diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-27 00:14:10 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-27 00:14:10 +0800 |
commit | 1fe208009d03117b6dd2dbb5b25d6a0333908e9d (patch) | |
tree | 0b35cf92676240048e864b1627edabe9d53faca5 /misc/pciids/Makefile | |
parent | 392d93048a56fdbc9a159abc4df3d3d0472922a5 (diff) | |
download | marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar.gz marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar.bz2 marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar.lz marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar.xz marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.tar.zst marcuscom-ports-1fe208009d03117b6dd2dbb5b25d6a0333908e9d.zip |
- Update to 20061026
- Add code to run diff -u on pci.ids to see if we really
want to create a tar and update PORTVERSION auto.
(this won't effect anyone except ones who update pciids)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7842 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc/pciids/Makefile')
-rw-r--r-- | misc/pciids/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/misc/pciids/Makefile b/misc/pciids/Makefile index cc755761c..14dcc2f6e 100644 --- a/misc/pciids/Makefile +++ b/misc/pciids/Makefile @@ -3,10 +3,10 @@ # Whom: Michael Johnson <ahze@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/misc/pciids/Makefile,v 1.5 2006/09/29 20:57:46 ahze Exp $ +# $MCom: ports/misc/pciids/Makefile,v 1.7 2006/10/24 22:40:33 ahze Exp $ PORTNAME= pciids -PORTVERSION= 20061024 +PORTVERSION= 20061026 CATEGORIES= misc MASTER_SITES= http://www.ahze.net/~ahze/distfiles/ \ ${MASTER_SITE_LOCAL} @@ -26,6 +26,8 @@ do-install: ${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 @@ -34,11 +36,15 @@ CT_TEMPDIR= ${CT_WRKSRC}/${CT_DESTDIR} CT_MASTER_SITE= http://pciids.sourceforge.net/v2.2/ CT_DISTFILES= pci.ids pci.db -maketar: +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.mk> +.include <bsd.port.post.mk> |