1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Matthias Andree
19f87ebe0d Update to new upstream release 2.61. Changes are, per Simon Kelley:
Re-write interface discovery code on *BSD to use getifaddrs. This
is more portable, more straightforward, and allows us to find the
prefix length for IPv6 addresses.

Add ra-names, ra-stateless and slaac keywords for DHCPv6.  Dnsmasq
can now synthesise AAAA records for dual-stack hosts which get IPv6
addresses via SLAAC. It is also now possible to use SLAAC and
stateless DHCPv6, and to tell clients to use SLAAC addresses as
well as DHCP ones.  Thanks to Dave Taht for help with this.

Add --dhcp-duid to allow DUID-EN uids to be used.

Explicity send DHCPv6 replies to the correct port, instead of relying
on clients to send requests with the correct source address, since
at least one client in the wild gets this wrong. Thanks to Conrda
Kostecki for help tracking this down.

Send a preference value of 255 in DHCPv6 replies when --dhcp-authoritative
is in effect. This tells clients not to wait around for other DHCP
servers.

Better logging of DHCPv6 options.

Add --host-record. Thanks to Rob Zwissler for the suggestion.

Invoke the DHCP script with action "tftp" when a TFTP file transfer
completes. The size of the file, address to which it was sent and
complete pathname are supplied. Note that version 2.60 introduced
some script incompatibilties associated with DHCPv6, and this is a
further change. To be safe, scripts should ignore unknown actions,
and if not IPv6-aware, should exit if the environment variable
DNSMASQ_IAID is set. The use-case for this is to track netboot/install.
Suggestion from Shantanu Gadgil.

Update contrib/port-forward/dnsmasq-portforward to reflect the
above.

Set the environment variable DNSMASQ_LOG_DHCP when running the
script id --log-dhcp is in effect, so that script can taylor their
logging verbosity. Suggestion from Malte Forkel.

Arrange that addresses specified with --listen-address work even
if there is no interface carrying the address. This is chiefly
useful for IPv4 loopback addresses, where any address in 127.0.0.0/8
is a valid loopback address, but normally only 127.0.0.1 appears
on the lo interface. Thanks to Mathieu Trudel-Lapierre for the idea
and initial patch.

Fix crash, introduced in 2.60, when a DHCPINFORM is received from
a network which has no valid dhcp-range.  Thanks to Stephane Glondu
for the bug report.

Add a new DHCP lease time keyword, "deprecated" for --dhcp-range.
This is only valid for IPv6, and sets the preffered lease time for
both DHCP and RA to zero. The effect is that clients can continue
to use the address for existing connections, but new connections
will use other addresses, if they exist. This makes hitless renumbering
at least possible.

Fix bug in address6_available() which caused DHCPv6 lease aquisition
to fail if more than one dhcp-range in use.

Provide RDNSS and DNSSL data in router advertisements, using the
settings provided for DHCP options option6:domain-search and
option6:dns-server.

Tweak logo/favicon.ico to add some transparency. Thanks to SamLT
for work on this.

Don't cache data from non-recursive nameservers, since it may
erroneously look like a valid CNAME to a non-exitant name. Thanks
to Ben Winslow for finding this.

Call SO_BINDTODEVICE on the DHCP socket(s) when doing DHCP on exactly
one interface and --bind-interfaces is set. This makes the OpenStack
use-case of one dnsmasq per virtual interface work. This is only
available on Linux; it's not supported on other platforms. Thanks
to Vishvananda Ishaya and the OpenStack team for the suggestion.

Updated French translation. Thanks to Gildas Le Nadan.

Give correct from-cache answers to explict CNAME queries.  Thanks
to Rob Zwissler for spotting this.

Add --tftp-lowercase option. Thanks to Oliver Rath for the patch.

Ensure that the DBus DhcpLeaseUpdated events are generated when a
lease goes through INIT_REBOOT state, even if the dhcp-script is
not in use. thanks to Antoaneta-Ecaterina Ene for the patch.

Fix failure of TFTP over IPv4 on OpenBSD platform. Thanks to Brad
Smith for spotting this.
2012-04-30 20:38:13 +00:00
Matthias Andree
34c815a522 Fix a rare configuration-dependent crash. Simon Kelley, upstream
maintainer, wrote in message <4F70361B.7080306@thekelleys.org.uk>:

    A bug has been found in dnsmasq 2.60 that can cause crashes. This is
    configuration dependent: it either crashes frequently or not at all.
    The configuration required is one which allows dnsmasq to receive
    DHCPINFORM requests for which there is no valid dhcp-range. This is
    rare.

Adding the patch he offers for download.

