1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- Change MASTER_SITES to GitHub

- Remove maintainer section
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2016-03-26 09:03:05 +00:00
parent e88b6d1baf
commit e3704ae0b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411916
2 changed files with 6 additions and 31 deletions

View File

@ -4,7 +4,6 @@
PORTNAME= pciids
PORTVERSION= 20160227
CATEGORIES= misc
MASTER_SITES= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Database of all known IDs used in PCI devices
@ -18,36 +17,12 @@ USES= tar:xz
PLIST_FILES= %%DATADIR%%/pci.ids
GH_ACCOUNT= pciutils
GH_TAGNAME= c83ceba
USE_GITHUB= yes
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/pci.ids ${STAGEDIR}${DATADIR}/
# maintainer section:
MS_DIFF= ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.diff
MS_DISTFILES= pci.ids
MS_MASTER_SITE= http://pci-ids.ucw.cz/
MS_VERSION= `${CAT} ${MS_VERSIONFILE}`
MS_VERSIONFILE= ${MS_WRKSRC}/.version
MS_WRKSRC= ${WRKSRC}/tmp
maketar: do-clean extract
@${MKDIR} ${MS_WRKSRC}/
@${FETCH_CMD} -o ${MS_WRKSRC}/${MS_DISTFILES} ${MS_MASTER_SITE}${MS_DISTFILES}
@${AWK} '/^# Version/ { gsub(/\./, "", $$3); print $$3 }' ${MS_WRKSRC}/${MS_DISTFILES} > ${MS_VERSIONFILE}
@${MKDIR} ${MS_WRKSRC}/${PORTNAME}-${PORTVERSION}/ ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
@${MV} ${MS_WRKSRC}/${MS_DISTFILES} ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}/
@${CP} ${WRKSRC}/${MS_DISTFILES} ${MS_WRKSRC}/${PORTNAME}-${PORTVERSION}/${MS_DISTFILES}
-@cd ${MS_WRKSRC}/ && ${DIFF} -u ${PORTNAME}-${PORTVERSION}/${MS_DISTFILES} ${PORTNAME}-${MS_VERSION}/${MS_DISTFILES} > ${MS_DIFF}
@if [ -s ${MS_DIFF} ]; then \
${CP} -i ${MS_DIFF} ${.CURDIR}/; \
cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${PORTNAME}-${MS_VERSION}.tar.xz ${PORTNAME}-${MS_VERSION}/; \
sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/; \
${SED} -i '' -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile; \
cd ${.CURDIR}/ && ${MAKE_CMD} makesum; \
${ECHO_MSG} "*** Update from ${PORTVERSION} to ${MS_VERSION}, diff: ${.CURDIR}/${PORTNAME}-${MS_VERSION}.diff ***"; \
else \
${ECHO_MSG} "*** ${MS_MASTER_SITE}${MS_DISTFILES} is unchanged (${PORTVERSION}) ***"; \
fi
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (pciids-20160227.tar.xz) = 39ea030c37589345b37646c6936576a20b6dcc730df9beab69fded3cf80ad7fa
SIZE (pciids-20160227.tar.xz) = 182244
SHA256 (pciutils-pciids-20160227-c83ceba_GH0.tar.gz) = facd20deb0331c955b3147ce0a7efb132873f892a4d010922e72e40252a60eda
SIZE (pciutils-pciids-20160227-c83ceba_GH0.tar.gz) = 241279