Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/cfengine/
Date: Fri, 04 Oct 2019 19:10:36
Message-Id: 1570216070.0038606ea706c7dc8466a35401cc705e7ec36837.mgorny@gentoo
1 commit: 0038606ea706c7dc8466a35401cc705e7ec36837
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 4 19:07:30 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 4 19:07:50 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0038606e
7
8 net-misc/cfengine: Drop old (EAPI=2)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/cfengine/cfengine-2.2.10-r4.ebuild | 113 ----------------------------
13 1 file changed, 113 deletions(-)
14
15 diff --git a/net-misc/cfengine/cfengine-2.2.10-r4.ebuild b/net-misc/cfengine/cfengine-2.2.10-r4.ebuild
16 deleted file mode 100644
17 index 0c4a8b4c552..00000000000
18 --- a/net-misc/cfengine/cfengine-2.2.10-r4.ebuild
19 +++ /dev/null
20 @@ -1,113 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="2"
25 -
26 -inherit eutils multilib
27 -
28 -DESCRIPTION="An automated suite of programs for configuring and maintaining
29 -Unix-like computers"
30 -HOMEPAGE="http://www.cfengine.org/"
31 -SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="amd64 arm ppc ppc64 ~s390 sparc x86"
36 -IUSE="vim-syntax"
37 -
38 -RDEPEND=">=sys-libs/db-4
39 - >=dev-libs/openssl-0.9.7
40 - app-portage/portage-utils
41 - net-libs/libnsl"
42 -DEPEND="${RDEPEND}
43 - virtual/yacc
44 - sys-devel/flex"
45 -PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
46 -
47 -src_prepare() {
48 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
49 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
50 - # https://bugs.gentoo.org/339808
51 - epatch "${FILESDIR}/admit-noclass-520696.patch" \
52 - "${FILESDIR}/511666-segfault.patch" \
53 - "${FILESDIR}/${P}-snprintf_buffer_overflow.patch"
54 -
55 - # 2048 causes crashes on some 32-bit hardened kernels, and the warning
56 - # messages say to turn it back down.
57 - use x86 && sed -ie "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h
58 -}
59 -
60 -src_configure() {
61 - # Enforce /var/cfengine for historical compatibility
62 - econf \
63 - --with-workdir=/var/cfengine \
64 - --with-berkeleydb=/usr
65 -
66 - # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
67 - sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile
68 - sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile
69 - sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile
70 -
71 - # Fix man pages
72 - sed -i -e 's/\/usr\/local/\/usr/' doc/*.8
73 -}
74 -
75 -src_install() {
76 - newinitd "${FILESDIR}"/cfservd.rc6 cfservd || die
77 - newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd || die
78 - newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd || die
79 -
80 - make DESTDIR="${D}" install || die
81 -
82 - # Remove static library and libtool file as they are not needed
83 - rm "${D}"/usr/$(get_libdir)/*.la
84 - rm "${D}"/usr/$(get_libdir)/*.a
85 -
86 - dodoc AUTHORS ChangeLog README TODO INSTALL
87 -
88 - # Manually install doc and inputs
89 - doman doc/*.8
90 - docinto examples
91 - doinfo doc/*.info*
92 - dodoc inputs/*.example
93 -
94 - # Create cfengine working directory
95 - mkdir -p "${D}"/var/cfengine
96 - fperms 700 /var/cfengine
97 - keepdir /var/cfengine/bin
98 - keepdir /var/cfengine/inputs
99 - dodir /var/cfengine/modules
100 -}
101 -
102 -pkg_postinst() {
103 - # Copy cfagent into the cfengine tree otherwise cfexecd won't
104 - # find it. Most hosts cache their copy of the cfengine
105 - # binaries here. This is the default search location for the
106 - # binaries.
107 -
108 - cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
109 -
110 - einfo
111 - einfo "NOTE: The cfportage module has been deprecated in favor of the"
112 - einfo " upstream 'packages' action."
113 - einfo
114 - einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
115 - einfo
116 - einfo "To run cfengine out of cron every half hour modify your crontab:"
117 - einfo "0,30 * * * * /usr/sbin/cfexecd -F"
118 - einfo
119 -
120 - elog "You MUST generate the keys for cfengine by running:"
121 - elog "emerge --config ${CATEGORY}/${PN}"
122 -}
123 -
124 -pkg_config() {
125 - if [ "${ROOT}" == "/" ]; then
126 - if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
127 - einfo "Generating keys for localhost."
128 - /usr/sbin/cfkey
129 - fi
130 - else
131 - die "cfengine cfkey does not support any value of ROOT other than /."
132 - fi
133 -}