diff options
author | tron <tron> | 2001-03-10 15:26:15 +0000 |
---|---|---|
committer | tron <tron> | 2001-03-10 15:26:15 +0000 |
commit | de48bbe73b5966546ae7f295ff93d1c85fd451b2 (patch) | |
tree | b6414607189e861d774b8c868e5f8c7bcddb863d /pkgtools/digest/Makefile | |
parent | 7660573356fe5eab6bd583509224321d6ad292c1 (diff) | |
download | pkgsrc-de48bbe73b5966546ae7f295ff93d1c85fd451b2.tar.gz |
Solve chicken and egg problem by using a bootstrap digest shell script
used to verify the patch checksums of this package.
Diffstat (limited to 'pkgtools/digest/Makefile')
-rw-r--r-- | pkgtools/digest/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgtools/digest/Makefile b/pkgtools/digest/Makefile index de26c8a80b5..cac5b46b80f 100644 --- a/pkgtools/digest/Makefile +++ b/pkgtools/digest/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2001/03/10 11:18:09 tron Exp $ +# $NetBSD: Makefile,v 1.6 2001/03/10 15:26:15 tron Exp $ # # When adding new digest algorithms, please use rmd160 as the template, # and bump the VERSION definition. @@ -21,19 +21,25 @@ MANCOMPRESSED_IF_MANZ= YES PLIST_SRC= ${WRKDIR}/PLIST BUILD_DEFS+= MANINSTALL -MAKE_ENV+= BINDIR=${LOCALBASE}/bin MANDIR=${LOCALBASE}/man -MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DVERSION=${VERSION}" +DIGEST= ${WRKSRC}/bootstrap-digest +DIGEST_ALGORITHM= MD5 +MAKE_ENV+= BINDIR=${LOCALBASE}/bin MANDIR=${LOCALBASE}/man +MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DVERSION=${VERSION}" + +.include "../../mk/bsd.prefs.mk" + post-extract: - @for f in Makefile digest.c digest.1 \ + @for FILE in Makefile digest.c digest.1 \ md5c.c md5.h md5hl.c \ rmd160.c rmd160.h rmd160hl.c \ sha1.c sha1.h sha1hl.c \ ; do \ - ${CP} ${FILESDIR}/$$f ${WRKSRC}; \ + ${CP} ${FILESDIR}/$$FILE ${WRKSRC}; \ done - -.include "../../mk/bsd.prefs.mk" + @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${SCRIPTDIR}/bootstrap-digest \ + >${DIGEST} + @${CHMOD} +x ${DIGEST} pre-install: @${RM} -f ${PLIST_SRC} |