Ticket #16158: patch-Makefile.diff

File patch-Makefile.diff, 820 bytes (added by davidgilman1+macports@…, 16 years ago)

use awk instead of gawk

  • Makefile

    old new  
    1717BINDIR = ${PREFIX}/sbin
    1818MANDIR = ${PREFIX}/share/man
    1919LOCALEDIR = ${PREFIX}/share/locale
     20CONFDIR = ${PREFIX}/etc
    2021
    2122SRC = src
    2223PO = po
    2324MAN = man
    2425
    2526PKG_CONFIG = pkg-config
    26 AWK = nawk
     27AWK = awk
    2728INSTALL = install
    2829
    2930DBUS_MINOR=" `echo $(COPTS) | ../bld/pkg-wrapper $(PKG_CONFIG) --modversion dbus-1 | $(AWK) -F . -- '{ if ($$(NF-1)) print \"-DDBUS_MINOR=\"$$(NF-1) }'`"
     
    5354        $(INSTALL) -d $(DESTDIR)$(BINDIR) -d $(DESTDIR)$(MANDIR)/man8
    5455        $(INSTALL) -m 644 $(MAN)/dnsmasq.8 $(DESTDIR)$(MANDIR)/man8
    5556        $(INSTALL) -m 755 $(SRC)/dnsmasq $(DESTDIR)$(BINDIR)
     57        $(INSTALL) -m 644 dnsmasq.conf.example $(DESTDIR)$(CONFDIR)/dnsmasq.conf.sample
    5658
    5759all-i18n :
    5860        cd $(SRC) && $(MAKE) \