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