From 0bffded2ba7ff5c3c5660c19c829a6ffeedea353 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 12 Mar 2018 13:24:07 -0400 Subject: net-nds/rpcbind: require warmstarts for systemd Bug: https://bugs.gentoo.org/650030#c7 Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81 --- net-nds/rpcbind/rpcbind-0.2.4-r2.ebuild | 57 -------------------------------- net-nds/rpcbind/rpcbind-0.2.4-r3.ebuild | 58 +++++++++++++++++++++++++++++++++ net-nds/rpcbind/rpcbind-9999.ebuild | 1 + 3 files changed, 59 insertions(+), 57 deletions(-) delete mode 100644 net-nds/rpcbind/rpcbind-0.2.4-r2.ebuild create mode 100644 net-nds/rpcbind/rpcbind-0.2.4-r3.ebuild (limited to 'net-nds') diff --git a/net-nds/rpcbind/rpcbind-0.2.4-r2.ebuild b/net-nds/rpcbind/rpcbind-0.2.4-r2.ebuild deleted file mode 100644 index aa7c610e94f5..000000000000 --- a/net-nds/rpcbind/rpcbind-0.2.4-r2.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils systemd - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="git://linux-nfs.org/~steved/rpcbind.git" - inherit autotools git-r3 -else - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" - KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" -fi - -DESCRIPTION="portmap replacement which supports RPC over various protocols" -HOMEPAGE="https://sourceforge.net/projects/rpcbind/" - -LICENSE="BSD" -SLOT="0" -IUSE="debug selinux systemd tcpd warmstarts" - -CDEPEND=">=net-libs/libtirpc-1.0:= - systemd? ( sys-apps/systemd:= ) - tcpd? ( sys-apps/tcp-wrappers )" -DEPEND="${CDEPEND} - virtual/pkgconfig" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-rpcbind )" - -PATCHES=( - "${FILESDIR}/${P}-CVE-2017-8779.patch" -) - -src_prepare() { - [[ ${PV} == "9999" ]] && eautoreconf - epatch "${PATCHES[@]}" - epatch_user -} - -src_configure() { - econf \ - --bindir="${EPREFIX}"/sbin \ - --with-statedir="${EPREFIX}"/run/${PN} \ - --with-rpcuser=root \ - --with-systemdsystemunitdir=$(usex systemd "$(systemd_get_unitdir)" "no") \ - $(use_enable tcpd libwrap) \ - $(use_enable debug) \ - $(use_enable warmstarts) -} - -src_install() { - default - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} diff --git a/net-nds/rpcbind/rpcbind-0.2.4-r3.ebuild b/net-nds/rpcbind/rpcbind-0.2.4-r3.ebuild new file mode 100644 index 000000000000..8431b518c940 --- /dev/null +++ b/net-nds/rpcbind/rpcbind-0.2.4-r3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils systemd + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://linux-nfs.org/~steved/rpcbind.git" + inherit autotools git-r3 +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" +fi + +DESCRIPTION="portmap replacement which supports RPC over various protocols" +HOMEPAGE="https://sourceforge.net/projects/rpcbind/" + +LICENSE="BSD" +SLOT="0" +IUSE="debug selinux systemd tcpd warmstarts" +REQUIRED_USE="systemd? ( warmstarts )" + +CDEPEND=">=net-libs/libtirpc-1.0:= + systemd? ( sys-apps/systemd:= ) + tcpd? ( sys-apps/tcp-wrappers )" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-rpcbind )" + +PATCHES=( + "${FILESDIR}/${P}-CVE-2017-8779.patch" +) + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + epatch "${PATCHES[@]}" + epatch_user +} + +src_configure() { + econf \ + --bindir="${EPREFIX}"/sbin \ + --with-statedir="${EPREFIX}"/run/${PN} \ + --with-rpcuser=root \ + --with-systemdsystemunitdir=$(usex systemd "$(systemd_get_unitdir)" "no") \ + $(use_enable tcpd libwrap) \ + $(use_enable debug) \ + $(use_enable warmstarts) +} + +src_install() { + default + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-nds/rpcbind/rpcbind-9999.ebuild b/net-nds/rpcbind/rpcbind-9999.ebuild index bd9f7853dc4e..3a5262860d77 100644 --- a/net-nds/rpcbind/rpcbind-9999.ebuild +++ b/net-nds/rpcbind/rpcbind-9999.ebuild @@ -19,6 +19,7 @@ HOMEPAGE="https://sourceforge.net/projects/rpcbind/" LICENSE="BSD" SLOT="0" IUSE="debug selinux systemd tcpd warmstarts" +REQUIRED_USE="systemd? ( warmstarts )" CDEPEND=">=net-libs/libtirpc-0.2.3:= systemd? ( sys-apps/systemd:= ) -- cgit v1.2.3-18-g5258