diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-01-04 23:06:38 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-01-04 23:06:38 +0000 |
commit | 118424e9c1ccb039c59cd1d64172ed9761b5195b (patch) | |
tree | 71eacbb0a02845d197133ea43c95e78e6993f98f /Mk | |
parent | Be a little more explicit on what it does. (diff) |
Gary Palmer's patches for checksumming and description.
Submitted by: gpalmer
Notes
Notes:
svn path=/head/; revision=702
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 1083a1cf4b4e..746a9e278afa 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.93 1995/01/04 08:30:33 jkh Exp $ +# $Id: bsd.port.mk,v 1.94 1995/01/04 09:58:39 jkh Exp $ # # Please view me with 4 column tabs! @@ -101,6 +101,8 @@ # package - Create a package from a build. # describe - Try to generate a one-line description for each port for # use in INDEX files and the like. +# checksum - Use files/md5 to ensure that your distfiles are valid +# makesum - Generate files/md5 # # Default sequence for "all" is: fetch extract configure build @@ -261,9 +263,9 @@ is_depended: all install .if defined(NO_EXTRACT) && !target(extract) extract: @${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE} -check-md5: +checksum: @${DO_NADA} -make-md5: +makesum: @${DO_NADA} .endif .if defined(NO_CONFIGURE) && !target(configure) @@ -291,12 +293,16 @@ patch: .if !target(describe) describe: +.if defined(NO_PACKAGE) + @echo "${.CURDIR}/${DISTNAME}: ** Not packageable"; +.else @if [ -f ${PKGDIR}/COMMENT ]; then \ echo "${.CURDIR}/${DISTNAME}: `cat ${PKGDIR}/COMMENT`"; \ else \ echo "${.CURDIR}/${DISTNAME}: ** No Description"; \ fi .endif +.endif .if !target(reinstall) reinstall: pre-reinstall install @@ -495,8 +501,8 @@ fetch: pre-fetch done) .endif -.if !target(make-md5) -make-md5: fetch +.if !target(makesum) +makesum: fetch @if [ ! -d ${FILESDIR} ]; then mkdir -p ${FILESDIR}; fi @if [ -f ${MD5_FILE} ]; then rm -f ${MD5_FILE}; fi @@ -506,8 +512,8 @@ make-md5: fetch done) .endif -.if !target(check-md5) -check-md5: fetch +.if !target(checksum) +checksum: fetch @if [ ! -f ${MD5_FILE} ]; then \ echo ">> No MD5 checksum file."; \ exit 1; \ |