Skip to content

Commit

Permalink
adguardhome: Bump to 0.107.55
Browse files Browse the repository at this point in the history
Bump version to 0.107.55, change log in links below.

Use source from upstream tag tarballs instead of Git repo.
Move working directory from `/var/adguardhome` to
`/var/lib/adguardhome`, according to Linux FHS.
Add option to store PID file, defaulting to `/run/adguardhome.pid`.

Link: https://github.com/AdguardTeam/AdGuardHome/milestone/90?closed=1
Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
  • Loading branch information
Ra2-IFV committed Dec 22, 2024
1 parent ad1b32b commit e150e82
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 4 additions & 5 deletions net/adguardhome/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=adguardhome
PKG_VERSION:=0.107.53
PKG_VERSION:=0.107.55
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/AdguardTeam/AdGuardHome
PKG_MIRROR_HASH:=d74702bc4f8b82bda64a0a937a98e73ee602c21b9361c0c683671212e03e9316
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/AdGuardHome/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=557bfd8bae53361ba453ba2703a47f1b23fcf0a2141a96c0802d283c183073b2

PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILES:=LICENSE.txt
Expand Down
5 changes: 3 additions & 2 deletions net/adguardhome/files/adguardhome.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
config adguardhome config
# Where to store persistent data by AdGuard Home
option workdir /var/adguardhome
option config /etc/adguardhome.yaml
# Where to store persistent data by AdGuard Home
option workdir /var/lib/adguardhome
option pidfile /run/adguardhome.pid
5 changes: 3 additions & 2 deletions net/adguardhome/files/adguardhome.init
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ start_service() {
fi

config_load adguardhome
config_get CONFIG_FILE config config
config_get PID_FILE config pidfile
config_get WORK_DIR config workdir
config_get CONFIG_FILE config config "/etc/adguardhome.yaml"

[ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR"

procd_open_instance
procd_set_param command "$PROG" -c "$CONFIG_FILE" -w "$WORK_DIR" --no-check-update
procd_set_param command "$PROG" -c "$CONFIG_FILE" -w "$WORK_DIR" --pidfile "$PID_FILE" --no-check-update
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
Expand Down

0 comments on commit e150e82

Please sign in to comment.