Package Details: adguardhome 1:0.107.38-1

Git Clone URL: https://aur.archlinux.org/adguardhome.git (read-only, click to copy)
Package Base: adguardhome
Description: Network-wide ads and trackers blocking DNS server
Upstream URL: https://github.com/AdguardTeam/AdGuardHome
Keywords: adblocker blocker dns
Licenses: GPL
Submitter: graysky
Maintainer: anonfunc
Last Packager: anonfunc
Votes: 20
Popularity: 0.69
First Submitted: 2019-12-22 11:00 (UTC)
Last Updated: 2023-09-17 16:00 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

anonfunc commented on 2023-04-05 15:22 (UTC) (edited on 2023-04-05 15:25 (UTC) by anonfunc)

@ZhangHua I added parts of your suggestions.

PIDFile is discouraged by systemd, since the default Type=simple keeps track of the parent process anyways (adguardhome is non-forking), so no need to use any PIDFiles.

I moved the config and added syslog as suggested. Be aware that you have to move any config remaining in /etc/default/adguardhome over (if there is anything to move, host & port is written to the adguardhome config anyways).

If you have any problems upgrading, please let me know.

anonfunc commented on 2023-03-24 16:09 (UTC)

@ZhangHua I think that would improve the package indeed. I'll make the necessary changes if I find time, but not later than the next release.

ZhangHua commented on 2023-03-20 11:39 (UTC) (edited on 2023-03-20 11:39 (UTC) by ZhangHua)

For maintainer: Thanks for maintaining such a wonderful package, but I have some suggestions you may consider:

  • Can we use --config=/etc/adguardhome.yaml argument in service instead the environment file /etc/default/adguardhome? I think this is more flexible and elegant. You can find more about it here
  • Use --logfile=syslog to let systemd records the log
  • Use --pidfile=/run/adguardhome.pid and set PIDFile=/run/adguardhome.pid in service to let systemd track process better

However, those suggestions means that we need to change this package a lot, it depends you that if you accept those suggestions.

CrimsonKnight13 commented on 2022-11-10 19:27 (UTC) (edited on 2022-11-10 19:34 (UTC) by CrimsonKnight13)

@Shasta

Add export NODE_OPTIONS="--openssl-legacy-provider" to /etc/makepkg.conf

I was able to make it work for all Intel x64 systems with nodejs-lts-gallium.

anonfunc commented on 2022-11-10 16:34 (UTC) (edited on 2022-11-10 18:47 (UTC) by anonfunc)

@Shasta It builds fine with nodejs-lts-fermium. I'm aware of this build issue, but there is no easy fix, at least I know of.

Shasta commented on 2022-11-10 03:13 (UTC)

With the switch to OpenSSL 3 in Core, this package now fails to build with this issue:

https://github.com/AdguardTeam/AdGuardHome/issues/4595

...
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/webpack/lib/NormalModule.js:417:16)
    at /home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/webpack/lib/NormalModule.js:452:10
    at /home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/webpack/lib/NormalModule.js:323:13
    at /home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/foo/builds/adguardhome/src/AdGuardHome-0.107.18/client/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

anonfunc commented on 2022-11-07 15:55 (UTC)

@bhedrich If there isn't a hotfix release I'll patch it in. Btw, you can use https://github.com/AdguardTeam/AdGuardHome/commit/464fbf0b543e6bc52eba0d5fdb305658e5669b68.patch to get the patch and just use prepare() to patch the source instead of switching to a commit archive.

bhedrich commented on 2022-11-07 15:35 (UTC)

@anonfunc: https://github.com/AdguardTeam/AdGuardHome/issues/5089#issuecomment-1305784765

I tried it with:

diff --git a/PKGBUILD b/PKGBUILD
index 421ac76..5815d20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,32 +4,32 @@
 pkgname=adguardhome
 _pkgname=AdGuardHome
 pkgver=0.107.17
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="Network-wide ads and trackers blocking DNS server"
 arch=(x86_64 aarch64 armv7h armv6h)
 url="https://github.com/AdguardTeam/AdGuardHome"
 license=('GPL')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/AdguardTeam/AdGuardHome/archive/v$pkgver.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/AdguardTeam/AdGuardHome/archive/464fbf0b543e6bc52eba0d5fdb305658e5669b68.tar.gz"
         "$pkgname.service"
         "$pkgname.defaults"
 )
 makedepends=(go 'nodejs<17' npm yarn git)
 depends=(glibc)
 backup=('etc/default/adguardhome')
-b2sums=('b18718cde5fb04417b752d492bcfb25238975a41ecc6a2898db5a75b94f6d059965bb3a9acd24056a7ad474275b66e3a4a32d6121be5e5b05e2daaf027dacd59'
+b2sums=('SKIP'
         'd55d1667916e291b201dde5bd0a5d2d6dd16c654ecec4ea47c4a3a54b898e7008ba0538c9d5a4c7572cc304cc625b39accd69692766c1618890efff88e96e5a0'
         'ec3a3cd8debae4dcb4a723ef2ba31960aa1f897e2f8c857fcf9861bc7959072b22fed3091c0d07084c280be0755d03bf6ca4fef5f2d08ae20397378e13cf9c9b')

 prepare() {
-  cd "$_pkgname-$pkgver"
+  cd "$_pkgname-464fbf0b543e6bc52eba0d5fdb305658e5669b68"
   npm --prefix client ci
   yarn --cwd client2 install
   go mod download
 }

 build() {
-  cd "$_pkgname-$pkgver"
+  cd "$_pkgname-464fbf0b543e6bc52eba0d5fdb305658e5669b68"
   npm --prefix client run build-prod
   yarn --cwd client2 build
   go build \
@@ -42,7 +42,7 @@ build() {
 }

 package() {
-  install -Dm755 "$_pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm755 "$_pkgname-464fbf0b543e6bc52eba0d5fdb305658e5669b68/$pkgname" "$pkgdir/usr/bin/$pkgname"
   install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
   install -Dm644 "$srcdir"/$pkgname.defaults "$pkgdir/etc/default/$pkgname"
 }

bhedrich commented on 2022-11-07 07:31 (UTC)

@anonfunc: Nothing changed. There are several people with different OS's (Windows etc.) who have the same issue.

https://github.com/AdguardTeam/AdGuardHome/issues/5089