pkgsrc/security/tct/patches/patch-an

19 lines
504 B
Text

$NetBSD: patch-an,v 1.4 2015/03/19 08:34:53 dholland Exp $
Recognize NetBSD versions.
--- src/fstools/makedefs.orig 2001-10-04 19:44:26.000000000 +0000
+++ src/fstools/makedefs
@@ -2,6 +2,12 @@ SYSTEM=`(uname -s) 2>/dev/null`
RELEASE=`(uname -r) 2>/dev/null`
case "$SYSTEM.$RELEASE" in
+ NetBSD.1*) DEFS="-DNETBSD1"
+ ;;
+ NetBSD.[2-6]*) DEFS="-DNETBSD2"
+ ;;
+ NetBSD.[7-9]*) DEFS="-DNETBSD7"
+ ;;
FreeBSD.2*) DEFS="-DFREEBSD2"
;;
FreeBSD.3*) DEFS="-DFREEBSD3"