summaryrefslogtreecommitdiff
path: root/net/reposado/files/patch-reposadocommon.py
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2012-06-25 01:23:26 +0000
committerSteve Wills <swills@FreeBSD.org>2012-06-25 01:23:26 +0000
commit2e46b5a1c5e8af0870acbefd845753d594e15a23 (patch)
tree7138371468e241c2b0632efc6d46366ce5239528 /net/reposado/files/patch-reposadocommon.py
parentUpgrade to version 1.93, which contains a security fix among other changes. (diff)
Reposado is a set of tools written in Python that replicate the
key functionality of Mac OS X Server's Software Update Service. This enables you to host a local Apple Software Update Server on any hardware and OS of your choice. WWW: https://github.com/wdas/reposado PR: ports/169344 Submitted by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
Notes
Notes: svn path=/head/; revision=299917
Diffstat (limited to 'net/reposado/files/patch-reposadocommon.py')
-rw-r--r--net/reposado/files/patch-reposadocommon.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/reposado/files/patch-reposadocommon.py b/net/reposado/files/patch-reposadocommon.py
new file mode 100644
index 000000000000..59d38bd802cf
--- /dev/null
+++ b/net/reposado/files/patch-reposadocommon.py
@@ -0,0 +1,20 @@
+--- code/reposadolib/reposadocommon.py.org 2012-06-23 21:35:41.103519893 +0900
++++ code/reposadolib/reposadocommon.py 2012-06-23 21:43:57.289520798 +0900
+@@ -58,7 +58,7 @@
+
+ def prefsFilePath():
+ '''Returns path to our preferences file.'''
+- return os.path.join(get_main_dir(), 'preferences.plist')
++ return os.path.join('%%LOCALBASE%%/etc/', 'preferences.plist')
+
+
+ def pref(prefname):
+@@ -71,7 +71,7 @@
+ 'http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog',
+ 'http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog'],
+ 'PreferredLocalizations': ['English', 'en'],
+- 'CurlPath': '/usr/bin/curl'
++ 'CurlPath': '%%LOCALBASE%%/bin/curl'
+ }
+ try:
+ prefs = plistlib.readPlist(prefsFilePath())