net-misc/cfengine: drop old 2.x ebuilds

* These are blocking dev-libs/openssl-1.x cleanup

Bug: https://bugs.gentoo.org/741620
Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
Aaron Bauman
2020-09-16 21:41:30 -04:00
parent 24a68b5526
commit 09db29821c
3 changed files with 0 additions and 232 deletions

View File

@@ -1,3 +1,2 @@
DIST cfengine-2.2.10.tar.gz 2690333 BLAKE2B a6e0027fc290a46730327f3fc4bf382add421f37759d6972b3f99de92417e77d8c5ff649aa376d216abde017e49072d3bd98aed60a109cb57b9e5920a358923a SHA512 861af25f32248e115512790357cb4739b16bee9d19db33cc1b93ab2091d020991770970fc916796a5894c978ee6a5956100d2f714efb6e97e9e9a9ea88f64dea
DIST cfengine-3.6.2.tar.gz 1966966 BLAKE2B bb5be86ff1562fe44216c05ed179273dc803ef2a20d783f4692fe1fb533cd1914982671cbcc103c5f8f7118f7742f51ccbcdbe4408a86ebc566f444bc581e3df SHA512 b1bf6010d4309980846524ca94bb39f624f4ed0df3af220df91f7210b4441456840dfeeee4d62d6d6260b417ea7cf959509ca96c1a26c6da67bda7b3c1e5dbbc
DIST cfengine-masterfiles-3.6.2.tar.gz 119594 BLAKE2B df01bfb5e5970fb386652ab1588d0b7d037d13018904506bd481b91720782bd837f7d54ca550d7b81e2db5fd535f053ac70e4ad5337d473986408e062e3565a7 SHA512 ec942dbfbc848455bbdaa157d6665d3e830cb967bbc07303aa4ee577cf2774d01bc602c57893372538b72d70b8b62b7e2a90ca9f8e59d7420d5b2f94fcd809e9

View File

