Codebase list python-faraday / e800072
Drop patch modify-configuration.patch: merged by upstream Sophie Brun 7 years ago
4 changed file(s) with 34 addition(s) and 73 deletion(s). Raw diff Collapse all Expand all
00 python-faraday (2.1.0-0kali1) kali-dev; urgency=medium
11
22 * Import new upstream release
3 * Drop patch modify-configuration.patch: merged by upstream
34
45 -- Sophie Brun <[email protected]> Fri, 23 Sep 2016 12:06:29 +0200
56
+0
-45
debian/patches/modify-configuration.patch less more
0 Description: Change the initial configuration
1 Use the default port of couchdb: port is 5984 and ssl_port is 6984.
2 Configure by default couchdb and server without password and user
3 Author: Sophie Brun <[email protected]>
4 Last-Update: 2016-08-18
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- a/server/default.ini
8 +++ b/server/default.ini
9 @@ -1,18 +1,18 @@
10 [faraday_server]
11 -port=5984
12 +port=5985
13 bind_address=localhost
14
15 [ssl]
16 -port=6984
17 +port=6985
18 certificate=
19 keyfile=
20 ;keyfile_pwd=''
21
22 [couchdb]
23 host=localhost
24 -port=5985
25 -ssl_port=6985
26 -user=faraday
27 -password=changeme
28 +port=5984
29 +ssl_port=6984
30 +user=
31 +password=
32 protocol=http
33
34 --- a/config/default.xml
35 +++ b/config/default.xml
36 @@ -30,7 +30,7 @@
37 <repo_url type="svn"></repo_url>
38 <repo_user>u</repo_user>
39 <repo_password></repo_password>
40 - <couch_uri/>
41 + <couch_uri>http://127.0.0.1:5985</couch_uri>
42 <couch_is_replicated/>
43 <couch_replics/>
44
77 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
88 --- a/faraday.py
99 +++ b/faraday.py
10 @@ -126,10 +126,6 @@ def getParserArgs():
10 @@ -125,10 +125,6 @@ def getParserArgs():
1111 default=False,
1212 help="Ignore python dependencies resolution.")
1313
1818 parser.add_argument('--cert', action="store", dest="cert_path",
1919 default=None,
2020 help="Path to the valid CouchDB certificate")
21 @@ -199,44 +195,6 @@ def query_user_bool(question, default=Tr
21 @@ -198,44 +194,6 @@ def query_user_bool(question, default=Tr
2222 "(or 'y' or 'n').\n")
2323
2424
6363 def startProfiler(app, output, depth):
6464 """Profiler handler.
6565
66 @@ -458,40 +416,6 @@ _/ ____\_____ ____________ __| _/__
66 @@ -457,40 +415,6 @@ _/ ____\_____ ____________ __| _/__
6767 logger.info("Starting Faraday IDE.")
6868
6969
104104 def checkCouchUrl():
105105 import requests
106106 try:
107 @@ -507,24 +431,6 @@ def checkCouchUrl():
107 @@ -506,24 +430,6 @@ def checkCouchUrl():
108108 # Non fatal error
109109 pass
110110
129129 def init():
130130 """Initializes what is needed before starting.
131131
132 @@ -551,20 +457,12 @@ def main():
132 @@ -550,20 +456,12 @@ def main():
133133 os.chdir(FARADAY_BASE)
134134
135135 init()
158158 if __name__ == '__main__':
159159 --- a/faraday-server.py
160160 +++ b/faraday-server.py
161 @@ -54,36 +54,8 @@ def setup_environment(cli_arguments):
162 if cli_arguments.debug:
163 set_logging_level(server.config.DEBUG)
164
161 @@ -57,42 +57,12 @@ def setup_environment():
162 # Configuration files generation
163 server.config.copy_default_config_to_local()
164
165 - # Dependencies installation
165166 - missing_packages = check_dependencies()
166 -
167167 - if len(missing_packages) > 0:
168 - answer = ask_to_install(missing_packages)
169 - if answer:
170 - logger.info(
171 - "Dependencies installed. Please launch Faraday Server again")
172 - sys.exit(0)
173 - else:
174 - logger.error("Dependencies not met")
175 - sys.exit(1)
176 -
168 - install_packages(missing_packages)
169 -
170 # Web configuration file generation
177171 server.config.gen_web_config()
172
173 # Reports DB creation
174 server.couchdb.push_reports()
178175
179176 -def check_dependencies():
180177 - checker = DependencyChecker(server.config.REQUIREMENTS_FILE)
181178 - missing = checker.check_dependencies()
182179 - return missing
183180 -
181 -def install_packages(packages):
182 - if ask_to_install(packages):
183 - logger.info("Dependencies installed. Please launch Faraday Server again")
184 - sys.exit(0)
185 - else:
186 - logger.error("Dependencies not met")
187 - sys.exit(1)
188 -
184189 -def ask_to_install(missing_packages):
185 - logger = get_logger(__name__)
186190 - logger.warning("The following packages are not installed:")
187191 - for package in missing_packages:
188192 - logger.warning("%s" % package)
189 - res = query_yes_no("Do you want to install them?", default="no")
190 - if res:
193 -
194 - if query_yes_no("Do you want to install them?", default="no"):
191195 - checker = DependencyChecker(server.config.REQUIREMENTS_FILE)
192196 - checker.install_packages(missing_packages)
193 - return res
194 -
195 def setup_and_run_server(cli_arguments):
196 import server.web
197 import server.database
197 - return True
198 -
199 - return False
200 -
201 def import_workspaces():
202 import server.importer
203 server.importer.import_workspaces()
00 remove-unwanted-checks.diff
11 copy-images-directory.patch
2 modify-configuration.patch