UmVirt LFS Package info

DB commit: 9479b41c328304e88d8b007b04bc0dff783bbc6e
APP commit: b0e7f121177a769c20a4c985867d650259b096ce
[ BASH | XML | JSON ]

dnsmasq

Dnsmasq provides network infrastructure for small networks: DNS, DHCP, router advertisement and network boot.

Package info

Template:
Codename: dnsmasq
Source file: dnsmasq-2.91.tar.xz
Source file size: 576820
Source file MD5-checkum: d0f47ffc680a4697f6bbf988dcb75a31
Source directory: dnsmasq-2.91
Package URL: https://umvirt.com/linux/downloads/0.2.3/packages/d/dnsmasq-2.91.tar.xz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.2.3/packages/d/dnsmasq-2.91.tar.xz.md5sum
Dependances: dbus, libidn2, nftables.
Dependance of: waydroid, lxc.
Patches: *** NO PATCHES FOUND ***
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
#add group
groupadd -fg 179 dnsmasq 

#add user
useradd -c "dnsmasq daemon" -d /var/run/dnsmasq -u 179 \
        -g dnsmasq -s /bin/false dnsmasq


#sed -i "s/\/usr\/local/\/usr/" Makefile

Build script:
make PREFIX=/usr BINDIR=/usr/bin COPTS='-DHAVE_DNSSEC -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_NFTSET'

Install script:
make PREFIX=/usr BINDIR=/usr/bin COPTS='-DHAVE_DNSSEC -DHAVE_DBUS -DHAVE_LIBIDN2 -DHAVE_NFTSET' install

install -Dm0644 "dbus/dnsmasq.conf" /usr/share/dbus-1/system.d/dnsmasq.conf
install -Dm0644 "dnsmasq.conf.example" /etc/dnsmasq.conf


#install service
cat > /usr/lib/systemd/system/dnsmasq.service << "EOF"

[Unit]
Description=dnsmasq - A lightweight DHCP and caching DNS server
Documentation=man:dnsmasq(8)
After=network.target
Before=network-online.target nss-lookup.target
Wants=nss-lookup.target

[Service]
Type=dbus
BusName=uk.org.thekelleys.dnsmasq
ExecStartPre=/usr/bin/dnsmasq --test
ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
PrivateDevices=true
ProtectSystem=full

[Install]
WantedBy=multi-user.target

EOF