Gentoo Archives: gentoo-commits

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