summaryrefslogtreecommitdiff
path: root/pkgtools/digest
diff options
context:
space:
mode:
authorabs <abs>2002-06-21 15:26:07 +0000
committerabs <abs>2002-06-21 15:26:07 +0000
commit22e3f906bce2665439e963ad59666f2fe8683a37 (patch)
tree5ce77631308e8253266ec22ecdaf5aa8c49d909b /pkgtools/digest
parentd7f63707f4264335807acfa526237ec1f0b11421 (diff)
downloadpkgsrc-22e3f906bce2665439e963ad59666f2fe8683a37.tar.gz
Make this work under Linux, and fix manpage install on SunOS
Diffstat (limited to 'pkgtools/digest')
-rw-r--r--pkgtools/digest/Makefile9
-rw-r--r--pkgtools/digest/files/Makefile8
2 files changed, 12 insertions, 5 deletions
diff --git a/pkgtools/digest/Makefile b/pkgtools/digest/Makefile
index f0526c29528..4756ddbda29 100644
--- a/pkgtools/digest/Makefile
+++ b/pkgtools/digest/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2002/03/04 11:57:10 seb Exp $
+# $NetBSD: Makefile,v 1.24 2002/06/21 15:26:07 abs Exp $
#
# When adding new digest algorithms, please use rmd160 as the template,
# and bump the VERSION definition.
@@ -28,6 +28,13 @@ MAKE_ENV+= VERSION="${VERSION}"
.if ${OPSYS} == "SunOS"
MAKEFLAGS+= NETBSD_COMPATIBLE=YES
MANINSTALL=
+.elif ${OPSYS} == "Linux"
+CPPFLAGS+=-D__COPYRIGHT\(x\)=\; -D__RCSID\(x\)=\;
+.endif
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
+PLIST= ${WRKSRC}/.PLIST
+post-install:
+ ${GREP} -v '^man/cat' ${PKGDIR}/PLIST > ${PLIST}
.endif
post-extract:
diff --git a/pkgtools/digest/files/Makefile b/pkgtools/digest/files/Makefile
index de489391f18..d75f7848195 100644
--- a/pkgtools/digest/files/Makefile
+++ b/pkgtools/digest/files/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/10/30 14:07:33 agc Exp $
+# $NetBSD: Makefile,v 1.9 2002/06/21 15:26:08 abs Exp $
# When adding new digest algorithms, please use rmd160 as the template,
# and bump the version definition in the package Makefile
@@ -16,7 +16,7 @@ SRCS+= sha1.c sha1hl.c
SRCS+= sha2.c sha2hl.c
.endif
-.if !exists(/usr/include/md5.h) || ${OPSYS} == "SunOS"
+.if !exists(/usr/include/md5.h) || ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
SRCS+= md5c.c md5hl.c
.endif
@@ -28,8 +28,8 @@ CPPFLAGS+= -DHAVE_SYS_ENDIAN_H_
CPPFLAGS+= -DHAVE_MACHINE_ENDIAN_H_
.endif
-.if (${OPSYS} == SunOS)
-NOMAN= YES
+.if ${OPSYS} == SunOS || ${OPSYS} == "Linux"
+MKCATPAGES= no
.elif ${OPSYS} != "Darwin"
LDSTATIC?= -static
.endif