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