@@ -1,115 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An automated suite of programs for configuring and maintaining
Unix-like computers"
HOMEPAGE="http://www.cfengine.org/"
SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="vim-syntax"
RDEPEND=">=sys-libs/db-4:=
<dev-libs/openssl-1.1:=
app-portage/portage-utils
net-libs/libnsl:="
DEPEND="${RDEPEND}
virtual/yacc
sys-devel/flex"
PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
src_prepare() {
eapply_user
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
# https://bugs.gentoo.org/339808
eapply "${FILESDIR}/admit-noclass-520696.patch" \
"${FILESDIR}/511666-segfault.patch" \
"${FILESDIR}/${P}-snprintf_buffer_overflow.patch"
# 2048 causes crashes on some 32-bit hardened kernels, and the warning
# messages say to turn it back down.
if use x86; then
sed -i -e "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h || die
fi
}
src_configure() {
# Enforce /var/cfengine for historical compatibility
econf \
--disable-static \
--with-workdir=/var/cfengine \
--with-berkeleydb=/usr
# Fix Makefile to skip doc,inputs, & contrib install to wrong locations
sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' \
-e 's/\(SUBDIRS.*\) contrib inputs/\1/' \
-e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
# Fix man pages
sed -i -e 's@/usr/local@/usr@' doc/*.8 || die
}
src_install() {
newinitd "${FILESDIR}"/cfservd.rc6 cfservd
newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd
newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd
emake DESTDIR="${D}" install
# Remove static library and libtool file as they are not needed
rm "${ED}"/usr/$(get_libdir)/*.la || die
dodoc AUTHORS ChangeLog README TODO INSTALL
# Manually install doc and inputs
doman doc/*.8
doinfo doc/*.info*
docinto examples
dodoc inputs/*.example
# Create cfengine working directory
dodir /var/cfengine
fperms 700 /var/cfengine
keepdir /var/cfengine/bin
keepdir /var/cfengine/inputs
keepdir /var/cfengine/modules
}
pkg_postinst() {
# Copy cfagent into the cfengine tree otherwise cfexecd won't
# find it. Most hosts cache their copy of the cfengine
# binaries here. This is the default search location for the
# binaries.
cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
einfo
einfo "NOTE: The cfportage module has been deprecated in favor of the"
einfo " upstream 'packages' action."
einfo
einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
einfo
einfo "To run cfengine out of cron every half hour modify your crontab:"
einfo "0,30 * * * * /usr/sbin/cfexecd -F"
einfo
elog "You MUST generate the keys for cfengine by running:"
elog "emerge --config ${CATEGORY}/${PN}"
}
pkg_config() {
if [[ -z ${ROOT} ]]; then
if [[ ! -f ${EPREFIX}/var/cfengine/ppkeys/localhost.priv ]]; then
einfo "Generating keys for localhost."
"${EPREFIX}"/usr/sbin/cfkey
fi
else
die "cfengine cfkey does not support any value of ROOT other than /."
fi
}

View File

@@ -1,116 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="An automated suite of programs for configuring and maintaining
Unix-like computers"
HOMEPAGE="http://www.cfengine.org/"
SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="vim-syntax"
RDEPEND=">=sys-libs/db-4:=
<dev-libs/openssl-1.1:=
app-portage/portage-utils
net-libs/libnsl:="
DEPEND="${RDEPEND}
virtual/yacc
sys-devel/flex"
PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
src_prepare() {
eapply_user
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
# https://bugs.gentoo.org/339808
eapply "${FILESDIR}/admit-noclass-520696.patch" \
"${FILESDIR}/511666-segfault.patch" \
"${FILESDIR}/${P}-snprintf_buffer_overflow.patch" \
"${FILESDIR}/${PN}-2.2.10-lsbrelease.patch"
# 2048 causes crashes on some 32-bit hardened kernels, and the warning
# messages say to turn it back down.
if use x86; then
sed -i -e "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h || die
fi
}
src_configure() {
# Enforce /var/cfengine for historical compatibility
econf \
--disable-static \
--with-workdir=/var/cfengine \
--with-berkeleydb=/usr
# Fix Makefile to skip doc,inputs, & contrib install to wrong locations
sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' \
-e 's/\(SUBDIRS.*\) contrib inputs/\1/' \
-e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
# Fix man pages
sed -i -e 's@/usr/local@/usr@' doc/*.8 || die
}
src_install() {
newinitd "${FILESDIR}"/cfservd.rc6 cfservd
newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd
newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd
emake DESTDIR="${D}" install
# Remove static library and libtool file as they are not needed
rm "${ED}"/usr/$(get_libdir)/*.la || die
dodoc AUTHORS ChangeLog README TODO INSTALL
# Manually install doc and inputs
doman doc/*.8
doinfo doc/*.info*
docinto examples
dodoc inputs/*.example
# Create cfengine working directory
dodir /var/cfengine
fperms 700 /var/cfengine
keepdir /var/cfengine/bin
keepdir /var/cfengine/inputs
keepdir /var/cfengine/modules
}
pkg_postinst() {
# Copy cfagent into the cfengine tree otherwise cfexecd won't
# find it. Most hosts cache their copy of the cfengine
# binaries here. This is the default search location for the
# binaries.
cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
einfo
einfo "NOTE: The cfportage module has been deprecated in favor of the"
einfo " upstream 'packages' action."
einfo
einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
einfo
einfo "To run cfengine out of cron every half hour modify your crontab:"
einfo "0,30 * * * * /usr/sbin/cfexecd -F"
einfo
elog "You MUST generate the keys for cfengine by running:"
elog "emerge --config ${CATEGORY}/${PN}"
}
pkg_config() {
if [[ -z ${ROOT} ]]; then
if [[ ! -f ${EPREFIX}/var/cfengine/ppkeys/localhost.priv ]]; then
einfo "Generating keys for localhost."
"${EPREFIX}"/usr/sbin/cfkey
fi
else
die "cfengine cfkey does not support any value of ROOT other than /."
fi
}