Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/dnsmasq: ChangeLog dnsmasq-2.57.ebuild
Date: Thu, 24 Feb 2011 16:44:36
Message-Id: 20110224164426.DDBE020054@flycatcher.gentoo.org
1 chutzpah 11/02/24 16:44:26
2
3 Modified: ChangeLog
4 Added: dnsmasq-2.57.ebuild
5 Log:
6 Version bump, some cleanups suggested by Jan Psota <jasiu@×××××.pl>. Remove sed workaround for bug #214865 as the Makefile no longer calls any form of awk.
7
8 (Portage version: 2.1.9.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.201 net-dns/dnsmasq/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?rev=1.201&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?rev=1.201&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?r1=1.200&r2=1.201
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v
20 retrieving revision 1.200
21 retrieving revision 1.201
22 diff -u -r1.200 -r1.201
23 --- ChangeLog 16 Feb 2011 19:33:07 -0000 1.200
24 +++ ChangeLog 24 Feb 2011 16:44:26 -0000 1.201
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-dns/dnsmasq
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v 1.200 2011/02/16 19:33:07 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v 1.201 2011/02/24 16:44:26 chutzpah Exp $
30 +
31 +*dnsmasq-2.57 (24 Feb 2011)
32 +
33 + 24 Feb 2011; Patrick McLean <chutzpah@g.o> +dnsmasq-2.57.ebuild:
34 + Version bump, some cleanups suggested by Jan Psota <jasiu@×××××.pl>. Remove
35 + sed workaround for bug #214865 as the Makefile no longer calls any form of
36 + awk.
37
38 *dnsmasq-2.56 (16 Feb 2011)
39
40
41
42
43 1.1 net-dns/dnsmasq/dnsmasq-2.57.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.57.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.57.ebuild?rev=1.1&content-type=text/plain
47
48 Index: dnsmasq-2.57.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.57.ebuild,v 1.1 2011/02/24 16:44:26 chutzpah Exp $
53
54 EAPI=2
55
56 inherit eutils toolchain-funcs flag-o-matic
57
58 MY_P="${P/_/}"
59 MY_PV="${PV/_/}"
60 DESCRIPTION="Small forwarding DNS server"
61 HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/"
62 SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${MY_P}.tar.lzma"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
67 IUSE="dbus +dhcp idn ipv6 nls tftp"
68
69 RDEPEND="dbus? ( sys-apps/dbus )
70 idn? ( net-dns/libidn )
71 nls? (
72 sys-devel/gettext
73 net-dns/libidn
74 )"
75
76 DEPEND="${RDEPEND}
77 dev-util/pkgconfig
78 || ( app-arch/xz-utils app-arch/lzma-utils )"
79
80 S="${WORKDIR}/${PN}-${MY_PV}"
81
82 src_prepare() {
83 # dnsmasq on FreeBSD wants the config file in a silly location, this fixes
84 epatch "${FILESDIR}/${PN}-2.47-fbsd-config.patch"
85 }
86
87 src_configure() {
88 COPTS=""
89 use tftp || COPTS+=" -DNO_TFTP"
90 use dhcp || COPTS+=" -DNO_DHCP"
91 use ipv6 || COPTS+=" -DNO_IPV6"
92 use dbus && COPTS+=" -DHAVE_DBUS"
93 use idn && COPTS+=" -DHAVE_IDN"
94 }
95
96 src_compile() {
97 emake \
98 PREFIX=/usr \
99 CC="$(tc-getCC)" \
100 CFLAGS="${CFLAGS}" \
101 COPTS="${COPTS}" \
102 all$(use nls && echo "-i18n") || die
103 }
104
105 src_install() {
106 emake \
107 PREFIX=/usr \
108 MANDIR=/usr/share/man \
109 DESTDIR="${D}" \
110 install$(use nls && echo "-i18n") || die
111
112 dodoc CHANGELOG FAQ
113 dohtml *.html
114
115 newinitd "${FILESDIR}"/dnsmasq-init dnsmasq
116 newconfd "${FILESDIR}"/dnsmasq.confd dnsmasq
117 insinto /etc
118 newins dnsmasq.conf.example dnsmasq.conf
119
120 if use dbus ; then
121 insinto /etc/dbus-1/system.d
122 doins dbus/dnsmasq.conf
123 fi
124 }