Gentoo Archives: gentoo-commits

From: "Marc Schiffbauer (mschiff)" <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cfengine: cfengine-3.5.3.ebuild ChangeLog
Date: Thu, 27 Feb 2014 17:45:08
Message-Id: 20140227174503.1A4722004C@flycatcher.gentoo.org
1 mschiff 14/02/27 17:45:03
2
3 Modified: ChangeLog
4 Added: cfengine-3.5.3.ebuild
5 Log:
6 Version bump to 3.5.3.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134)
9
10 Revision Changes Path
11 1.167 net-misc/cfengine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.167&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.167&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?r1=1.166&r2=1.167
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v
20 retrieving revision 1.166
21 retrieving revision 1.167
22 diff -u -r1.166 -r1.167
23 --- ChangeLog 22 Feb 2014 23:31:23 -0000 1.166
24 +++ ChangeLog 27 Feb 2014 17:45:02 -0000 1.167
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/cfengine
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.166 2014/02/22 23:31:23 mschiff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.167 2014/02/27 17:45:02 mschiff Exp $
30 +
31 +*cfengine-3.5.3 (27 Feb 2014)
32 +
33 + 27 Feb 2014; Marc Schiffbauer <mschiff@g.o> +cfengine-3.5.3.ebuild,
34 + +files/cfengine-3.5.3-ifconfig.patch:
35 + Add 3.5.3 ebuild. Fixed USE=mysql. Removed html and tests USE flags. Fixes
36 + #491838. Should fix #464358
37
38 *cfengine-3.4.5 (22 Feb 2014)
39
40
41
42
43 1.1 net-misc/cfengine/cfengine-3.5.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.5.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.5.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cfengine-3.5.3.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.5.3.ebuild,v 1.1 2014/02/27 17:45:02 mschiff Exp $
53
54 EAPI="5"
55
56 inherit eutils autotools flag-o-matic
57
58 MY_PV="${PV//_beta/b}"
59 MY_PV="${MY_PV/_p/p}"
60 MY_P="${PN}-${MY_PV}"
61
62 DESCRIPTION="An automated suite of programs for configuring and maintaining
63 Unix-like computers"
64 HOMEPAGE="http://www.cfengine.org/"
65 SRC_URI="http://cfengine.com/source-code/download?file=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
66
67 LICENSE="GPL-3"
68 SLOT="3"
69 KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
70
71 IUSE="acl examples libvirt mysql postgres +qdbm selinux tokyocabinet vim-syntax xml"
72
73 DEPEND="acl? ( virtual/acl )
74 mysql? ( virtual/mysql )
75 postgres? ( dev-db/postgresql-base )
76 selinux? ( sys-libs/libselinux )
77 tokyocabinet? ( dev-db/tokyocabinet )
78 qdbm? ( dev-db/qdbm )
79 libvirt? ( app-emulation/libvirt )
80 xml? ( dev-libs/libxml2:2 ) \
81 dev-libs/openssl
82 dev-libs/libpcre"
83 RDEPEND="${DEPEND}"
84 PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
85
86 REQUIRED_USE="qdbm? ( !tokyocabinet )
87 tokyocabinet? ( !qdbm )
88 !tokyocabinet? ( qdbm )
89 !qdbm? ( tokyocabinet )"
90
91 S="${WORKDIR}/${MY_P}"
92
93 src_prepare() {
94 default
95
96 epatch "${FILESDIR}/${PN}-3.4.5-acl.patch"
97 epatch "${FILESDIR}/${P}-ifconfig.patch"
98
99 eautoreconf
100 }
101
102 src_configure() {
103 # Enforce /var/cfengine for historical compatibility
104
105 econf \
106 --enable-fhs \
107 --docdir=/usr/share/doc/${PF} \
108 --with-workdir=/var/cfengine \
109 --with-pcre \
110 $(use_with acl libacl) \
111 $(use_with qdbm) \
112 $(use_with tokyocabinet) \
113 $(use_with postgres postgresql) \
114 $(use_with mysql mysql=check) \
115 $(use_with libvirt) \
116 $(use_enable selinux)
117
118 # Fix Makefile to skip inputs, see below "examples"
119 #sed -i -e 's/\(SUBDIRS.*\) inputs/\1/' Makefile || die
120
121 # We install the documentation through portage
122 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
123 }
124
125 src_install() {
126 newinitd "${FILESDIR}"/cf-serverd.rc6 cf-serverd || die
127 newinitd "${FILESDIR}"/cf-monitord.rc6 cf-monitord || die
128 newinitd "${FILESDIR}"/cf-execd.rc6 cf-execd || die
129
130 emake DESTDIR="${D}" install || die
131
132 # fix ifconfig path in provided promises
133 find "${D}"/usr/share -name "*.cf" | xargs sed -i "s,/sbin/ifconfig,$(which ifconfig),g"
134
135 # Evil workaround for now..
136 mv "${D}"/usr/share/doc/${PN}/ "${D}"/usr/share/doc/${PF}
137
138 dodoc AUTHORS
139
140 if ! use examples; then
141 rm -rf "${D}"/usr/share/doc/${PF}/example*
142 fi
143
144 # Create cfengine working directory
145 dodir /var/cfengine/bin
146 fperms 700 /var/cfengine
147
148 # Copy cfagent into the cfengine tree otherwise cfexecd won't
149 # find it. Most hosts cache their copy of the cfengine
150 # binaries here. This is the default search location for the
151 # binaries.
152 for bin in promises agent monitord serverd execd runagent key; do
153 dosym /usr/sbin/cf-$bin /var/cfengine/bin/cf-$bin || die
154 done
155 }
156
157 pkg_postinst() {
158 echo
159 elog "NOTE: BDB (BerkelyDB) support has been removed as of ${PN}-3.3.0"
160 echo
161 einfo "Init scripts for cf-serverd, cf-monitord, and cf-execd are provided."
162 einfo
163 einfo "To run cfengine out of cron every half hour modify your crontab:"
164 einfo "0,30 * * * * /usr/sbin/cf-execd -F"
165 echo
166
167 elog "If you run cfengine the very first time, you MUST generate the keys for cfengine by running:"
168 elog "emerge --config ${CATEGORY}/${PN}"
169
170 # Fix old cf-servd, remove it after some releases.
171 local found=0
172 for fname in $(find /etc/runlevels/ -type f -or -type l -name 'cf-servd'); do
173 found=1
174 rm $fname
175 ln -s /etc/init.d/cf-serverd $(echo $fname | sed 's:cf-servd:cf-serverd:')
176 done
177
178 if [ "${found}" -eq 1 ]; then
179 echo
180 elog "/etc/init.d/cf-servd has been renamed to /etc/init.d/cf-serverd"
181 fi
182 }
183
184 pkg_config() {
185 if [ "${ROOT}" == "/" ]; then
186 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
187 einfo "Generating keys for localhost."
188 /usr/sbin/cf-key
189 fi
190 else
191 die "cfengine cfkey does not support any value of ROOT other than /."
192 fi
193 }