forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14475bb
commit f17ea00
Showing
8 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
PKG_NAME = adguardhome | ||
PKG_VERS = 0.107.48 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://github.com/AdguardTeam/$(PKG_NAME)/archive/refs/tags | ||
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
BUILD_DEPENDS = native/go | ||
|
||
HOMEPAGE = https://github.com/AdguardTeam/$(PKG_NAME) | ||
COMMENT = Network-wide ads & trackers blocking DNS server | ||
LICENSE = GPL-3.0 license | ||
|
||
GO_SRC_DIR = $(WORK_DIR)/AdGuardHome-$(PKG_VERS) | ||
GO_BIN_DIR = $(GO_SRC_DIR)/$(PKG_NAME) | ||
|
||
include ../../mk/spksrc.cross-go.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin:bin/adguardhome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
adguardhome-0.107.48.tar.gz SHA1 9d3adecba9e799160ed25292d48cf1ef4386e25a | ||
adguardhome-0.107.48.tar.gz SHA256 189afe8ccc4efd229c3554d812f590cc8727e966c05a6129d444c88a905b83a1 | ||
adguardhome-0.107.48.tar.gz MD5 515ff04dd9bb3884605269fd635c9be6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
SPK_NAME = adguardhome | ||
SPK_VERS = 0.107.48 | ||
SPK_REV = 0 | ||
SPK_ICON = src/adguardhome.png | ||
|
||
DEPENDS = cross/adguardhome | ||
UNSUPPORTED_ARCHS = $(PPC_ARCHS) | ||
|
||
MAINTAINER = publicarray | ||
DISPLAY_NAME = AdGuardHome | ||
DESCRIPTION = "Network-wide ads & trackers blocking DNS server" | ||
HOMEPAGE = https://adguard.com/en/adguard-home/overview.html | ||
LICENSE = Apache-2.0 | ||
CHANGELOG = "First Release" | ||
|
||
CONF_DIR = src/conf | ||
STARTABLE = yes | ||
SERVICE_USER = auto | ||
SERVICE_SETUP = src/service-setup.sh | ||
|
||
SERVICE_PORT = 6053 | ||
SERVICE_PORT_TITLE = $(DISPLAY_NAME) | ||
|
||
# Admin link for in DSM UI | ||
ADMIN_PORT = $(SERVICE_PORT) | ||
|
||
POST_STRIP_TARGET = adguardhome_extra_install | ||
|
||
include ../../mk/spksrc.spk.mk | ||
|
||
.PHONY: adguardhome_extra_install | ||
adguardhome_extra_install: | ||
install -m 755 -d $(STAGING_DIR)/var | ||
install -m 644 src/AdGuardHome.yaml $(STAGING_DIR)/var/AdGuardHome.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dns: | ||
port: 5053 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"defaults": { | ||
"run-as": "package" | ||
}, | ||
"username": "sc-adguardhome", | ||
"tool": [{ | ||
"relpath": "bin/adguardhome", | ||
"user": "package", | ||
"group": "package", | ||
"capabilities": "cap_net_raw", | ||
"permission": "0700" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ADGUARDHOME="${SYNOPKG_PKGDEST}/bin/adguardhome" | ||
CFG_FILE="${SYNOPKG_PKGVAR}/var/AdGuardHome.yml" | ||
PID_FILE="${SYNOPKG_PKGVAR}/var/adguardhome.pid" | ||
WEB_UI="0.0.0.0:${SYNOPKG_PKGPORT}" | ||
SERVICE_COMMAND="${ADGUARDHOME} --web-addr ${WEB_UI} -c ${CFG_FILE} --pidfile ${PID_FILE} -l ${LOG_FILE}" | ||
SVC_BACKGROUND=y | ||
|
||
# service_postinst() { | ||
# setcap 'CAP_NET_BIND_SERVICE=+eip CAP_NET_RAW=+eip' $(ADGUARDHOME) | ||
# } |