Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/cfengine/
Date: Thu, 17 Sep 2020 01:42:54
Message-Id: 1600306964.09db29821c884bf41c3ff8da5557ee2f5b51705b.bman@gentoo
1 commit: 09db29821c884bf41c3ff8da5557ee2f5b51705b
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 17 01:41:30 2020 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 17 01:42:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09db2982
7
8 net-misc/cfengine: drop old 2.x ebuilds
9
10 * These are blocking dev-libs/openssl-1.x cleanup
11
12 Bug: https://bugs.gentoo.org/741620
13 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
14
15 net-misc/cfengine/Manifest | 1 -
16 net-misc/cfengine/cfengine-2.2.10-r5.ebuild | 115 ---------------------------
17 net-misc/cfengine/cfengine-2.2.10-r6.ebuild | 116 ----------------------------
18 3 files changed, 232 deletions(-)
19
20 diff --git a/net-misc/cfengine/Manifest b/net-misc/cfengine/Manifest
21 index f671fe6f47b..9c943e341df 100644
22 --- a/net-misc/cfengine/Manifest
23 +++ b/net-misc/cfengine/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST cfengine-2.2.10.tar.gz 2690333 BLAKE2B a6e0027fc290a46730327f3fc4bf382add421f37759d6972b3f99de92417e77d8c5ff649aa376d216abde017e49072d3bd98aed60a109cb57b9e5920a358923a SHA512 861af25f32248e115512790357cb4739b16bee9d19db33cc1b93ab2091d020991770970fc916796a5894c978ee6a5956100d2f714efb6e97e9e9a9ea88f64dea
26 DIST cfengine-3.6.2.tar.gz 1966966 BLAKE2B bb5be86ff1562fe44216c05ed179273dc803ef2a20d783f4692fe1fb533cd1914982671cbcc103c5f8f7118f7742f51ccbcdbe4408a86ebc566f444bc581e3df SHA512 b1bf6010d4309980846524ca94bb39f624f4ed0df3af220df91f7210b4441456840dfeeee4d62d6d6260b417ea7cf959509ca96c1a26c6da67bda7b3c1e5dbbc
27 DIST cfengine-masterfiles-3.6.2.tar.gz 119594 BLAKE2B df01bfb5e5970fb386652ab1588d0b7d037d13018904506bd481b91720782bd837f7d54ca550d7b81e2db5fd535f053ac70e4ad5337d473986408e062e3565a7 SHA512 ec942dbfbc848455bbdaa157d6665d3e830cb967bbc07303aa4ee577cf2774d01bc602c57893372538b72d70b8b62b7e2a90ca9f8e59d7420d5b2f94fcd809e9
28
29 diff --git a/net-misc/cfengine/cfengine-2.2.10-r5.ebuild b/net-misc/cfengine/cfengine-2.2.10-r5.ebuild
30 deleted file mode 100644
31 index 22bdd71cfd9..00000000000
32 --- a/net-misc/cfengine/cfengine-2.2.10-r5.ebuild
33 +++ /dev/null
34 @@ -1,115 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -DESCRIPTION="An automated suite of programs for configuring and maintaining
41 -Unix-like computers"
42 -HOMEPAGE="http://www.cfengine.org/"
43 -SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0"
47 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
48 -IUSE="vim-syntax"
49 -
50 -RDEPEND=">=sys-libs/db-4:=
51 - <dev-libs/openssl-1.1:=
52 - app-portage/portage-utils
53 - net-libs/libnsl:="
54 -DEPEND="${RDEPEND}
55 - virtual/yacc
56 - sys-devel/flex"
57 -PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
58 -
59 -src_prepare() {
60 - eapply_user
61 -
62 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
63 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
64 - # https://bugs.gentoo.org/339808
65 - eapply "${FILESDIR}/admit-noclass-520696.patch" \
66 - "${FILESDIR}/511666-segfault.patch" \
67 - "${FILESDIR}/${P}-snprintf_buffer_overflow.patch"
68 -
69 - # 2048 causes crashes on some 32-bit hardened kernels, and the warning
70 - # messages say to turn it back down.
71 - if use x86; then
72 - sed -i -e "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h || die
73 - fi
74 -}
75 -
76 -src_configure() {
77 - # Enforce /var/cfengine for historical compatibility
78 - econf \
79 - --disable-static \
80 - --with-workdir=/var/cfengine \
81 - --with-berkeleydb=/usr
82 -
83 - # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
84 - sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' \
85 - -e 's/\(SUBDIRS.*\) contrib inputs/\1/' \
86 - -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
87 -
88 - # Fix man pages
89 - sed -i -e 's@/usr/local@/usr@' doc/*.8 || die
90 -}
91 -
92 -src_install() {
93 - newinitd "${FILESDIR}"/cfservd.rc6 cfservd
94 - newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd
95 - newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd
96 -
97 - emake DESTDIR="${D}" install
98 -
99 - # Remove static library and libtool file as they are not needed
100 - rm "${ED}"/usr/$(get_libdir)/*.la || die
101 -
102 - dodoc AUTHORS ChangeLog README TODO INSTALL
103 -
104 - # Manually install doc and inputs
105 - doman doc/*.8
106 - doinfo doc/*.info*
107 - docinto examples
108 - dodoc inputs/*.example
109 -
110 - # Create cfengine working directory
111 - dodir /var/cfengine
112 - fperms 700 /var/cfengine
113 - keepdir /var/cfengine/bin
114 - keepdir /var/cfengine/inputs
115 - keepdir /var/cfengine/modules
116 -}
117 -
118 -pkg_postinst() {
119 - # Copy cfagent into the cfengine tree otherwise cfexecd won't
120 - # find it. Most hosts cache their copy of the cfengine
121 - # binaries here. This is the default search location for the
122 - # binaries.
123 -
124 - cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
125 -
126 - einfo
127 - einfo "NOTE: The cfportage module has been deprecated in favor of the"
128 - einfo " upstream 'packages' action."
129 - einfo
130 - einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
131 - einfo
132 - einfo "To run cfengine out of cron every half hour modify your crontab:"
133 - einfo "0,30 * * * * /usr/sbin/cfexecd -F"
134 - einfo
135 -
136 - elog "You MUST generate the keys for cfengine by running:"
137 - elog "emerge --config ${CATEGORY}/${PN}"
138 -}
139 -
140 -pkg_config() {
141 - if [[ -z ${ROOT} ]]; then
142 - if [[ ! -f ${EPREFIX}/var/cfengine/ppkeys/localhost.priv ]]; then
143 - einfo "Generating keys for localhost."
144 - "${EPREFIX}"/usr/sbin/cfkey
145 - fi
146 - else
147 - die "cfengine cfkey does not support any value of ROOT other than /."
148 - fi
149 -}
150
151 diff --git a/net-misc/cfengine/cfengine-2.2.10-r6.ebuild b/net-misc/cfengine/cfengine-2.2.10-r6.ebuild
152 deleted file mode 100644
153 index d172669af7b..00000000000
154 --- a/net-misc/cfengine/cfengine-2.2.10-r6.ebuild
155 +++ /dev/null
156 @@ -1,116 +0,0 @@
157 -# Copyright 1999-2020 Gentoo Authors
158 -# Distributed under the terms of the GNU General Public License v2
159 -
160 -EAPI=7
161 -
162 -DESCRIPTION="An automated suite of programs for configuring and maintaining
163 -Unix-like computers"
164 -HOMEPAGE="http://www.cfengine.org/"
165 -SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
166 -
167 -LICENSE="GPL-2"
168 -SLOT="0"
169 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
170 -IUSE="vim-syntax"
171 -
172 -RDEPEND=">=sys-libs/db-4:=
173 - <dev-libs/openssl-1.1:=
174 - app-portage/portage-utils
175 - net-libs/libnsl:="
176 -DEPEND="${RDEPEND}
177 - virtual/yacc
178 - sys-devel/flex"
179 -PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
180 -
181 -src_prepare() {
182 - eapply_user
183 -
184 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
185 - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
186 - # https://bugs.gentoo.org/339808
187 - eapply "${FILESDIR}/admit-noclass-520696.patch" \
188 - "${FILESDIR}/511666-segfault.patch" \
189 - "${FILESDIR}/${P}-snprintf_buffer_overflow.patch" \
190 - "${FILESDIR}/${PN}-2.2.10-lsbrelease.patch"
191 -
192 - # 2048 causes crashes on some 32-bit hardened kernels, and the warning
193 - # messages say to turn it back down.
194 - if use x86; then
195 - sed -i -e "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h || die
196 - fi
197 -}
198 -
199 -src_configure() {
200 - # Enforce /var/cfengine for historical compatibility
201 - econf \
202 - --disable-static \
203 - --with-workdir=/var/cfengine \
204 - --with-berkeleydb=/usr
205 -
206 - # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
207 - sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' \
208 - -e 's/\(SUBDIRS.*\) contrib inputs/\1/' \
209 - -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
210 -
211 - # Fix man pages
212 - sed -i -e 's@/usr/local@/usr@' doc/*.8 || die
213 -}
214 -
215 -src_install() {
216 - newinitd "${FILESDIR}"/cfservd.rc6 cfservd
217 - newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd
218 - newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd
219 -
220 - emake DESTDIR="${D}" install
221 -
222 - # Remove static library and libtool file as they are not needed
223 - rm "${ED}"/usr/$(get_libdir)/*.la || die
224 -
225 - dodoc AUTHORS ChangeLog README TODO INSTALL
226 -
227 - # Manually install doc and inputs
228 - doman doc/*.8
229 - doinfo doc/*.info*
230 - docinto examples
231 - dodoc inputs/*.example
232 -
233 - # Create cfengine working directory
234 - dodir /var/cfengine
235 - fperms 700 /var/cfengine
236 - keepdir /var/cfengine/bin
237 - keepdir /var/cfengine/inputs
238 - keepdir /var/cfengine/modules
239 -}
240 -
241 -pkg_postinst() {
242 - # Copy cfagent into the cfengine tree otherwise cfexecd won't
243 - # find it. Most hosts cache their copy of the cfengine
244 - # binaries here. This is the default search location for the
245 - # binaries.
246 -
247 - cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
248 -
249 - einfo
250 - einfo "NOTE: The cfportage module has been deprecated in favor of the"
251 - einfo " upstream 'packages' action."
252 - einfo
253 - einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
254 - einfo
255 - einfo "To run cfengine out of cron every half hour modify your crontab:"
256 - einfo "0,30 * * * * /usr/sbin/cfexecd -F"
257 - einfo
258 -
259 - elog "You MUST generate the keys for cfengine by running:"
260 - elog "emerge --config ${CATEGORY}/${PN}"
261 -}
262 -
263 -pkg_config() {
264 - if [[ -z ${ROOT} ]]; then
265 - if [[ ! -f ${EPREFIX}/var/cfengine/ppkeys/localhost.priv ]]; then
266 - einfo "Generating keys for localhost."
267 - "${EPREFIX}"/usr/sbin/cfkey
268 - fi
269 - else
270 - die "cfengine cfkey does not support any value of ROOT other than /."
271 - fi
272 -}