ec58eab759
"MANZ" is set, regardless of it's value. The change only seemed to work because of the turds left over from the last failed install.
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2001/03/26 16:48:25 fredb Exp $
|
|
#
|
|
# When adding new digest algorithms, please use rmd160 as the template,
|
|
# and bump the VERSION definition.
|
|
|
|
DISTNAME= digest-${VERSION}
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= agc@netbsd.org
|
|
HOMEPAGE= http://www.netbsd.org/Documentation/software/packages.html
|
|
COMMENT= message digest wrapper utility
|
|
|
|
VERSION= 20010319
|
|
|
|
EXTRACT_ONLY= # empty
|
|
WRKSRC= ${WRKDIR}
|
|
NO_CHECKSUM= # defined
|
|
MANCOMPRESSED_IF_MANZ= YES
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
BUILD_DEFS+= MANINSTALL
|
|
|
|
MAKE_ENV+= BINDIR=${LOCALBASE}/bin MANDIR=${LOCALBASE}/man
|
|
MAKE_ENV+= VERSION="${VERSION}"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
MAKE_ENV+= NETBSD_COMPATIBLE=YES
|
|
MANINSTALL=
|
|
.endif
|
|
|
|
post-extract:
|
|
@for FILE in Makefile regress.sh digest.c digest.1 \
|
|
md5c.c md5.h md5hl.c \
|
|
rmd160.c rmd160.h rmd160hl.c \
|
|
sha1.c sha1.h sha1hl.c \
|
|
sha2.c sha2.h sha2hl.c \
|
|
; do \
|
|
${CP} ${FILESDIR}/$$FILE ${WRKSRC}; \
|
|
done
|
|
|
|
pre-install:
|
|
@${RM} -f ${PLIST_SRC}
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
@if [ -n "${MANINSTALL:Mcatinstall}" ]; then \
|
|
${ECHO} man/cat1/digest.0 >> ${PLIST_SRC}; \
|
|
fi
|
|
@if [ -n "${MANINSTALL:Mmaninstall}" ]; then \
|
|
${ECHO} man/man1/digest.1 >> ${PLIST_SRC}; \
|
|
fi
|
|
|
|
test:
|
|
@${ECHO} "No news is good news"
|
|
@cd ${WRKSRC} && ${SETENV} DIGESTDIR=${WRKSRC} ${SH} ./regress.sh
|
|
@${ECHO} "All tests completed"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|