/[gentoo-x86]/net-dns/dnsmasq/dnsmasq-2.57-r1.ebuild
Gentoo

Contents of /net-dns/dnsmasq/dnsmasq-2.57-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Aug 28 17:11:42 2012 UTC (2 years, 4 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump (bug #431836). Add installation of a systemd unit (bug # 371871). Make sure LDFLAGS are respected (bug #414223). Clean up some older versions.

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.57-r1.ebuild,v 1.5 2012/06/14 02:08:14 zmedico Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs flag-o-matic user
8
9 MY_P="${P/_/}"
10 MY_PV="${PV/_/}"
11 DESCRIPTION="Small forwarding DNS server"
12 HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/"
13 SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${MY_P}.tar.lzma"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
18 IUSE="dbus +dhcp idn ipv6 nls tftp"
19
20 RDEPEND="dbus? ( sys-apps/dbus )
21 idn? ( net-dns/libidn )
22 nls? (
23 sys-devel/gettext
24 net-dns/libidn
25 )"
26
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig
29 || ( app-arch/xz-utils app-arch/lzma )"
30
31 S="${WORKDIR}/${PN}-${MY_PV}"
32
33 pkg_setup() {
34 enewgroup dnsmasq
35 enewuser dnsmasq -1 -1 /dev/null dnsmasq
36 }
37
38 src_prepare() {
39 # dnsmasq on FreeBSD wants the config file in a silly location, this fixes
40 epatch "${FILESDIR}/${PN}-2.47-fbsd-config.patch"
41 }
42
43 src_configure() {
44 COPTS=""
45 use tftp || COPTS+=" -DNO_TFTP"
46 use dhcp || COPTS+=" -DNO_DHCP"
47 use ipv6 || COPTS+=" -DNO_IPV6"
48 use dbus && COPTS+=" -DHAVE_DBUS"
49 use idn && COPTS+=" -DHAVE_IDN"
50 }
51
52 src_compile() {
53 emake \
54 PREFIX=/usr \
55 CC="$(tc-getCC)" \
56 CFLAGS="${CFLAGS}" \
57 COPTS="${COPTS}" \
58 all$(use nls && echo "-i18n")
59 }
60
61 src_install() {
62 emake \
63 PREFIX=/usr \
64 MANDIR=/usr/share/man \
65 DESTDIR="${D}" \
66 install$(use nls && echo "-i18n")
67
68 dodoc CHANGELOG FAQ
69 dohtml *.html
70
71 newinitd "${FILESDIR}"/dnsmasq-init dnsmasq
72 newconfd "${FILESDIR}"/dnsmasq.confd-r1 dnsmasq
73 insinto /etc
74 newins dnsmasq.conf.example dnsmasq.conf
75
76 if use dbus ; then
77 insinto /etc/dbus-1/system.d
78 doins dbus/dnsmasq.conf
79 fi
80 }

  ViewVC Help
Powered by ViewVC 1.1.20