Feature safe: yes
2012-04-01 11:18:18 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Matthias Andree
a4a731547c Update dnsmasq rc.d script again (sorry for the churn with portrev. 1)
- Start before named, to unbreak named_wait if /etc/resolv.conf points
  to dnsmasq (when named is the resolver that dnsmasq forwards to).
  Is also more robust/maintenance friendly if other scripts depend on "named".

- Track if the configuration has changed since start, and upgrade reload
  to restart by default in that case (can be disabled with
  dnsmasq_restart="NO" in /etc/rc.conf[.local]), to work around dnsmasq
  shortcoming

- Add a "logstats" action to the rcscript, and document it.

- Document the "reload" action and the new dnsmasq_restart variable.

- Properly quote variable expansions.

- Enhance pkg-message to point to the rcfile for feature documentation.

- Bump PORTREVISION to 2.
2011-02-22 19:20:17 +00:00
Matthias Andree
85662e5623 Change rc.d file to ensure proper startup order:
- depend on named, in case dnsmasq uses named as resolver
- start before ntpdate and rpcbase (which require named).

Bump PORTREVISION.
2011-02-22 17:19:28 +00:00
Matthias Andree
fbd2a84e40 Upgrade to new upstream release 2.57.
Remove support for FreeBSD releases 6.X.

Allow build with IDN but without NLS (this requires that dns/libidn
is also built WITHOUT_NLS) to expose an upstream change. Useful for embedded
devices.

Warn user if this is requested but libidn needs NLS libraries
because in that case dnsmasq inherits the NLS dependencies from libidn.

Remove files/patch-aa, it was a preview patch from a 2.57 test release,
fixing a regression in 2.56 that caused hex constants to be rejected in
the configuratino if they contained the '*' wildcard.

Further upstream changes:
- use own header for DNS protocol, rather than using arpa/nameser.h
- correct ctype.h function argument casts (isdigit(), isxdigit(), etc.)
- Accept extra empty arguments on command line to avoid libvirt breakage.
2011-02-21 08:50:57 +00:00
Matthias Andree
26036ca0dd Fix regression in config parser.
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2011q1/004750.html
2011-02-16 14:34:14 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Wesley Shields
412b6a9980 - Update to 2.51rc1
- Add pkg-message
- Add NLS and IDN option (currently linked together in one option, this will
  be changed in future releases hopefully)
- Properly handle example configuration files

PR:		ports/139273
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2009-10-13 16:35:32 +00:00
Martin Wilke
447234fea1 * Fix rcfile bugs (and bump PORTREVISION):
- load configuration earlier so that we don't run without config file,
    analyzed, reported and patch suggested by Fumiyuki Shimizu
   - mention /etc/rc.conf.local (as suggested in the Porter's handbook)
   - mention dnsmasq_flags for additional command line arguments
   - pass pidfile and dnsmasq_conf as arguments to dnsmasq (previously,
     overriding dnsmasq_conf had no effect).

* Fix COMMENT to mention TFTP server; shorten it so it fully fits on the
pkg_info list.

PR:		137506
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2009-08-13 21:05:46 +00:00
Dmitry Marakasov
36e406eb3b - add reload support for rcfile
PR:		136797
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Suggested by:	Maxim Khitrov <mkhitrov@gmail.com>
2009-07-15 22:57:30 +00:00
Dmitry Marakasov
128a470ec1 - Update to 2.48
PR:		135270
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
2009-06-05 23:14:58 +00:00
Martin Wilke
b0860b9af9 - Update to 2.37
Approved by:	maintainer (implicit)
2007-02-10 11:39:21 +00:00
Sergey Matveychuk
a24a39e03a - Fix rcNG script
PR:		ports/87163
Reported by:	Michael Blatt <michael.blatt@gmail.com>
2005-10-11 18:25:05 +00:00
Yen-Ming Lee
751004fcf2 - utilize USE_RCORDER / USE_RC_SUBR to solve this problem when OSVERSION > 500037
PR:		80054
Patched by:	leeym
Submitted by:	Thomas Schweikle <tps@vr-web.de>
Approved by:	maintainer timeout
2005-07-16 01:23:02 +00:00
Sergey Matveychuk
73fcbf1856 - Update to 2.18
PR:		ports/74704
Submitted by:	maintainer
2004-12-13 01:12:31 +00:00
Kirill Ponomarev
5b8aa13507 Update to 2.9
PR:		ports/68491
Submitted by:	maintainer
2004-06-30 07:14:28 +00:00
Yen-Ming Lee
8e55f05bbe update dnsmasq to 1.13
PR:		53184
Submitted by:	Steven Honson <shonson@isoproplex.net>
2003-06-11 17:06:01 +00:00
Will Andrews
0521957a16 Add dnsmasq 1.12, a caching DNS forwarder.
PR:		52840
Submitted by:	Steven Honson <shonson@isoproplex.net>
2003-06-03 02:03:40 +00:00