mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
net-dns/AdGuardHome: update to 0.107.57
1. Use upstream provided prebuilt frontend instead of building on our own. Reasons: * one less dependency of nodejs/npm * reduced size of distfile from 30MiB to 3MiB * easier and faster packaging * performance is not impacted as build output is just js/css files * no more breakage due to changes in nodejs versions 2. updated systemd service unit to latest changes Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
24
net-dns/AdGuardHome/files/AdGuardHome-0.107.57.service
Normal file
24
net-dns/AdGuardHome/files/AdGuardHome-0.107.57.service
Normal file
@@ -0,0 +1,24 @@
|
||||
# This unit is inspired from
|
||||
# `AdGuardHome -s install` on systemd machine and
|
||||
# https://aur.archlinux.org/cgit/aur.git/tree/adguardhome.service?h=adguardhome
|
||||
|
||||
[Unit]
|
||||
Description=Network-wide ads & trackers blocking DNS server with WebUI
|
||||
After=network-online.target
|
||||
ConditionFileIsExecutable=/usr/bin/AdGuardHome
|
||||
|
||||
[Service]
|
||||
StartLimitInterval=5
|
||||
StartLimitBurst=10
|
||||
DynamicUser=true
|
||||
StateDirectory=AdGuardHome
|
||||
WorkingDirectory=/var/lib/AdGuardHome
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
ExecStart=/usr/bin/AdGuardHome --no-check-update --work-dir /var/lib/AdGuardHome -s run
|
||||
ExecReload=/usr/bin/AdGuardHome -s reload
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user