Browse code
Added README and COPYING
fiddlerwoaroof authored on 03/10/2016 00:15:52
Showing 2 changed files
Showing 2 changed files
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,310 @@ |
1 |
+(c) 2016 Edward Langley |
|
2 |
+1. Definitions |
|
3 |
+ |
|
4 |
+1.1. “Contributor” |
|
5 |
+ |
|
6 |
+ means each individual or legal entity that creates, contributes to |
|
7 |
+the creation of, or owns Covered Software. 1.2. “Contributor Version” |
|
8 |
+ |
|
9 |
+ means the combination of the Contributions of others (if any) used |
|
10 |
+by a Contributor and that particular Contributor’s Contribution. |
|
11 |
+1.3. “Contribution” |
|
12 |
+ |
|
13 |
+ means Covered Software of a particular Contributor. 1.4. “Covered |
|
14 |
+Software” |
|
15 |
+ |
|
16 |
+ means Source Code Form to which the initial Contributor has |
|
17 |
+attached the notice in Exhibit A, the Executable Form of such Source |
|
18 |
+Code Form, and Modifications of such Source Code Form, in each case |
|
19 |
+including portions thereof. 1.5. “Incompatible With Secondary |
|
20 |
+Licenses” |
|
21 |
+ |
|
22 |
+ means |
|
23 |
+ |
|
24 |
+ that the initial Contributor has attached the notice described |
|
25 |
+ in Exhibit B to the Covered Software; or |
|
26 |
+ |
|
27 |
+ that the Covered Software was made available under the terms |
|
28 |
+ of version 1.1 or earlier of the License, but not also under |
|
29 |
+ the terms of a Secondary License. |
|
30 |
+ |
|
31 |
+1.6. “Executable Form” |
|
32 |
+ |
|
33 |
+ means any form of the work other than Source Code Form. |
|
34 |
+1.7. “Larger Work” |
|
35 |
+ |
|
36 |
+ means a work that combines Covered Software with other material, |
|
37 |
+in a separate file or files, that is not Covered Software. |
|
38 |
+1.8. “License” |
|
39 |
+ |
|
40 |
+ means this document. |
|
41 |
+1.9. “Licensable” |
|
42 |
+ |
|
43 |
+ means having the right to grant, to the maximum extent possible, |
|
44 |
+whether at the time of the initial grant or subsequently, any and all |
|
45 |
+of the rights conveyed by this License. 1.10. “Modifications” |
|
46 |
+ |
|
47 |
+ means any of the following: |
|
48 |
+ |
|
49 |
+ any file in Source Code Form that results from an addition to, |
|
50 |
+ deletion from, or modification of the contents of Covered |
|
51 |
+ Software; or |
|
52 |
+ |
|
53 |
+ any new file in Source Code Form that contains any Covered Software. |
|
54 |
+ |
|
55 |
+1.11. “Patent Claims” of a Contributor |
|
56 |
+ |
|
57 |
+ means any patent claim(s), including without limitation, method, |
|
58 |
+process, and apparatus claims, in any patent Licensable by such |
|
59 |
+Contributor that would be infringed, but for the grant of the License, |
|
60 |
+by the making, using, selling, offering for sale, having made, import, |
|
61 |
+or transfer of either its Contributions or its Contributor Version. |
|
62 |
+1.12. “Secondary License” |
|
63 |
+ |
|
64 |
+ means either the GNU General Public License, Version 2.0, the GNU |
|
65 |
+Lesser General Public License, Version 2.1, the GNU Affero General |
|
66 |
+Public License, Version 3.0, or any later versions of those licenses. |
|
67 |
+1.13. “Source Code Form” |
|
68 |
+ |
|
69 |
+ means the form of the work preferred for making modifications. |
|
70 |
+1.14. “You” (or “Your”) |
|
71 |
+ |
|
72 |
+ means an individual or a legal entity exercising rights under this |
|
73 |
+ License. For legal entities, “You” includes any entity that |
|
74 |
+ controls, is controlled by, or is under common control with |
|
75 |
+ You. For purposes of this definition, “control” means (a) the |
|
76 |
+ power, direct or indirect, to cause the direction or management of |
|
77 |
+ such entity, whether by contract or otherwise, or (b) ownership of |
|
78 |
+ more than fifty percent (50%) of the outstanding shares or |
|
79 |
+ beneficial ownership of such entity. |
|
80 |
+ |
|
81 |
+2. License Grants and Conditions |
|
82 |
+2.1. Grants |
|
83 |
+ |
|
84 |
+Each Contributor hereby grants You a world-wide, royalty-free, |
|
85 |
+non-exclusive license: |
|
86 |
+ |
|
87 |
+ under intellectual property rights (other than patent or |
|
88 |
+ trademark) Licensable by such Contributor to use, reproduce, make |
|
89 |
+ available, modify, display, perform, distribute, and otherwise |
|
90 |
+ exploit its Contributions, either on an unmodified basis, with |
|
91 |
+ Modifications, or as part of a Larger Work; and |
|
92 |
+ |
|
93 |
+ under Patent Claims of such Contributor to make, use, sell, offer |
|
94 |
+ for sale, have made, import, and otherwise transfer either its |
|
95 |
+ Contributions or its Contributor Version. |
|
96 |
+ |
|
97 |
+2.2. Effective Date |
|
98 |
+ |
|
99 |
+The licenses granted in Section 2.1 with respect to any Contribution |
|
100 |
+become effective for each Contribution on the date the Contributor |
|
101 |
+first distributes such Contribution. 2.3. Limitations on Grant Scope |
|
102 |
+ |
|
103 |
+The licenses granted in this Section 2 are the only rights granted |
|
104 |
+under this License. No additional rights or licenses will be implied |
|
105 |
+from the distribution or licensing of Covered Software under this |
|
106 |
+License. Notwithstanding Section 2.1(b) above, no patent license is |
|
107 |
+granted by a Contributor: |
|
108 |
+ |
|
109 |
+ for any code that a Contributor has removed from Covered Software; or |
|
110 |
+ |
|
111 |
+ for infringements caused by: (i) Your and any other third party’s |
|
112 |
+ modifications of Covered Software, or (ii) the combination of its |
|
113 |
+ Contributions with other software (except as part of its |
|
114 |
+ Contributor Version); or |
|
115 |
+ |
|
116 |
+ under Patent Claims infringed by Covered Software in the absence |
|
117 |
+ of its Contributions. |
|
118 |
+ |
|
119 |
+This License does not grant any rights in the trademarks, service |
|
120 |
+marks, or logos of any Contributor (except as may be necessary to |
|
121 |
+comply with the notice requirements in Section 3.4). 2.4. Subsequent |
|
122 |
+Licenses |
|
123 |
+ |
|
124 |
+No Contributor makes additional grants as a result of Your choice to |
|
125 |
+distribute the Covered Software under a subsequent version of this |
|
126 |
+License (see Section 10.2) or under the terms of a Secondary License |
|
127 |
+(if permitted under the terms of Section 3.3). 2.5. Representation |
|
128 |
+ |
|
129 |
+Each Contributor represents that the Contributor believes its |
|
130 |
+Contributions are its original creation(s) or it has sufficient rights |
|
131 |
+to grant the rights to its Contributions conveyed by this License. |
|
132 |
+2.6. Fair Use |
|
133 |
+ |
|
134 |
+This License is not intended to limit any rights You have under |
|
135 |
+applicable copyright doctrines of fair use, fair dealing, or other |
|
136 |
+equivalents. 2.7. Conditions |
|
137 |
+ |
|
138 |
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted |
|
139 |
+in Section 2.1. 3. Responsibilities 3.1. Distribution of Source Form |
|
140 |
+ |
|
141 |
+All distribution of Covered Software in Source Code Form, including |
|
142 |
+any Modifications that You create or to which You contribute, must be |
|
143 |
+under the terms of this License. You must inform recipients that the |
|
144 |
+Source Code Form of the Covered Software is governed by the terms of |
|
145 |
+this License, and how they can obtain a copy of this License. You may |
|
146 |
+not attempt to alter or restrict the recipients’ rights in the Source |
|
147 |
+Code Form. 3.2. Distribution of Executable Form |
|
148 |
+ |
|
149 |
+If You distribute Covered Software in Executable Form then: |
|
150 |
+ |
|
151 |
+ such Covered Software must also be made available in Source Code |
|
152 |
+ Form, as described in Section 3.1, and You must inform recipients |
|
153 |
+ of the Executable Form how they can obtain a copy of such Source |
|
154 |
+ Code Form by reasonable means in a timely manner, at a charge no |
|
155 |
+ more than the cost of distribution to the recipient; and |
|
156 |
+ |
|
157 |
+ You may distribute such Executable Form under the terms of this |
|
158 |
+ License, or sublicense it under different terms, provided that the |
|
159 |
+ license for the Executable Form does not attempt to limit or alter |
|
160 |
+ the recipients’ rights in the Source Code Form under this License. |
|
161 |
+ |
|
162 |
+3.3. Distribution of a Larger Work |
|
163 |
+ |
|
164 |
+You may create and distribute a Larger Work under terms of Your |
|
165 |
+choice, provided that You also comply with the requirements of this |
|
166 |
+License for the Covered Software. If the Larger Work is a combination |
|
167 |
+of Covered Software with a work governed by one or more Secondary |
|
168 |
+Licenses, and the Covered Software is not Incompatible With Secondary |
|
169 |
+Licenses, this License permits You to additionally distribute such |
|
170 |
+Covered Software under the terms of such Secondary License(s), so that |
|
171 |
+the recipient of the Larger Work may, at their option, further |
|
172 |
+distribute the Covered Software under the terms of either this License |
|
173 |
+or such Secondary License(s). 3.4. Notices |
|
174 |
+ |
|
175 |
+You may not remove or alter the substance of any license notices |
|
176 |
+(including copyright notices, patent notices, disclaimers of warranty, |
|
177 |
+or limitations of liability) contained within the Source Code Form of |
|
178 |
+the Covered Software, except that You may alter any license notices to |
|
179 |
+the extent required to remedy known factual inaccuracies. |
|
180 |
+3.5. Application of Additional Terms |
|
181 |
+ |
|
182 |
+You may choose to offer, and to charge a fee for, warranty, support, |
|
183 |
+indemnity or liability obligations to one or more recipients of |
|
184 |
+Covered Software. However, You may do so only on Your own behalf, and |
|
185 |
+not on behalf of any Contributor. You must make it absolutely clear |
|
186 |
+that any such warranty, support, indemnity, or liability obligation is |
|
187 |
+offered by You alone, and You hereby agree to indemnify every |
|
188 |
+Contributor for any liability incurred by such Contributor as a result |
|
189 |
+of warranty, support, indemnity or liability terms You offer. You may |
|
190 |
+include additional disclaimers of warranty and limitations of |
|
191 |
+liability specific to any jurisdiction. 4. Inability to Comply Due to |
|
192 |
+Statute or Regulation |
|
193 |
+ |
|
194 |
+If it is impossible for You to comply with any of the terms of this |
|
195 |
+License with respect to some or all of the Covered Software due to |
|
196 |
+statute, judicial order, or regulation then You must: (a) comply with |
|
197 |
+the terms of this License to the maximum extent possible; and (b) |
|
198 |
+describe the limitations and the code they affect. Such description |
|
199 |
+must be placed in a text file included with all distributions of the |
|
200 |
+Covered Software under this License. Except to the extent prohibited |
|
201 |
+by statute or regulation, such description must be sufficiently |
|
202 |
+detailed for a recipient of ordinary skill to be able to understand |
|
203 |
+it. 5. Termination |
|
204 |
+ |
|
205 |
+5.1. The rights granted under this License will terminate |
|
206 |
+automatically if You fail to comply with any of its terms. However, if |
|
207 |
+You become compliant, then the rights granted under this License from |
|
208 |
+a particular Contributor are reinstated (a) provisionally, unless and |
|
209 |
+until such Contributor explicitly and finally terminates Your grants, |
|
210 |
+and (b) on an ongoing basis, if such Contributor fails to notify You |
|
211 |
+of the non-compliance by some reasonable means prior to 60 days after |
|
212 |
+You have come back into compliance. Moreover, Your grants from a |
|
213 |
+particular Contributor are reinstated on an ongoing basis if such |
|
214 |
+Contributor notifies You of the non-compliance by some reasonable |
|
215 |
+means, this is the first time You have received notice of |
|
216 |
+non-compliance with this License from such Contributor, and You become |
|
217 |
+compliant prior to 30 days after Your receipt of the notice. |
|
218 |
+ |
|
219 |
+5.2. If You initiate litigation against any entity by asserting a |
|
220 |
+patent infringement claim (excluding declaratory judgment actions, |
|
221 |
+counter-claims, and cross-claims) alleging that a Contributor Version |
|
222 |
+directly or indirectly infringes any patent, then the rights granted |
|
223 |
+to You by any and all Contributors for the Covered Software under |
|
224 |
+Section 2.1 of this License shall terminate. |
|
225 |
+ |
|
226 |
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all |
|
227 |
+end user license agreements (excluding distributors and resellers) |
|
228 |
+which have been validly granted by You or Your distributors under this |
|
229 |
+License prior to termination shall survive termination. 6. Disclaimer |
|
230 |
+of Warranty |
|
231 |
+ |
|
232 |
+Covered Software is provided under this License on an “as is” basis, |
|
233 |
+without warranty of any kind, either expressed, implied, or statutory, |
|
234 |
+including, without limitation, warranties that the Covered Software is |
|
235 |
+free of defects, merchantable, fit for a particular purpose or |
|
236 |
+non-infringing. The entire risk as to the quality and performance of |
|
237 |
+the Covered Software is with You. Should any Covered Software prove |
|
238 |
+defective in any respect, You (not any Contributor) assume the cost of |
|
239 |
+any necessary servicing, repair, or correction. This disclaimer of |
|
240 |
+warranty constitutes an essential part of this License. No use of any |
|
241 |
+Covered Software is authorized under this License except under this |
|
242 |
+disclaimer. 7. Limitation of Liability |
|
243 |
+ |
|
244 |
+Under no circumstances and under no legal theory, whether tort |
|
245 |
+(including negligence), contract, or otherwise, shall any Contributor, |
|
246 |
+or anyone who distributes Covered Software as permitted above, be |
|
247 |
+liable to You for any direct, indirect, special, incidental, or |
|
248 |
+consequential damages of any character including, without limitation, |
|
249 |
+damages for lost profits, loss of goodwill, work stoppage, computer |
|
250 |
+failure or malfunction, or any and all other commercial damages or |
|
251 |
+losses, even if such party shall have been informed of the possibility |
|
252 |
+of such damages. This limitation of liability shall not apply to |
|
253 |
+liability for death or personal injury resulting from such party’s |
|
254 |
+negligence to the extent applicable law prohibits such |
|
255 |
+limitation. Some jurisdictions do not allow the exclusion or |
|
256 |
+limitation of incidental or consequential damages, so this exclusion |
|
257 |
+and limitation may not apply to You. 8. Litigation |
|
258 |
+ |
|
259 |
+Any litigation relating to this License may be brought only in the |
|
260 |
+courts of a jurisdiction where the defendant maintains its principal |
|
261 |
+place of business and such litigation shall be governed by laws of |
|
262 |
+that jurisdiction, without reference to its conflict-of-law |
|
263 |
+provisions. Nothing in this Section shall prevent a party’s ability to |
|
264 |
+bring cross-claims or counter-claims. 9. Miscellaneous |
|
265 |
+ |
|
266 |
+This License represents the complete agreement concerning the subject |
|
267 |
+matter hereof. If any provision of this License is held to be |
|
268 |
+unenforceable, such provision shall be reformed only to the extent |
|
269 |
+necessary to make it enforceable. Any law or regulation which provides |
|
270 |
+that the language of a contract shall be construed against the drafter |
|
271 |
+shall not be used to construe this License against a Contributor. |
|
272 |
+10. Versions of the License 10.1. New Versions |
|
273 |
+ |
|
274 |
+Mozilla Foundation is the license steward. Except as provided in |
|
275 |
+Section 10.3, no one other than the license steward has the right to |
|
276 |
+modify or publish new versions of this License. Each version will be |
|
277 |
+given a distinguishing version number. 10.2. Effect of New Versions |
|
278 |
+ |
|
279 |
+You may distribute the Covered Software under the terms of the version |
|
280 |
+of the License under which You originally received the Covered |
|
281 |
+Software, or under the terms of any subsequent version published by |
|
282 |
+the license steward. 10.3. Modified Versions |
|
283 |
+ |
|
284 |
+If you create software not governed by this License, and you want to |
|
285 |
+create a new license for such software, you may create and use a |
|
286 |
+modified version of this License if you rename the license and remove |
|
287 |
+any references to the name of the license steward (except to note that |
|
288 |
+such modified license differs from this License). 10.4. Distributing |
|
289 |
+Source Code Form that is Incompatible With Secondary Licenses |
|
290 |
+ |
|
291 |
+If You choose to distribute Source Code Form that is Incompatible With |
|
292 |
+Secondary Licenses under the terms of this version of the License, the |
|
293 |
+notice described in Exhibit B of this License must be attached. |
|
294 |
+Exhibit A - Source Code Form License Notice |
|
295 |
+ |
|
296 |
+ This Source Code Form is subject to the terms of the Mozilla |
|
297 |
+ Public License, v. 2.0. If a copy of the MPL was not distributed |
|
298 |
+ with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
299 |
+ |
|
300 |
+If it is not possible or desirable to put the notice in a particular |
|
301 |
+file, then You may include the notice in a location (such as a LICENSE |
|
302 |
+file in a relevant directory) where a recipient would be likely to |
|
303 |
+look for such a notice. |
|
304 |
+ |
|
305 |
+You may add additional accurate notices of copyright ownership. |
|
306 |
+Exhibit B - “Incompatible With Secondary Licenses” Notice |
|
307 |
+ |
|
308 |
+ This Source Code Form is “Incompatible With Secondary Licenses”, |
|
309 |
+ as defined by the Mozilla Public License, v. 2.0. |
|
310 |
+ |
0 | 311 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
1 |
+* Introduction |
|
2 |
+ |
|
3 |
+This is a minimal implementation of a syslog-like protocol that is |
|
4 |
+tested against a minimal syslog daemon included with Gentoo, rsyslogd |
|
5 |
+and OpenWRT's log daemon. This also includes a command line program |
|
6 |
+that listens for incoming syslog connections, pretty prints them and |
|
7 |
+then saves them to an sqlite db in /tmp/logs.db. |
|
8 |
+ |
|
9 |
+By default, this client includes the ability to recognize dnsmasq's log |
|
10 |
+entries and record them to their own tables. |
|
11 |
+ |
|
12 |
+The db needs to be precreated with this schema: |
|
13 |
+ |
|
14 |
+create table messages (severity int, facility int, tag text, pid int, message text, host text, ts datetime default current_timestamp); |
|
15 |
+create table dns_query (query_type text, request text, requester text, added text default current_timestamp); |
|
16 |
+create table dns_reply (query text, reply text, added datetime default current_timestamp); |
|
17 |
+ |
|
18 |
+ |
|
19 |
+* TODO |
|
20 |
+ |
|
21 |
+- other db backends |
|
22 |
+- customizable db paths |