mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
parent
b6f152bbaa
commit
e9dba04db7
3 changed files with 11 additions and 22 deletions
|
@ -1,10 +1,10 @@
|
|||
# Created by: Marius Strobl <marius@FreeBSD.org>
|
||||
|
||||
PORTNAME= mmc-utils
|
||||
PORTVERSION= 20211130
|
||||
DISTVERSIONSUFFIX= -a1b233c2
|
||||
DISTVERSION= 20211202
|
||||
DISTVERSIONSUFFIX= -${MMC_GITSHASH}
|
||||
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
|
||||
COMMENT= Userspace tools for MMC/SD devices
|
||||
|
@ -13,12 +13,11 @@ LICENSE= BSD3CLAUSE GPLv2
|
|||
LICENSE_COMB= multi
|
||||
|
||||
IGNORE_DragonFly= only supported on FreeBSD
|
||||
|
||||
USES= gmake tar:bzip2
|
||||
|
||||
MMC_GITHASH= a1b233c2a31baa5b77cb67c0c3be4767be86f727
|
||||
MMC_GITSHASH= ${MMC_GITHASH:C/^(........).*/\1/}
|
||||
PLIST_FILES= man/man1/mmc.1.gz sbin/mmc
|
||||
|
||||
MMC_GITURL= git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
|
||||
USES= gmake
|
||||
WRKSRC= ${WRKDIR}/${MMC_GITHASH}
|
||||
|
||||
post-patch:
|
||||
.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_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>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1639857562
|
||||
SHA256 (mmc-utils-20211130-a1b233c2.tar.bz2) = 08580126453b7ca20988236030d98d5e59c82ebbd990a4b9bbf9a8b6dfaa59aa
|
||||
SIZE (mmc-utils-20211130-a1b233c2.tar.bz2) = 42512
|
||||
TIMESTAMP = 1639924509
|
||||
SHA256 (mmc-utils-20211202-a1b233c2.tar.gz) = fb275b57353bb53ff97d9ba4716928ed159341a1e1539f6face40bc63b39e674
|
||||
SIZE (mmc-utils-20211202-a1b233c2.tar.gz) = 47220
|
||||
|
|
|
@ -3,7 +3,7 @@ MMC tools introduction
|
|||
|
||||
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:
|
||||
http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
|
||||
https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
||||
|
||||
Functions
|
||||
=========
|
||||
|
|
Loading…
Add table
Reference in a new issue