Skip to content

Commit a331322

Browse files
authored
Merge pull request #2394 from pi-hole/development
Pi-hole FTL v6.1
2 parents b7eb53b + 75b8556 commit a331322

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1053
-944
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
uses: codespell-project/actions-codespell@master
2020
with:
2121
ignore_words_file: .github/.codespellignore
22-
skip: ./src/database/sqlite3.c,./src/database/sqlite3.h,./src/database/shell.c,./src/lua,./src/dnsmasq,./src/tre-regex,./.git,./test/libs,./src/webserver/civetweb,./src/zip/miniz,./src/api/docs/content/external,./src/database/sqlite3_rsync.c
22+
skip: ./src/database/sqlite3.c,./src/database/sqlite3.h,./src/database/shell.c,./src/lua,./src/dnsmasq,./src/tre-regex,./.git,./test/libs,./src/webserver/civetweb,./src/zip/miniz,./src/api/docs/content/external,./src/database/sqlite3_rsync.c,./package-lock.json
2323
exclude_file: .github/.codespellignore_lines

.github/workflows/openapi-validator.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: API validation
33
on: [push]
44

55
env:
6-
CI: true
6+
FORCE_COLOR: 2
77

88
jobs:
99
openapi-validator:
@@ -12,12 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Clone repository
15-
uses: actions/checkout@v4.1.7
15+
uses: actions/checkout@v4.2.2
1616

17-
- name: Set Node.js version
18-
uses: actions/setup-node@v4
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4.3.0
1919
with:
2020
node-version: "20"
21+
cache: npm
2122

2223
- name: Install npm dependencies
2324
run: npm ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ version~
1717
.vscode/*
1818
!.vscode/c_cpp_properties.json
1919
/build/
20+
.codechecker/
2021

2122
# __pycache__ files (API tests)
2223
__pycache__/

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ set(CMAKE_C_STANDARD 17)
1616

1717
project(PIHOLE_FTL C)
1818

19-
set(DNSMASQ_VERSION pi-hole-v2.91rc5+1)
19+
set(DNSMASQ_VERSION pi-hole-v2.91)
2020

2121
add_subdirectory(src)

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
<p align="center">
2-
<a href="https://pi-hole.net">
3-
<picture>
4-
<source media="(prefers-color-scheme: dark)" srcset="https://pi-hole.github.io/graphics/Vortex/Vortex_Vertical_wordmark_darkmode.png">
5-
<source media="(prefers-color-scheme: light)" srcset="https://pi-hole.github.io/graphics/Vortex/Vortex_Vertical_wordmark_lightmode.png">
6-
<img src="https://pi-hole.github.io/graphics/Vortex/Vortex_Vertical_wordmark_lightmode.png" width="80" alt="Pi-hole website">
7-
</picture>
2+
<a href="https://pi-hole.net/">
3+
<img src="https://raw.githubusercontent.com/pi-hole/graphics/refs/heads/master/Vortex/vortex_with_text.svg" alt="Pi-hole logo" width="80" height="128">
84
</a>
9-
<br/>
10-
<b>Network-wide ad blocking via your own Linux hardware</b><br/><br/>
11-
<a href="https://pi-hole.net">
12-
<picture>
13-
<source media="(prefers-color-scheme: dark)" srcset="https://pi-hole.github.io/graphics/FTLDNS/FTLDNS_darkmode.png">
14-
<source media="(prefers-color-scheme: light)" srcset="https://pi-hole.github.io/graphics/FTLDNS/FTLDNS.png">
15-
<img src="https://pi-hole.github.io/graphics/FTLDNS/FTLDNS.png" alt="FTLDNS">
16-
</picture>
5+
<br>
6+
<strong>Network-wide ad blocking via your own Linux hardware</strong>
7+
<br>
8+
<br>
9+
<a href="https://pi-hole.net/">
10+
<img src="https://raw.githubusercontent.com/pi-hole/graphics/refs/heads/master/FTLDNS/FTLDNS.svg" alt="FTLDNS logo" width="500" height="128">
1711
</a>
18-
<br/>
1912
</p>
2013

2114
FTLDNS (`pihole-FTL`) provides an interactive API and also generates statistics for Pi-hole[®](https://pi-hole.net/trademark-rules-and-brand-guidelines/)'s Web interface.
@@ -36,4 +29,4 @@ FTLDNS (`pihole-FTL`) is automatically installed when installing Pi-hole.
3629

3730
### IMPORTANT
3831

39-
>FTLDNS will *disable* any existing installations of `dnsmasq`. This is because FTLDNS *is* `dnsmasq` + Pi-hole's code, so both cannot run simultaneously.
32+
>FTLDNS will *disable* any existing installations of `dnsmasq`. This is because FTLDNS *is* `dnsmasq` + Pi-hole's code, so both cannot run simultaneously.

build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,13 @@ else
157157
cmake ..
158158
fi
159159

160-
# Build the sources with the number of available cores
161-
cmake --build . -- -j "$(nproc)"
160+
# If MAKEFLAGS is unset, we set it to "-j$(nproc)"
161+
if [[ -z "${MAKEFLAGS}" ]]; then
162+
MAKEFLAGS="-j$(nproc)"
163+
fi
164+
165+
# Build the sources
166+
cmake --build . -- ${MAKEFLAGS}
162167

163168
# Checksum verification
164169
./pihole-FTL verify

0 commit comments

Comments
 (0)