summaryrefslogtreecommitdiff
path: root/net/ncftp3/patches/patch-ab
blob: 202ea07ec2df53a035bace7aa43139a8dee79091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$NetBSD: patch-ab,v 1.4 2005/05/07 15:14:44 recht Exp $

--- configure.orig	2005-03-25 02:18:12.000000000 +0100
+++ configure	2005-05-07 10:56:46.000000000 +0200
@@ -913,65 +913,7 @@
 	macos*|darwin|rhapsody)
 		OS="macosx"
 		SYS="macosx"
-		os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = <F>)) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /<key>ProductVersion<\/key><string>([^<]+)<\/string>/) { print , "\n"; exit(0); } exit(1); }' 2>/dev/null`
-		if [ "$os_v" = "" ] && [ -x "$HOME/bin/macosver" ] ; then
-			os_v=`"$HOME/bin/macosver" 2>/dev/null`
-		fi
-		if [ "$os_v" = "" ] ; then
-			cat > "$HOME/macosver.c" <<EOF
-/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
-	<key>ProductBuildVersion</key>
-	<string>5S66</string>
-	<key>ProductName</key>
-	<string>Mac OS X</string>
-	<key>ProductVersion</key>
-	<string>10.1.5</string>
-</dict>
-</plist>
-*/
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-
-main()
-{
-	char line[256], *cp, *cp2; 
-	FILE *fp;
-
-	fp = fopen("/System/Library/CoreServices/SystemVersion.plist", "r");
-
-	if (fp != NULL) {
-		memset(line, 0, sizeof(line));
-		while (fgets(line, sizeof(line) - 1, fp) != NULL) {
-			cp = strstr(line, "<key>ProductVersion</key>");
-			if (cp != NULL) {
-				memset(line, 0, sizeof(line));
-				if (fgets(line, sizeof(line) - 2, fp) != NULL) {
-					for (cp = line; ((*cp != '\0') && (! isdigit(*cp))); ) cp++;
-					for (cp2 = cp; ((*cp2 != '\0') && (! isspace(*cp2)) && (*cp2 != '<') && (*cp2 != '>')); ) cp2++;
-					cp2[0] = '\0';
-					fclose(fp);
-					fprintf(stdout, "%s\n", cp);
-					exit(0);
-				}
-			}
-		}
-	}
-	fclose(fp);
-	exit(1);
-}
-EOF
-			${CC-cc} "$HOME/macosver.c" -o "$HOME/macosver" > /dev/null 2>&1
-			os_v=`"$HOME/macosver" 2>/dev/null`
-			mv "$HOME/macosver" "$HOME/bin/macosver" 2>/dev/null
-			rm -f "$HOME/macosver.c" "$HOME/macosver"
-		fi
+		os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = <F>)) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /<key>ProductVersion<\/key><string>([^<]+)<\/string>/) { print $1, "\n"; exit(0); } exit(1); }' 2>/dev/null`
 		if [ "$os_v" != "" ] ; then
 			OS="macosx${os_v}"
 			os_v1=`echo "$os_v" | cut -d. -f1`
@@ -8529,7 +8471,7 @@
 fi
 
 
-if test "x$mandir" = 'x${prefix}/man' ; then
+if false; then
 	# Mandir is at default value -- try to see
 	# if $prefix/share/man would be better.
 	#