diff options
author | heinz <heinz> | 2003-04-15 00:35:25 +0000 |
---|---|---|
committer | heinz <heinz> | 2003-04-15 00:35:25 +0000 |
commit | 3adfd215d8dfee3dc89afcb7d544f857c04372a4 (patch) | |
tree | 389f0e25804426b6e6e44576e196df83b0965b8f /mail/spamassassin | |
parent | ef68000bca34983747d54f58b55466b7da8588a4 (diff) | |
download | pkgsrc-3adfd215d8dfee3dc89afcb7d544f857c04372a4.tar.gz |
work around differences in find options for depth-first traversal
Diffstat (limited to 'mail/spamassassin')
-rw-r--r-- | mail/spamassassin/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile index 2ade466ca32..727d13ee01f 100644 --- a/mail/spamassassin/Makefile +++ b/mail/spamassassin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2003/04/15 00:02:24 heinz Exp $ +# $NetBSD: Makefile,v 1.20 2003/04/15 00:35:25 heinz Exp $ DISTNAME= Mail-SpamAssassin-2.53 PKGNAME= spamassassin-2.53 @@ -66,12 +66,18 @@ SUPPORT_FILES_PERMS+= ${EGDIR}/netbsd_lists.cf \ ${SHAREGRP} ${SHAREMODE} .if ${OPSYS} == "NetBSD" +DEPTHFIRST1= -d +DEPTHFIRST2= # empty # the 'spamd' RCD_SCRIPT behaves differently if we run NetBSD 1.6 or later . if ${OS_VERSION:M1.[0-5]*} INTERPRETER_SUPPORT=NO . else INTERPRETER_SUPPORT=YES . endif +.else +# this needs to be more OS-specific +DEPTHFIRST1= # empty +DEPTHFIRST2= -depth .endif FILES_SUBST+= INTERPRETER_SUPPORT="${INTERPRETER_SUPPORT}" FILES_SUBST+= OPSYS="${OPSYS}" @@ -144,7 +150,8 @@ pre-install: ${ECHO} "${DOCDIRNOPREFIX}/$$f" >> ${PLIST_ADD}; \ fi; \ done && \ - for d in `${FIND} ${DIR} -type d -print`; do \ + for d in `${FIND} ${DEPTHFIRST1} ${DIR} ${DEPTHFIRST2} -type d\ + -print`; do \ ${ECHO} "@dirrm ${DOCDIRNOPREFIX}/$$d" >> ${PLIST_ADD}; \ done) .endfor |