2004-11-27 02:22:26 +01:00
|
|
|
$NetBSD: patch-aa,v 1.4 2004/11/27 01:22:26 minskim Exp $
|
2004-08-10 08:48:21 +02:00
|
|
|
|
2004-11-27 02:22:26 +01:00
|
|
|
--- setup.py.orig Sat Oct 23 20:22:42 2004
|
2004-08-10 08:48:21 +02:00
|
|
|
+++ setup.py
|
2004-10-06 17:16:03 +02:00
|
|
|
@@ -41,50 +41,50 @@ class my_install_data(install_data):
|
2004-08-17 17:50:30 +02:00
|
|
|
global installed_lib_dir
|
|
|
|
install_data.finalize_options(self)
|
2004-08-10 08:48:21 +02:00
|
|
|
|
2004-08-17 17:50:30 +02:00
|
|
|
- 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"))
|
|
|
|
-
|
2004-11-27 02:22:26 +01:00
|
|
|
- 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")
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- src = open("moss.conf.sample", "r")
|
2004-11-27 02:22:26 +01:00
|
|
|
- dest = open(os.path.join(self.install_dir, "etc", "moss.conf"), "w")
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- for line in src.readlines():
|
2004-10-06 17:16:03 +02:00
|
|
|
- if line.find("${PREFIX}") != -1:
|
|
|
|
- line = line.replace("${PREFIX}", self.install_dir)
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- dest.write(line)
|
|
|
|
-
|
|
|
|
- src.close()
|
|
|
|
- dest.close()
|
|
|
|
- else:
|
|
|
|
- if self.force:
|
2004-11-27 02:22:26 +01:00
|
|
|
- print "creating %s" % os.path.join(self.install_dir, "etc", "moss.conf")
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- src = open("moss.conf.sample", "r")
|
2004-11-27 02:22:26 +01:00
|
|
|
- dest = open(os.path.join(self.install_dir, "etc", "moss.conf"), "w")
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- for line in src.readlines():
|
2004-10-06 17:16:03 +02:00
|
|
|
- if line.find("${PREFIX}") != -1:
|
|
|
|
- line = line.replace("${PREFIX}", self.install_dir)
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
|
|
|
- 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"))
|
|
|
|
-
|
2004-11-27 02:22:26 +01:00
|
|
|
- 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"))
|
2004-08-17 17:50:30 +02:00
|
|
|
-
|
2004-11-27 02:22:26 +01:00
|
|
|
- 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"))
|
2004-08-17 17:50:30 +02:00
|
|
|
+# 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"))
|
|
|
|
+#
|
2004-11-27 02:22:26 +01:00
|
|
|
+# 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")
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# src = open("moss.conf.sample", "r")
|
2004-11-27 02:22:26 +01:00
|
|
|
+# dest = open(os.path.join(self.install_dir, "etc", "moss.conf"), "w")
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# for line in src.readlines():
|
2004-10-06 17:16:03 +02:00
|
|
|
+# if line.find("${PREFIX}") != -1:
|
|
|
|
+# line = line.replace("${PREFIX}", self.install_dir)
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# dest.write(line)
|
|
|
|
+#
|
|
|
|
+# src.close()
|
|
|
|
+# dest.close()
|
|
|
|
+# else:
|
|
|
|
+# if self.force:
|
2004-11-27 02:22:26 +01:00
|
|
|
+# print "creating %s" % os.path.join(self.install_dir, "etc", "moss.conf")
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# src = open("moss.conf.sample", "r")
|
2004-11-27 02:22:26 +01:00
|
|
|
+# dest = open(os.path.join(self.install_dir, "etc", "moss.conf"), "w")
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# for line in src.readlines():
|
2004-10-06 17:16:03 +02:00
|
|
|
+# if line.find("${PREFIX}") != -1:
|
|
|
|
+# line = line.replace("${PREFIX}", self.install_dir)
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
|
|
|
+# 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"))
|
|
|
|
+#
|
2004-11-27 02:22:26 +01:00
|
|
|
+# 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"))
|
2004-08-17 17:50:30 +02:00
|
|
|
+#
|
2004-11-27 02:22:26 +01:00
|
|
|
+# 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"))
|
2004-08-17 17:50:30 +02:00
|
|
|
|
|
|
|
if not os.path.isdir(os.path.join(self.install_dir, "share")):
|
|
|
|
os.mkdir(os.path.join(self.install_dir, "share"))
|