Changeset 51337


Ignore:
Timestamp:
May 23, 2009, 5:59:08 AM (8 years ago)
Author:
snc@…
Message:

updated version, modified patches, added self as openmaintainer, added dependency of nawk

Location:
trunk/dports/net/dnsmasq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/dnsmasq/Portfile

    r50280 r51337  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
     
    45
    56name            dnsmasq
    6 version         2.45
     7version         2.47
    78categories      net
    89platforms       darwin
    9 maintainers     nomaintainer
     10maintainers     snc openmaintainer
    1011description     lightweight DNS forwarder and DHCP server
    1112long_description        Dnsmasq is lightweight, easy to configure DNS \
     
    2122homepage        http://www.thekelleys.org.uk/dnsmasq/doc.html
    2223master_sites    http://www.thekelleys.org.uk/dnsmasq/
    23 checksums       sha1 12f8cffd657f674fbf4bf4f670a0dcb65ea4a5ae
    24 patchfiles      patch-config.h.diff patch-Makefile.diff
     24checksums       md5    4524081e56d0b935717d493e8e8d3e11 \
     25            sha1   a01ae622410636c5cdad9b789e69fb4bbc3a5d6a \
     26            rmd160 79c7c4f2fac483f237401294747dfda93921ab1d
     27patchfiles      patch-src-config.h.diff patch-Makefile.diff
    2528
    26 configure       {
    27         reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/src/config.h
     29depends_build   port:nawk
     30
     31post-patch {
     32        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/config.h
    2833}
    2934
    30 build.args CC=${configure.cc}
     35use_configure   no
    3136
    32 destroot.args   PREFIX=${prefix}
    33 destroot.keepdirs   ${destroot}${prefix}/var/run
     37destroot.args   PREFIX=${prefix}
    3438
    35 post-activate {
    36         # Make sure initial conf files are present and setup correctly
    37         if {![file exists ${prefix}/etc/dnsmasq.conf]} {
    38                         file copy ${prefix}/etc/dnsmasq.conf.sample \
    39                                 ${prefix}/etc/dnsmasq.conf
    40           }
    41 }
    42 
    43 
    44 startupitem.create      yes
    45 startupitem.name        dnsmasq
    46 startupitem.executable  ${prefix}/sbin/dnsmasq -k
     39#startupitem.create     yes
     40#startupitem.type    launchd
  • trunk/dports/net/dnsmasq/files/patch-Makefile.diff

    r39895 r51337  
    1 --- Makefile.orig       2008-06-06 07:04:47.000000000 -0400
    2 +++ Makefile    2008-07-16 23:56:35.000000000 -0400
    3 @@ -17,13 +17,14 @@
     1--- Makefile.orig       2009-05-23 01:26:37.000000000 -0400
     2+++ Makefile    2009-05-23 01:27:22.000000000 -0400
     3@@ -17,6 +17,7 @@
    44 BINDIR = ${PREFIX}/sbin
    55 MANDIR = ${PREFIX}/share/man
     
    99 SRC = src
    1010 PO = po
    11  MAN = man
    12  
    13  PKG_CONFIG = pkg-config
    14 -AWK = nawk
    15 +AWK = awk
    16  INSTALL = install
    17  
    18  DBUS_MINOR=" `echo $(COPTS) | ../bld/pkg-wrapper $(PKG_CONFIG) --modversion dbus-1 | $(AWK) -F . -- '{ if ($$(NF-1)) print \"-DDBUS_MINOR=\"$$(NF-1) }'`"
    1911@@ -53,6 +54,7 @@
    2012        $(INSTALL) -d $(DESTDIR)$(BINDIR) -d $(DESTDIR)$(MANDIR)/man8
Note: See TracChangeset for help on using the changeset viewer.