Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cfengine: cfengine-2.2.10-r4.ebuild ChangeLog
Date: Tue, 01 Nov 2011 18:47:23
Message-Id: 20111101184711.E2A5F2004B@flycatcher.gentoo.org
1 robbat2 11/11/01 18:47:11
2
3 Modified: ChangeLog
4 Added: cfengine-2.2.10-r4.ebuild
5 Log:
6 Revbump with a fix for some hardened boxes in infra and OSUOSL.
7
8 (Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.139 net-misc/cfengine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.139&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.139&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?r1=1.138&r2=1.139
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v
20 retrieving revision 1.138
21 retrieving revision 1.139
22 diff -p -w -b -B -u -u -r1.138 -r1.139
23 --- ChangeLog 20 Sep 2011 15:35:34 -0000 1.138
24 +++ ChangeLog 1 Nov 2011 18:47:11 -0000 1.139
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/cfengine
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.138 2011/09/20 15:35:34 idl0r Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.139 2011/11/01 18:47:11 robbat2 Exp $
30 +
31 +*cfengine-2.2.10-r4 (01 Nov 2011)
32 +
33 + 01 Nov 2011; Robin H. Johnson <robbat2@g.o>
34 + +cfengine-2.2.10-r4.ebuild:
35 + Revbump with a fix for some hardened boxes in infra and OSUOSL.
36
37 *cfengine-3.2.1 (20 Sep 2011)
38
39
40
41
42 1.1 net-misc/cfengine/cfengine-2.2.10-r4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cfengine-2.2.10-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r4.ebuild,v 1.1 2011/11/01 18:47:11 robbat2 Exp $
52
53 EAPI="2"
54
55 inherit eutils
56
57 DESCRIPTION="An automated suite of programs for configuring and maintaining
58 Unix-like computers"
59 HOMEPAGE="http://www.cfengine.org/"
60 SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
65 IUSE="vim-syntax"
66
67 DEPEND=">=sys-libs/db-4
68 >=dev-libs/openssl-0.9.7
69 app-portage/portage-utils"
70 RDEPEND="${DEPEND}"
71 PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
72
73 src_prepare() {
74 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520696
75 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511666
76 # http://bugs.gentoo.org/339808
77 epatch "${FILESDIR}/admit-noclass-520696.patch" \
78 "${FILESDIR}/511666-segfault.patch" \
79 "${FILESDIR}/${P}-snprintf_buffer_overflow.patch"
80
81 # 2048 causes crashes on some 32-bit hardened kernels, and the warning
82 # messages say to turn it back down.
83 use x86 && sed -ie "s:CF_IFREQ 2048:CF_IFREQ 1024:g" src/cf.defs.h
84 }
85
86 src_configure() {
87 # Enforce /var/cfengine for historical compatibility
88 econf \
89 --with-workdir=/var/cfengine \
90 --with-berkeleydb=/usr
91
92 # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
93 sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile
94 sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile
95 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile
96
97 # Fix man pages
98 sed -i -e 's/\/usr\/local/\/usr/' doc/*.8
99 }
100
101 src_install() {
102 newinitd "${FILESDIR}"/cfservd.rc6 cfservd || die
103 newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd || die
104 newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd || die
105
106 make DESTDIR="${D}" install || die
107
108 # Remove static library and libtool file as they are not needed
109 rm "${D}"/usr/$(get_libdir)/*.la
110 rm "${D}"/usr/$(get_libdir)/*.a
111
112 dodoc AUTHORS ChangeLog README TODO INSTALL
113
114 # Manually install doc and inputs
115 doman doc/*.8
116 docinto examples
117 doinfo doc/*.info*
118 dodoc inputs/*.example
119
120 # Create cfengine working directory
121 mkdir -p "${D}"/var/cfengine
122 fperms 700 /var/cfengine
123 keepdir /var/cfengine/bin
124 keepdir /var/cfengine/inputs
125 dodir /var/cfengine/modules
126 }
127
128 pkg_postinst() {
129 # Copy cfagent into the cfengine tree otherwise cfexecd won't
130 # find it. Most hosts cache their copy of the cfengine
131 # binaries here. This is the default search location for the
132 # binaries.
133
134 cp -f /usr/sbin/cf{agent,servd,execd} "${ROOT}"/var/cfengine/bin/
135
136 einfo
137 einfo "NOTE: The cfportage module has been deprecated in favor of the"
138 einfo " upstream 'packages' action."
139 einfo
140 einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
141 einfo
142 einfo "To run cfengine out of cron every half hour modify your crontab:"
143 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
144 einfo
145
146 elog "You MUST generate the keys for cfengine by running:"
147 elog "emerge --config ${CATEGORY}/${PN}"
148 }
149
150 pkg_config() {
151 if [ "${ROOT}" == "/" ]; then
152 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
153 einfo "Generating keys for localhost."
154 /usr/sbin/cfkey
155 fi
156 else
157 die "cfengine cfkey does not support any value of ROOT other than /."
158 fi
159 }