pkg download command and patches
This commit is contained in:
22
assets/var/gnu/dnsmasq.md
Normal file
22
assets/var/gnu/dnsmasq.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user