pkg download command and patches

This commit is contained in:
2026-09-10 16:59:11 +03:00
parent c6dcbc1ca5
commit 998417a605
110 changed files with 1582 additions and 332 deletions

22
assets/var/gnu/dnsmasq.md Normal file
View File

@ -0,0 +1,22 @@
dnsmasq 2.93
=
https://thekelleys.org.uk/dnsmasq/dnsmasq-2.93.tar.xz
``` sh *** patch ***
sed -i \
-e 's|^\(#\s*define CONFFILE\s*\)"/etc/dnsmasq.conf"|\1"/pkg/gnu/dnsmasq/etc/dnsmasq.conf"|' \
-e 's|^\(#\s*define RUNFILE\s*\)"/var/run/dnsmasq.pid"|\1"/pkg/gnu/dnsmasq/var/run/dnsmasq.pid"|' \
-e 's|^\(#\s*define LEASEFILE\s*\)"/var/lib/misc/dnsmasq.leases"|\1"/pkg/gnu/dnsmasq/var/lib/dnsmasq.leases"|' \
-e 's|^\(#\s*define RESOLVFILE\s*\)"/etc/resolv.conf"|\1"/pkg/gnu/dnsmasq/etc/resolv.conf"|' \
src/config.h
```
``` sh *** build ***
make PREFIX=$pkgpath install
mkdir -p ../etc ../var/{run,lib}
cp dnsmasq.conf.example ../etc
```
``` sh *** config ***
cp etc/dnsmasq.conf.example etc/dnsmasq.conf
```