public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsmasq/
Date: Thu, 15 Apr 2021 23:37:38 +0000 (UTC)	[thread overview]
Message-ID: <1618529837.ee7be1b8c8d143b052c2d0c00974e039430cdc37.chutzpah@gentoo> (raw)

commit:     ee7be1b8c8d143b052c2d0c00974e039430cdc37
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 15 23:37:17 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Apr 15 23:37:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7be1b8

net-dns/dnsmasq-2.85: Version bump (bug #782130)

Bug: https://bugs.gentoo.org/782130
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 net-dns/dnsmasq/Manifest            |   1 +
 net-dns/dnsmasq/dnsmasq-2.85.ebuild | 217 ++++++++++++++++++++++++++++++++++++
 2 files changed, 218 insertions(+)

diff --git a/net-dns/dnsmasq/Manifest b/net-dns/dnsmasq/Manifest
index 8d32f2d0f7f..f65dc2f4d6e 100644
--- a/net-dns/dnsmasq/Manifest
+++ b/net-dns/dnsmasq/Manifest
@@ -1,2 +1,3 @@
 DIST dnsmasq-2.83.tar.xz 513880 BLAKE2B 16220fd7eac03f3ba70b014ace3c9775a85b31cdbabd7680d88a87697453a54bfec4c553207477f416032e679dbdaf3ca6c8bb56b72ee423540e0bedf0621865 SHA512 1eaade775dc19658afe825407c10456ab954b82034644bb19af2594d737ceae17ff2cee7f1f917e8e8b2dadbfbcb83dd8b842c0693fcac71487a5fade1eb4b05
 DIST dnsmasq-2.84.tar.xz 514216 BLAKE2B 2bca97c16bcf32e0126eb50dc14b82a1f37e1635ebd1dc205e9a92455640fcbb98c093be725768ba9ced84443e451775f8556a164c82967e09e1df4bf7fc901b SHA512 e84bdcdf3cf35f08e8492eb5aa89ee6543233bdb821d01f164783bd6d0913ec01c513e85e2109352c77e77142a1a94bedcd3361f37d7b2a9a5d35a02448e85c6
+DIST dnsmasq-2.85.tar.xz 518316 BLAKE2B b7c081132c65d67b65f797bdbc603930c1509717bc1b5209b12f72fa3f01b4bae2f26a5387f95ef20317cd3d60e097c0b8bef5e019a35013f3ed2acce9fe9e89 SHA512 8beefe76b46f7d561f40d0900ba68b260a199cb62ab5b653746e3a1104c04fb8899b9e7a160a1be4fe8782bfb1607b556e9ffb9c25c4e99653e4bc74fcc03b09

diff --git a/net-dns/dnsmasq/dnsmasq-2.85.ebuild b/net-dns/dnsmasq/dnsmasq-2.85.ebuild
new file mode 100644
index 00000000000..018e108669b
--- /dev/null
+++ b/net-dns/dnsmasq/dnsmasq-2.85.ebuild
@@ -0,0 +1,217 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit toolchain-funcs flag-o-matic lua-single systemd
+
+DESCRIPTION="Small forwarding DNS server"
+HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
+SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec +dumpfile id idn libidn2"
+IUSE+=" +inotify ipv6 lua nettlehash nls script selinux static tftp"
+
+DM_LINGUAS=(de es fi fr id it no pl pt_BR ro)
+
+BDEPEND="
+	app-arch/xz-utils
+	virtual/pkgconfig
+	nls? ( sys-devel/gettext )
+"
+
+COMMON_DEPEND="
+	acct-group/dnsmasq
+	acct-user/dnsmasq
+	dbus? ( sys-apps/dbus:= )
+	idn? (
+		!libidn2? ( net-dns/libidn:0= )
+		libidn2? ( >=net-dns/libidn2-2.0:= )
+	)
+	lua? ( ${LUA_DEPS} )
+	conntrack? ( net-libs/libnetfilter_conntrack:= )
+	nls? ( sys-devel/gettext )
+"
+
+DEPEND="${COMMON_DEPEND}
+	dnssec? (
+		dev-libs/nettle:=[gmp]
+		static? ( >=dev-libs/nettle-3.4[static-libs(+)] )
+	)
+"
+
+RDEPEND="${COMMON_DEPEND}
+	dnssec? (
+		!static? ( >=dev-libs/nettle-3.4:=[gmp] )
+	)
+	selinux? ( sec-policy/selinux-dnsmasq )
+"
+
+REQUIRED_USE="
+	dhcp-tools? ( dhcp )
+	dnssec? ( !nettlehash )
+	lua? (
+		script
+		${LUA_REQUIRED_USE}
+	)
+	libidn2? ( idn )
+"
+
+use_have() {
+	local no_only
+	if [[ ${1} == '-n' ]]; then
+		no_only=1
+		shift
+	fi
+	local useflag="${1}"
+	shift
+
+	local uword="${1:-${useflag}}"
+	shift
+
+	while [[ ${uword} ]]; do
+		uword="${uword^^}"
+
+		if ! use "${useflag}"; then
+			printf -- " -DNO_%s" "${uword}"
+		elif [[ -z "${no_only}" ]]; then
+			printf -- " -DHAVE_%s" "${uword}"
+		fi
+		uword="${1}"
+		shift
+	done
+}
+
+pkg_setup() {
+	use lua && lua-single_pkg_setup
+}
+
+pkg_pretend() {
+	if use static; then
+		einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked."
+		use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense;" \
+			"in this case the static USE flag does nothing."
+	fi
+}
+
+src_prepare() {
+	default
+
+	sed -i -r 's:lua5.[0-9]+:lua:' Makefile || die
+	sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" \
+		dnsmasq.conf.example || die
+}
+
+src_configure() {
+	COPTS=(
+		$(use_have -n auth-dns auth)
+		$(use_have conntrack)
+		$(use_have dbus)
+		$(use libidn2 || use_have idn)
+		$(use_have libidn2)
+		$(use_have -n inotify)
+		$(use_have -n dhcp dhcp dhcp6)
+		$(use_have -n ipv6 ipv6 dhcp6)
+		$(use_have -n id id)
+		$(use_have lua luascript)
+		$(use_have -n script)
+		$(use_have -n tftp)
+		$(use_have dnssec)
+		$(use_have nettlehash)
+		$(use_have static dnssec_static)
+		$(use_have -n dumpfile)
+	)
+}
+
+src_compile() {
+	emake \
+		PREFIX=/usr \
+		MANDIR=/usr/share/man \
+		CC="$(tc-getCC)" \
+		PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS}" \
+		COPTS="${COPTS[*]}" \
+		CONFFILE="/etc/${PN}.conf" \
+		all$(use nls && printf -- "-i18n\n")
+
+	use dhcp-tools && emake -C contrib/lease-tools \
+		PREFIX=/usr \
+		MANDIR=/usr/share/man \
+		CC="$(tc-getCC)" \
+		PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS}" \
+		all
+}
+
+src_install() {
+	local lingua puid
+	emake \
+		PREFIX=/usr \
+		MANDIR=/usr/share/man \
+		COPTS="${COPTS[*]}" \
+		DESTDIR="${ED}" \
+		install$(use nls && printf -- "-i18n\n")
+
+	for lingua in "${DM_LINGUAS[@]}"; do
+		has ${lingua} ${LINGUAS-${lingua}} \
+			|| rm -rf "${ED}"/usr/share/locale/${lingua}
+	done
+	[[ -d "${D}"/usr/share/locale/ ]] && \
+		rmdir --ignore-fail-on-non-empty "${ED}"/usr/share/locale/
+
+	dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example
+	dodoc -r logo
+
+	docinto html/
+	dodoc *.html
+
+	newinitd "${FILESDIR}"/dnsmasq-init-r4 ${PN}
+	newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN}
+
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}"/dnsmasq.logrotate ${PN}
+
+	insinto /etc
+	newins dnsmasq.conf.example dnsmasq.conf
+
+	insinto /usr/share/dnsmasq
+	doins trust-anchors.conf
+
+	if use dhcp; then
+		keepdir /var/lib/misc
+		newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r3 ${PN}
+	fi
+	if use dbus; then
+		insinto /etc/dbus-1/system.d
+		doins dbus/dnsmasq.conf
+	fi
+
+	if use dhcp-tools; then
+		dosbin contrib/lease-tools/{dhcp_release,dhcp_lease_time}
+		doman contrib/lease-tools/{dhcp_release,dhcp_lease_time}.1
+		if use ipv6; then
+			dosbin contrib/lease-tools/dhcp_release6
+			doman contrib/lease-tools/dhcp_release6.1
+		fi
+	fi
+
+	systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
+}
+
+pkg_preinst() {
+	[[ -f /var/lib/misc/dnsmasq.leases ]] && \
+		cp /var/lib/misc/dnsmasq.leases "${T}"
+}
+
+pkg_postinst() {
+	[[ -f "${T}"/dnsmasq.leases ]] && \
+		cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases
+}


             reply	other threads:[~2021-04-15 23:37 UTC|newest]

