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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
$NetBSD: patch-aa,v 1.3 2004/10/06 15:16:03 minskim Exp $
--- setup.py.orig Wed Oct 6 03:08:58 2004
+++ setup.py
@@ -41,50 +41,50 @@ class my_install_data(install_data):
global installed_lib_dir
install_data.finalize_options(self)
- if not os.path.isdir(os.path.join(self.install_dir, "etc")):
- print "creating %s" % os.path.join(self.install_dir, "etc")
- os.mkdir(os.path.join(self.install_dir, "etc"))
-
- if not os.path.isfile(os.path.join(self.install_dir, "etc/moss.conf")):
- print "creating %s" % os.path.join(self.install_dir, "etc/moss.conf")
-
- src = open("moss.conf.sample", "r")
- dest = open(os.path.join(self.install_dir, "etc/moss.conf"), "w")
-
- for line in src.readlines():
- if line.find("${PREFIX}") != -1:
- line = line.replace("${PREFIX}", self.install_dir)
-
- dest.write(line)
-
- src.close()
- dest.close()
- else:
- if self.force:
- print "creating %s" % os.path.join(self.install_dir, "etc/moss.conf")
-
- src = open("moss.conf.sample", "r")
- dest = open(os.path.join(self.install_dir, "etc/moss.conf"), "w")
-
- for line in src.readlines():
- if line.find("${PREFIX}") != -1:
- line = line.replace("${PREFIX}", self.install_dir)
-
- dest.write(line)
-
- src.close()
- dest.close()
-
- if not os.path.isdir(os.path.join(self.install_dir, "var")):
- os.mkdir(os.path.join(self.install_dir, "var"))
-
- if not os.path.isdir(os.path.join(self.install_dir, "var/log")):
- print "creating %s" % os.path.join(self.install_dir, "var/log")
- os.mkdir(os.path.join(self.install_dir, "var/log"))
-
- if not os.path.isdir(os.path.join(self.install_dir, "var/run")):
- print "creating %s" % os.path.join(self.install_dir, "var/run")
- os.mkdir(os.path.join(self.install_dir, "var/run"))
+# if not os.path.isdir(os.path.join(self.install_dir, "etc")):
+# print "creating %s" % os.path.join(self.install_dir, "etc")
+# os.mkdir(os.path.join(self.install_dir, "etc"))
+#
+# if not os.path.isfile(os.path.join(self.install_dir, "etc/moss.conf")):
+# print "creating %s" % os.path.join(self.install_dir, "etc/moss.conf")
+#
+# src = open("moss.conf.sample", "r")
+# dest = open(os.path.join(self.install_dir, "etc/moss.conf"), "w")
+#
+# for line in src.readlines():
+# if line.find("${PREFIX}") != -1:
+# line = line.replace("${PREFIX}", self.install_dir)
+#
+# dest.write(line)
+#
+# src.close()
+# dest.close()
+# else:
+# if self.force:
+# print "creating %s" % os.path.join(self.install_dir, "etc/moss.conf")
+#
+# src = open("moss.conf.sample", "r")
+# dest = open(os.path.join(self.install_dir, "etc/moss.conf"), "w")
+#
+# for line in src.readlines():
+# if line.find("${PREFIX}") != -1:
+# line = line.replace("${PREFIX}", self.install_dir)
+#
+# dest.write(line)
+#
+# src.close()
+# dest.close()
+#
+# if not os.path.isdir(os.path.join(self.install_dir, "var")):
+# os.mkdir(os.path.join(self.install_dir, "var"))
+#
+# if not os.path.isdir(os.path.join(self.install_dir, "var/log")):
+# print "creating %s" % os.path.join(self.install_dir, "var/log")
+# os.mkdir(os.path.join(self.install_dir, "var/log"))
+#
+# if not os.path.isdir(os.path.join(self.install_dir, "var/run")):
+# print "creating %s" % os.path.join(self.install_dir, "var/run")
+# os.mkdir(os.path.join(self.install_dir, "var/run"))
if not os.path.isdir(os.path.join(self.install_dir, "share")):
os.mkdir(os.path.join(self.install_dir, "share"))
|