boB Rudis 9 months ago
parent
commit
1c7c383881
No known key found for this signature in database
3 changed files with 29 additions and 8 deletions
  1. 8
    1
      .travis.yml
  2. 5
    0
      README.Rmd
  3. 16
    7
      README.md

+ 8
- 1
.travis.yml View File

@@ -2,5 +2,12 @@ language: R
2 2
 sudo: false
3 3
 cache: packages
4 4
 
5
+before_install:
6
+  - sudo apt-get install -y libgetdns-dev libidn2-dev libunbound-dev
7
+
8
+addons:
9
+  apt:
10
+    update: true
11
+
5 12
 after_success:
6
-- Rscript -e 'covr::codecov()'
13
+  - Rscript -e 'covr::codecov()'

+ 5
- 0
README.Rmd View File

@@ -28,6 +28,11 @@ Requires [`getdns`](https://getdnsapi.net/) to be installed and available for co
28 28
 - Install `libgetdns-dev` on debian/ubuntu
29 29
 - (Nothing to see here Windows folks stuck in a backwards ecosysem)
30 30
 
31
+You're going to need version 1.5.1 of `getdns` for this package to install.
32
+
33
+I've gotten this running on macOS and Ubuntu 16.04. For the latter I had to ensure `libidn2-dev` and
34
+`libunbound-dev` were installed then had to grab the 1.5.1 tarball (e.g. `aria2c https://getdnsapi.net/releases/getdns-1-5-1/getdns-1.5.1.tar.gz`), extract it and `config`/`make`/`make install` (plus `ldconfig` after).
35
+
31 36
 ## TODO/WAT
32 37
 
33 38
 I finally grok the getdns api so the package api is going to change wildly and fast. It's only going to support DNS over TLS but will support all types of DNS queries. 

+ 16
- 7
README.md View File

@@ -23,6 +23,15 @@ available for compilation (no guard rails setup yet):
23 23
   - Install `libgetdns-dev` on debian/ubuntu
24 24
   - (Nothing to see here Windows folks stuck in a backwards ecosysem)
25 25
 
26
+You’re going to need version 1.5.1 of `getdns` for this package to
27
+install.
28
+
29
+I’ve gotten this running on macOS and Ubuntu 16.04. For the latter I had
30
+to ensure `libidn2-dev` and `libunbound-dev` were installed then had to
31
+grab the 1.5.1 tarball (e.g. `aria2c
32
+https://getdnsapi.net/releases/getdns-1-5-1/getdns-1.5.1.tar.gz`),
33
+extract it and `config`/`make`/`make install` (plus `ldconfig` after).
34
+
26 35
 ## TODO/WAT
27 36
 
28 37
 I finally grok the getdns api so the package api is going to change
@@ -144,9 +153,9 @@ gdns_lib_version()
144 153
 ## [1] "2604:a880:800:10::6bc:2001" "104.236.112.222"
145 154
 
146 155
 (gdns_get_address(x, "yahoo.com"))
147
-##  [1] "2001:4998:58:1836::11" "2001:4998:58:1836::10" "2001:4998:c:1023::5"   "2001:4998:c:1023::4"  
148
-##  [5] "2001:4998:44:41d::3"   "2001:4998:44:41d::4"   "98.138.219.232"        "98.138.219.231"       
149
-##  [9] "98.137.246.8"          "98.137.246.7"          "72.30.35.10"           "72.30.35.9"
156
+##  [1] "2001:4998:58:1836::10" "2001:4998:c:1023::5"   "2001:4998:44:41d::4"   "2001:4998:c:1023::4"  
157
+##  [5] "2001:4998:44:41d::3"   "2001:4998:58:1836::11" "98.137.246.8"          "98.137.246.7"         
158
+##  [9] "98.138.219.232"        "98.138.219.231"        "72.30.35.9"            "72.30.35.10"
150 159
 
151 160
 (gdns_get_address(x, "yahoo.commmm"))
152 161
 ## character(0)
@@ -159,7 +168,7 @@ str(leno <- gdns_query(x, "lenovo.com", "txt"), 1)
159 168
 ## List of 5
160 169
 ##  $ answer_type   : int 800
161 170
 ##  $ canonical_name: chr "lenovo.com."
162
-##  $ replies_full  : int [1, 1:600] 55 84 129 128 0 1 0 8 0 0 ...
171
+##  $ replies_full  : int [1, 1:600] 14 77 129 128 0 1 0 8 0 0 ...
163 172
 ##  $ replies_tree  :'data.frame':  1 obs. of  7 variables:
164 173
 ##  $ status        : int 900
165 174
 
@@ -181,9 +190,9 @@ Yep. Advertising even in DNS `TXT` records (see item number
181 190
 
182 191
 | Lang | \# Files |  (%) | LoC |  (%) | Blank lines |  (%) | \# Lines |  (%) |
183 192
 | :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
184
-| C++  |        3 | 0.25 | 240 | 0.59 |          66 | 0.50 |       61 | 0.20 |
185
-| R    |        8 | 0.67 | 154 | 0.38 |          20 | 0.15 |      168 | 0.54 |
186
-| Rmd  |        1 | 0.08 |  16 | 0.04 |          46 | 0.35 |       81 | 0.26 |
193
+| C++  |        3 | 0.25 | 240 | 0.59 |          66 | 0.49 |       61 | 0.19 |
194
+| R    |        8 | 0.67 | 154 | 0.38 |          20 | 0.15 |      171 | 0.54 |
195
+| Rmd  |        1 | 0.08 |  16 | 0.04 |          48 | 0.36 |       84 | 0.27 |
187 196
 
188 197
 ## Code of Conduct
189 198
 

Loading…
Cancel
Save