summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-01-16 18:43:51 -0500
committerMike Gilbert <floppym@gentoo.org>2022-01-16 18:56:05 -0500
commit4ab520202ec5681eee7856fbb308001e25ff67c4 (patch)
treed9c20d4973e8d4e47fb58966177b3bc90b54d398 /net-misc
parentnet-misc/cfengine: add slot-operator for postgres (diff)
downloadgentoo-4ab520202ec5681eee7856fbb308001e25ff67c4.tar.gz
gentoo-4ab520202ec5681eee7856fbb308001e25ff67c4.tar.bz2
gentoo-4ab520202ec5681eee7856fbb308001e25ff67c4.zip
net-misc/cfengine: update EAPI 5 -> 7
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/cfengine/cfengine-3.6.2-r1.ebuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/net-misc/cfengine/cfengine-3.6.2-r1.ebuild b/net-misc/cfengine/cfengine-3.6.2-r1.ebuild
index 3ac2c4c22e6a..c05b9132fce6 100644
--- a/net-misc/cfengine/cfengine-3.6.2-r1.ebuild
+++ b/net-misc/cfengine/cfengine-3.6.2-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI="7"
-inherit autotools epatch
+inherit autotools
MY_PV="${PV//_beta/b}"
MY_PV="${MY_PV/_p/p}"
@@ -39,9 +39,11 @@ REQUIRED_USE="^^ ( qdbm tokyocabinet )"
S="${WORKDIR}/${MY_P}"
src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}/${P}-ifconfig.patch"
+ "${FILESDIR}/${P}-sysmacros.patch"
+ )
default
- epatch "${FILESDIR}/${P}-ifconfig.patch"
- epatch "${FILESDIR}/${P}-sysmacros.patch"
eautoreconf
}
@@ -143,7 +145,7 @@ pkg_postinst() {
}
pkg_config() {
- if [ "${ROOT}" == "/" ]; then
+ if [[ -z ${ROOT} ]]; then
if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
einfo "Generating keys for localhost."
/usr/sbin/cf-key