Thread overview: 148+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15 23:37 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-14  7:43 [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsmasq/ Arthur Zamarin
2024-03-13 20:58 Sam James
2024-03-13  4:48 Sam James
2024-03-12 21:35 Arthur Zamarin
2024-02-29 22:17 Sam James
2024-02-28 18:52 Arthur Zamarin
2024-02-28 18:52 Arthur Zamarin
2024-02-21 11:01 Sam James
2023-10-17  7:56 Sam James
2023-05-01 13:36 Sam James
2023-03-05  9:14 Arthur Zamarin
2023-03-05  9:07 Arthur Zamarin
2023-03-05  9:06 Arthur Zamarin
2023-02-05 18:50 Sam James
2023-02-05 18:50 Sam James
2023-02-05 18:50 Sam James
2023-02-05 18:31 Sam James
2023-02-05 17:18 Sam James
2023-01-12  4:22 Sam James
2022-11-29 15:58 WANG Xuerui
2022-10-24 20:52 Patrick McLean
2022-08-25  3:33 Sam James
2022-08-15 14:04 Sam James
2022-08-12 10:19 Agostino Sarubbo
2022-08-12 10:17 Agostino Sarubbo
2022-08-12  7:25 Agostino Sarubbo
2022-08-12  7:24 Agostino Sarubbo
2022-08-11 17:34 Arthur Zamarin
2022-08-11  6:48 Agostino Sarubbo
2022-08-11  6:45 Agostino Sarubbo
2021-09-15  0:49 Patrick McLean
2021-08-08 21:39 Marek Szuba
2021-05-15  2:41 Sam James
2021-05-14  6:45 Agostino Sarubbo
2021-05-14  6:42 Agostino Sarubbo
2021-05-13 21:15 Sam James
2021-05-13 16:24 Sam James
2021-05-12 20:12 Agostino Sarubbo
2021-05-12  7:58 Agostino Sarubbo
2021-03-25 23:52 Conrad Kostecki
2021-01-28 19:26 Patrick McLean
2021-01-28 19:26 Patrick McLean
2021-01-28 19:19 Patrick McLean
2021-01-28  1:17 Sam James
2021-01-28  1:14 Sam James
2021-01-27 23:28 Sam James
2021-01-27 23:28 Sam James
2021-01-27 23:15 Sam James
2021-01-27 23:14 Sam James
2021-01-27 17:45 Sergei Trofimovich
2021-01-24  3:52 Sam James
2021-01-23 22:51 Sam James
2021-01-23 22:51 Sam James
2021-01-23 22:42 Sam James
2021-01-23  5:56 Sam James
2021-01-23  4:20 Sam James
2021-01-23  4:09 Sam James
2021-01-22 20:29 Sam James
2021-01-22 16:53 Agostino Sarubbo
2021-01-20 18:25 Patrick McLean
2021-01-19 18:55 Patrick McLean
2020-11-03  7:29 Sam James
2020-10-28 22:35 Sergei Trofimovich
2020-10-28 22:33 Sergei Trofimovich
2020-10-28 22:30 Sergei Trofimovich
2020-10-28 22:27 Sergei Trofimovich
2020-10-28 16:18 Sam James
2020-10-28  4:10 Sam James
2020-10-27 22:00 Thomas Deutschmann
2020-07-20  0:38 Patrick McLean
2020-05-16 19:47 Sergei Trofimovich
2020-05-13 21:07 Mart Raudsepp
2020-05-11  9:27 Agostino Sarubbo
2020-05-11  9:26 Agostino Sarubbo
2020-05-10  9:28 Sergei Trofimovich
2020-05-09 23:00 Sergei Trofimovich
2020-05-09 22:37 Sergei Trofimovich
2020-04-12 18:51 Patrick McLean
2019-11-26  3:11 Matt Turner
2019-11-09 22:55 Matt Turner
2019-11-08  1:15 Aaron Bauman
2019-11-01 10:30 Mikle Kolyada
2019-10-03  8:16 Agostino Sarubbo
2019-09-26 19:02 Thomas Deutschmann
2019-09-26 18:32 Mikle Kolyada
2019-09-26  6:52 Sergei Trofimovich
2019-09-26  6:49 Sergei Trofimovich
2019-09-26  6:40 Sergei Trofimovich
2019-09-22 11:50 Sergei Trofimovich
2019-09-20 21:18 Matt Turner
2019-08-19 22:02 Patrick McLean
2019-05-23  6:39 Aaron Bauman
2019-03-02 20:59 Matt Turner
2019-01-03 19:00 Mikle Kolyada
2018-12-15 12:50 Sergei Trofimovich
2018-12-11 23:32 Sergei Trofimovich
2018-12-11 23:27 Sergei Trofimovich
2018-12-11 23:24 Sergei Trofimovich
2018-12-09 23:51 Thomas Deutschmann
2018-12-09 11:33 Jeroen Roovers
2018-12-07 22:59 Patrick McLean
2018-12-07 22:55 Patrick McLean
2018-10-18 21:40 Patrick McLean
2018-10-18 21:40 Patrick McLean
2018-07-23 17:50 Patrick McLean
2018-07-22  9:01 Sergei Trofimovich
2018-07-22  2:31 Mikle Kolyada
2018-07-20 22:48 Sergei Trofimovich
2018-07-20 22:40 Thomas Deutschmann
2018-07-20 22:24 Sergei Trofimovich
2018-07-20 12:11 Tobias Klausmann
2018-07-20  8:08 Sergei Trofimovich
2018-07-17 11:29 Mikle Kolyada
2018-01-25  1:23 Aaron Bauman
2018-01-07 14:33 Ulrich Müller
2017-10-16 18:15 Markus Meier
2017-10-05  9:47 Sergei Trofimovich
2017-10-05  8:37 Sergei Trofimovich
2017-10-04  8:52 Sergei Trofimovich
2017-10-03 15:25 Sergei Trofimovich
2017-10-03 10:53 Agostino Sarubbo
2017-10-02 23:45 Thomas Deutschmann
2017-09-12  0:54 Patrick McLean
2017-09-08  1:51 Patrick McLean
2017-08-01 22:45 Patrick McLean
2017-07-11 18:01 Patrick McLean
2017-07-10 23:58 Patrick McLean
2017-06-02  1:46 Patrick McLean
2017-06-01 23:33 Patrick McLean
2017-03-26  4:16 Matt Thode
2017-03-01 17:00 Matt Thode
2016-11-27  9:17 Mike Frysinger
2016-07-16 18:28 Patrick McLean
2016-07-08 12:02 Agostino Sarubbo
2016-07-08 10:02 Agostino Sarubbo
2016-07-08  7:53 Agostino Sarubbo
2016-07-05 20:59 Markus Meier
2016-07-04 11:24 Tobias Klausmann
2016-07-03 10:02 Jeroen Roovers
2016-07-02 12:42 Agostino Sarubbo
2016-07-02 12:42 Agostino Sarubbo
2016-06-03 21:39 Patrick McLean
2016-05-31 22:19 Patrick McLean
2016-05-26 12:15 Tobias Klausmann
2016-04-23 10:55 Jeroen Roovers
2016-03-24  5:59 Markus Meier
2016-03-05 16:13 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618529837.ee7be1b8c8d143b052c2d0c00974e039430cdc37.chutzpah@gentoo \
    --to=chutzpah@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox