sysutils/mmc-utils: Minor changes to port

- Fetch the distfile directly from the master git repository based on
  the nifty approach taken by mail/alpine instead of using a local copy.
  Note that this bumps the PORTVERSION to the last commit date (rather
  than last change date) of the repository w/o a change in source. [1]
- Chase outdated repository URL in pkg-descr (still wrong in WWW). [2]

PR:		260527
Obtained from:	mail/alpine [1]
Submitted by:	diizzy [2]
This commit is contained in:
Marius Strobl 2021-12-19 16:16:38 +01:00
parent b6f152bbaa
commit e9dba04db7
3 changed files with 11 additions and 22 deletions

View file

@ -1,10 +1,10 @@
# Created by: Marius Strobl <marius@FreeBSD.org> # Created by: Marius Strobl <marius@FreeBSD.org>
PORTNAME= mmc-utils PORTNAME= mmc-utils
PORTVERSION= 20211130 DISTVERSION= 20211202
DISTVERSIONSUFFIX= -a1b233c2 DISTVERSIONSUFFIX= -${MMC_GITSHASH}
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= LOCAL/marius MASTER_SITES= https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/${MMC_GITHASH}${EXTRACT_SUFX}?dummy=/
MAINTAINER= marius@FreeBSD.org MAINTAINER= marius@FreeBSD.org
COMMENT= Userspace tools for MMC/SD devices COMMENT= Userspace tools for MMC/SD devices
@ -13,12 +13,11 @@ LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= multi LICENSE_COMB= multi
IGNORE_DragonFly= only supported on FreeBSD IGNORE_DragonFly= only supported on FreeBSD
MMC_GITHASH= a1b233c2a31baa5b77cb67c0c3be4767be86f727
USES= gmake tar:bzip2 MMC_GITSHASH= ${MMC_GITHASH:C/^(........).*/\1/}
PLIST_FILES= man/man1/mmc.1.gz sbin/mmc PLIST_FILES= man/man1/mmc.1.gz sbin/mmc
USES= gmake
MMC_GITURL= git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git WRKSRC= ${WRKDIR}/${MMC_GITHASH}
post-patch: post-patch:
.for i in Makefile mmc_cmds.c mmc.c man/mmc.1 .for i in Makefile mmc_cmds.c mmc.c man/mmc.1
@ -30,14 +29,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mmc ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/mmc ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/mmc.1 ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/man/mmc.1 ${STAGEDIR}${PREFIX}/man/man1
maintainer-fetch:
@${MAKE} clean
@${MKDIR} ${WRKSRC}
@git clone ${MMC_GITURL} ${WRKSRC}
@cd ${WRKSRC} && git reset --hard ${DISTVERSIONSUFFIX:S|^-||}
@${TAR} -cyf ${_DISTDIR:S|/$||}/${DISTFILES:M${PORTNAME}-*} \
-C ${WRKSRC}/.. --exclude .git* .
@${MAKE} makesum
@${MAKE} clean
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1639857562 TIMESTAMP = 1639924509
SHA256 (mmc-utils-20211130-a1b233c2.tar.bz2) = 08580126453b7ca20988236030d98d5e59c82ebbd990a4b9bbf9a8b6dfaa59aa SHA256 (mmc-utils-20211202-a1b233c2.tar.gz) = fb275b57353bb53ff97d9ba4716928ed159341a1e1539f6face40bc63b39e674
SIZE (mmc-utils-20211130-a1b233c2.tar.bz2) = 42512 SIZE (mmc-utils-20211202-a1b233c2.tar.gz) = 47220

View file

@ -3,7 +3,7 @@ MMC tools introduction
There is one MMC test tools called mmc-utils, which is maintained by There is one MMC test tools called mmc-utils, which is maintained by
Chris Ball, you can find it at the below public git repository: Chris Ball, you can find it at the below public git repository:
http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/ https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
Functions Functions
========= =========