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: Wed, 16 Sep 2020 23:48:29
Message-Id: 1600299763.c32baff6249e844a97256adb7a4f77bdf0670eb6.bman@gentoo
1 commit: c32baff6249e844a97256adb7a4f77bdf0670eb6
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 16 23:42:43 2020 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 16 23:42:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c32baff6
7
8 net-misc/cfengine: drop old EAPI=4
9
10 * This drops the EAPI=4 ebuild which was the only stable. All of the
11 versions in the repo are severely outdated and were not considered
12 LTS.
13
14 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
15
16 net-misc/cfengine/Manifest | 1 -
17 net-misc/cfengine/cfengine-3.3.9.ebuild | 129 --------------------------------
18 net-misc/cfengine/metadata.xml | 2 -
19 3 files changed, 132 deletions(-)
20
21 diff --git a/net-misc/cfengine/Manifest b/net-misc/cfengine/Manifest
22 index 3f55527d4bf..f671fe6f47b 100644
23 --- a/net-misc/cfengine/Manifest
24 +++ b/net-misc/cfengine/Manifest
25 @@ -1,4 +1,3 @@
26 DIST cfengine-2.2.10.tar.gz 2690333 BLAKE2B a6e0027fc290a46730327f3fc4bf382add421f37759d6972b3f99de92417e77d8c5ff649aa376d216abde017e49072d3bd98aed60a109cb57b9e5920a358923a SHA512 861af25f32248e115512790357cb4739b16bee9d19db33cc1b93ab2091d020991770970fc916796a5894c978ee6a5956100d2f714efb6e97e9e9a9ea88f64dea
27 -DIST cfengine-3.3.9.tar.gz 1256138 BLAKE2B 15a71f5de94f55df9a117331029b81385a8196a5602db5775154527eb1ec63dcf15d55c89b34706e8448baaa6ed8f6cccc4e24bc8c7d6b3c56deedd55d5b606c SHA512 9d64667d001daa2db506abf97ecde43e6b6ac672d3ca6dba4c5e68b742b72f2c7cee65c2f5ab82a12cf0f9b385f48fb0d2bb9eae7fe2ff57b187c725238faf1f
28 DIST cfengine-3.6.2.tar.gz 1966966 BLAKE2B bb5be86ff1562fe44216c05ed179273dc803ef2a20d783f4692fe1fb533cd1914982671cbcc103c5f8f7118f7742f51ccbcdbe4408a86ebc566f444bc581e3df SHA512 b1bf6010d4309980846524ca94bb39f624f4ed0df3af220df91f7210b4441456840dfeeee4d62d6d6260b417ea7cf959509ca96c1a26c6da67bda7b3c1e5dbbc
29 DIST cfengine-masterfiles-3.6.2.tar.gz 119594 BLAKE2B df01bfb5e5970fb386652ab1588d0b7d037d13018904506bd481b91720782bd837f7d54ca550d7b81e2db5fd535f053ac70e4ad5337d473986408e062e3565a7 SHA512 ec942dbfbc848455bbdaa157d6665d3e830cb967bbc07303aa4ee577cf2774d01bc602c57893372538b72d70b8b62b7e2a90ca9f8e59d7420d5b2f94fcd809e9
30
31 diff --git a/net-misc/cfengine/cfengine-3.3.9.ebuild b/net-misc/cfengine/cfengine-3.3.9.ebuild
32 deleted file mode 100644
33 index a671fd89e08..00000000000
34 --- a/net-misc/cfengine/cfengine-3.3.9.ebuild
35 +++ /dev/null
36 @@ -1,129 +0,0 @@
37 -# Copyright 1999-2018 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI="4"
41 -
42 -MY_PV="${PV//_beta/b}"
43 -MY_PV="${MY_PV/_p/p}"
44 -MY_P="${PN}-${MY_PV}"
45 -
46 -DESCRIPTION="An automated suite of programs for configuring and maintaining
47 -Unix-like computers"
48 -HOMEPAGE="http://www.cfengine.org/"
49 -SRC_URI="http://cfengine.com/source-code/download?file=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
50 -
51 -LICENSE="GPL-3"
52 -SLOT="3"
53 -KEYWORDS="amd64 ~arm ~ppc ~s390 ~sparc x86"
54 -
55 -IUSE="examples html libvirt mysql postgres +qdbm selinux tests tokyocabinet vim-syntax"
56 -
57 -DEPEND=">=sys-libs/db-4
58 - mysql? ( virtual/mysql )
59 - postgres? ( dev-db/postgresql )
60 - selinux? ( sys-libs/libselinux )
61 - tokyocabinet? ( dev-db/tokyocabinet )
62 - qdbm? ( dev-db/qdbm )
63 - libvirt? ( app-emulation/libvirt )
64 - >=dev-libs/openssl-0.9.7
65 - dev-libs/libpcre
66 - net-libs/libnsl"
67 -RDEPEND="${DEPEND}"
68 -PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
69 -
70 -REQUIRED_USE="^^ ( qdbm tokyocabinet )"
71 -
72 -S="${WORKDIR}/${MY_P}"
73 -
74 -src_configure() {
75 - # Enforce /var/cfengine for historical compatibility
76 - econf \
77 - --enable-fhs \
78 - --docdir=/usr/share/doc/${PF} \
79 - --with-workdir=/var/cfengine \
80 - --with-pcre \
81 - $(use_with qdbm) \
82 - $(use_with tokyocabinet) \
83 - $(use_with postgres postgresql) \
84 - $(use_with mysql) \
85 - $(use_with libvirt) \
86 - $(use_enable selinux)
87 -
88 - # Fix Makefile to skip inputs, see below "examples"
89 - #sed -i -e 's/\(SUBDIRS.*\) inputs/\1/' Makefile || die
90 -
91 - # We install the documentation through portage
92 - sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
93 -}
94 -
95 -src_install() {
96 - newinitd "${FILESDIR}"/cf-serverd.rc6 cf-serverd
97 - newinitd "${FILESDIR}"/cf-monitord.rc6 cf-monitord
98 - newinitd "${FILESDIR}"/cf-execd.rc6 cf-execd
99 -
100 - emake DESTDIR="${D}" install
101 -
102 - # Evil workaround for now..
103 - mv "${D}"/usr/share/doc/${PN}/ "${D}"/usr/share/doc/${PF}
104 -
105 - dodoc AUTHORS
106 -
107 - if ! use examples; then
108 - rm -rf "${D}"/usr/share/doc/${PF}/example*
109 - fi
110 -
111 - # Create cfengine working directory
112 - dodir /var/cfengine/bin
113 - fperms 700 /var/cfengine
114 -
115 - # Copy cfagent into the cfengine tree otherwise cfexecd won't
116 - # find it. Most hosts cache their copy of the cfengine
117 - # binaries here. This is the default search location for the
118 - # binaries.
119 - for bin in know promises agent monitord serverd execd runagent key report; do
120 - dosym /usr/sbin/cf-$bin /var/cfengine/bin/cf-$bin
121 - done
122 -
123 - if use html; then
124 - docinto html
125 - dohtml -r docs/
126 - fi
127 -}
128 -
129 -pkg_postinst() {
130 - echo
131 - elog "NOTE: BDB (BerkelyDB) support has been removed as of ${PN}-3.3.0"
132 - echo
133 - einfo "Init scripts for cf-serverd, cf-monitord, and cf-execd are provided."
134 - einfo
135 - einfo "To run cfengine out of cron every half hour modify your crontab:"
136 - einfo "0,30 * * * * /usr/sbin/cf-execd -F"
137 - echo
138 -
139 - elog "If you run cfengine the very first time, you MUST generate the keys for cfengine by running:"
140 - elog "emerge --config ${CATEGORY}/${PN}"
141 -
142 - # Fix old cf-servd, remove it after some releases.
143 - local found=0
144 - for fname in $(find /etc/runlevels/ -type f -or -type l -name 'cf-servd'); do
145 - found=1
146 - rm $fname
147 - ln -s /etc/init.d/cf-serverd $(echo $fname | sed 's:cf-servd:cf-serverd:')
148 - done
149 -
150 - if [ "${found}" -eq 1 ]; then
151 - echo
152 - elog "/etc/init.d/cf-servd has been renamed to /etc/init.d/cf-serverd"
153 - fi
154 -}
155 -
156 -pkg_config() {
157 - if [ "${ROOT}" == "/" ]; then
158 - if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
159 - einfo "Generating keys for localhost."
160 - /usr/sbin/cf-key
161 - fi
162 - else
163 - die "cfengine cfkey does not support any value of ROOT other than /."
164 - fi
165 -}
166
167 diff --git a/net-misc/cfengine/metadata.xml b/net-misc/cfengine/metadata.xml
168 index 3c6b17c9adc..e0c37fb6131 100644
169 --- a/net-misc/cfengine/metadata.xml
170 +++ b/net-misc/cfengine/metadata.xml
171 @@ -6,11 +6,9 @@
172 <name>Gentoo Sysadmin Project</name>
173 </maintainer>
174 <use>
175 - <flag name="html">Install HTML documentation</flag>
176 <flag name="libvirt">Enable support for virtual machine management through <pkg>app-emulation/libvirt</pkg></flag>
177 <flag name="masterfiles">Install the Masterfiles Policy Framework</flag>
178 <flag name="qdbm">Use <pkg>dev-db/qdbm</pkg> as database backend</flag>
179 - <flag name="tests">Install test files</flag>
180 <flag name="tokyocabinet">Use <pkg>dev-db/tokyocabinet</pkg> as database backend</flag>
181 </use>
182 <longdescription>