Date: Thursday, August 20, 2020 @ 09:10:22 Author: eworm Revision: 394430
upgpkg: dnsmasq 2.82-2: install lease-tools Modified: dnsmasq/trunk/PKGBUILD ----------+ PKGBUILD | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-20 08:35:19 UTC (rev 394429) +++ PKGBUILD 2020-08-20 09:10:22 UTC (rev 394430) @@ -5,7 +5,7 @@ pkgname=dnsmasq pkgver=2.82 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight, easy to configure DNS forwarder and DHCP server' url='http://www.thekelleys.org.uk/dnsmasq/doc.html' arch=('x86_64') @@ -34,6 +34,14 @@ PREFIX=/usr \ BINDIR=/usr/bin \ all-i18n + + cd "contrib/lease-tools" + + make \ + CFLAGS="$CPPFLAGS $CFLAGS" \ + LDFLAGS="$LDFLAGS" \ + COPTS="$_build_copts" \ + all } package() { @@ -47,14 +55,17 @@ DESTDIR="$pkgdir" \ install install-i18n - install -Dm644 "dbus/dnsmasq.conf" "$pkgdir"/usr/share/dbus-1/system.d/dnsmasq.conf - install -Dm644 "dnsmasq.conf.example" "$pkgdir"/etc/dnsmasq.conf - install -Dm644 "$srcdir/dnsmasq.service" "$pkgdir"/usr/lib/systemd/system/dnsmasq.service - install -Dm644 "$srcdir/dnsmasq-sysusers.conf" "$pkgdir"/usr/lib/sysusers.d/dnsmasq.conf + install -Dm0644 "dbus/dnsmasq.conf" "$pkgdir"/usr/share/dbus-1/system.d/dnsmasq.conf + install -Dm0644 "dnsmasq.conf.example" "$pkgdir"/etc/dnsmasq.conf + install -Dm0644 "$srcdir/dnsmasq.service" "$pkgdir"/usr/lib/systemd/system/dnsmasq.service + install -Dm0644 "$srcdir/dnsmasq-sysusers.conf" "$pkgdir"/usr/lib/sysusers.d/dnsmasq.conf # DNSSEC setup sed -i 's,%%PREFIX%%,/usr,' "$pkgdir"/etc/dnsmasq.conf - install -Dm644 "trust-anchors.conf" "$pkgdir"/usr/share/dnsmasq/trust-anchors.conf + install -Dm0644 "trust-anchors.conf" "$pkgdir"/usr/share/dnsmasq/trust-anchors.conf + + install -Dm0755 -t "$pkgdir"/usr/bin/ 'contrib/lease-tools/dhcp_'{release{,6},lease_time} + install -Dm0644 -t "$pkgdir"/usr/share/man/man1 'contrib/lease-tools/dhcp_'{release{,6},lease_time}.1 } # vim: ts=2 sw=2 et ft=sh
