Gentoo Archives: gentoo-commits

From: "Christian Zoffoli (xmerlin)" <xmerlin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-block/partimage: ChangeLog partimage-0.6.6.ebuild partimage-0.6.4-r4.ebuild partimage-0.6.4-r3.ebuild partimage-0.6.7.ebuild
Date: Tue, 26 Feb 2008 19:08:09
Message-Id: E1JU59q-0003RS-Nk@stork.gentoo.org
1 xmerlin 08/02/26 19:08:06
2
3 Modified: ChangeLog partimage-0.6.6.ebuild
4 partimage-0.6.4-r4.ebuild partimage-0.6.4-r3.ebuild
5 Added: partimage-0.6.7.ebuild
6 Log:
7 0.6.6 marked stable, version bump 0.6.7, ebuild cleanup (removed already merged patches).
8 0.6.6 and the amd64 patch will be removed soon (when 0.6.7 will be marked stable).
9 (Portage version: 2.1.4.4)
10
11 Revision Changes Path
12 1.33 sys-block/partimage/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/ChangeLog?rev=1.33&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/ChangeLog?rev=1.33&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/ChangeLog?r1=1.32&r2=1.33
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v
21 retrieving revision 1.32
22 retrieving revision 1.33
23 diff -u -r1.32 -r1.33
24 --- ChangeLog 9 Feb 2008 13:03:26 -0000 1.32
25 +++ ChangeLog 26 Feb 2008 19:08:06 -0000 1.33
26 @@ -1,6 +1,15 @@
27 # ChangeLog for sys-block/partimage
28 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.32 2008/02/09 13:03:26 drac Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.33 2008/02/26 19:08:06 xmerlin Exp $
31 +
32 +*partimage-0.6.7 (26 Feb 2008)
33 +
34 + 26 Feb 2008; Christian Zoffoli <xmerlin@g.o>
35 + +files/partimage-0.6.7-chown.patch,
36 + +files/partimage-0.6.7-datadir-path.patch, partimage-0.6.4-r3.ebuild,
37 + partimage-0.6.4-r4.ebuild, partimage-0.6.6.ebuild,
38 + +partimage-0.6.7.ebuild:
39 + 0.6.6 marked stable, version bump 0.6.7, ebuild cleanup (removed already merged patches).
40
41 09 Feb 2008; Samuli Suominen <drac@g.o> partimage-0.6.6.ebuild:
42 Fix partimage to work with slang 2.1.3.
43
44
45
46 1.3 sys-block/partimage/partimage-0.6.6.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild?rev=1.3&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild?rev=1.3&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild?r1=1.2&r2=1.3
51
52 Index: partimage-0.6.6.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild,v
55 retrieving revision 1.2
56 retrieving revision 1.3
57 diff -u -r1.2 -r1.3
58 --- partimage-0.6.6.ebuild 9 Feb 2008 13:03:26 -0000 1.2
59 +++ partimage-0.6.6.ebuild 26 Feb 2008 19:08:06 -0000 1.3
60 @@ -1,17 +1,17 @@
61 # Copyright 1999-2008 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild,v 1.2 2008/02/09 13:03:26 drac Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.6.ebuild,v 1.3 2008/02/26 19:08:06 xmerlin Exp $
65
66 WANT_AUTOMAKE="1.10"
67
68 inherit eutils flag-o-matic pam autotools
69
70 -DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support."
71 +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file."
72 HOMEPAGE="http://www.partimage.org/"
73 SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2"
74 LICENSE="GPL-2"
75 SLOT="0"
76 -KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
77 +KEYWORDS="x86 ~amd64 ~ppc ~sparc"
78 IUSE="ssl nologin nls pam static"
79
80 DEPEND="virtual/libc
81 @@ -103,7 +103,7 @@
82 newconfd "${FILESDIR}"/${PN}d.conf ${PN}d || die
83
84 doman doc/en/man/partimage.1 doc/en/man/partimaged.8 doc/en/man/partimagedusers.5
85 - dodoc AUTHORS BUGS COPYING ChangeLog INSTALL README* TODO partimage.lsm
86 + dodoc AUTHORS BUGS ChangeLog INSTALL README* TODO partimage.lsm
87
88 # pam
89 if use pam
90
91
92
93 1.17 sys-block/partimage/partimage-0.6.4-r4.ebuild
94
95 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild?rev=1.17&view=markup
96 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild?rev=1.17&content-type=text/plain
97 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild?r1=1.16&r2=1.17
98
99 Index: partimage-0.6.4-r4.ebuild
100 ===================================================================
101 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild,v
102 retrieving revision 1.16
103 retrieving revision 1.17
104 diff -u -r1.16 -r1.17
105 --- partimage-0.6.4-r4.ebuild 15 Jan 2008 12:05:20 -0000 1.16
106 +++ partimage-0.6.4-r4.ebuild 26 Feb 2008 19:08:06 -0000 1.17
107 @@ -1,13 +1,13 @@
108 # Copyright 1999-2008 Gentoo Foundation
109 # Distributed under the terms of the GNU General Public License v2
110 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild,v 1.16 2008/01/15 12:05:20 xmerlin Exp $
111 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r4.ebuild,v 1.17 2008/02/26 19:08:06 xmerlin Exp $
112
113 WANT_AUTOMAKE="1.8"
114
115 inherit eutils flag-o-matic pam autotools
116
117 MY_P="${PN}-${PV}-1"
118 -DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support."
119 +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file."
120 HOMEPAGE="http://www.partimage.org/"
121 SRC_URI="mirror://sourceforge/partimage/${MY_P}.tar.bz2"
122 LICENSE="GPL-2"
123 @@ -113,7 +113,7 @@
124 newconfd "${FILESDIR}"/${PN}d.conf ${PN}d || die
125
126 doman debian/partimage.1 debian/partimaged.8 "${FILESDIR}"/partimagedusers.5 || die
127 - dodoc AUTHORS BUGS COPYING ChangeLog INSTALL README* TODO partimage.lsm
128 + dodoc AUTHORS BUGS ChangeLog INSTALL README* TODO partimage.lsm
129
130 # pam
131 if use pam
132
133
134
135 1.23 sys-block/partimage/partimage-0.6.4-r3.ebuild
136
137 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild?rev=1.23&view=markup
138 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild?rev=1.23&content-type=text/plain
139 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild?r1=1.22&r2=1.23
140
141 Index: partimage-0.6.4-r3.ebuild
142 ===================================================================
143 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild,v
144 retrieving revision 1.22
145 retrieving revision 1.23
146 diff -u -r1.22 -r1.23
147 --- partimage-0.6.4-r3.ebuild 15 Jan 2008 12:05:20 -0000 1.22
148 +++ partimage-0.6.4-r3.ebuild 26 Feb 2008 19:08:06 -0000 1.23
149 @@ -1,12 +1,12 @@
150 # Copyright 1999-2008 Gentoo Foundation
151 # Distributed under the terms of the GNU General Public License v2
152 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild,v 1.22 2008/01/15 12:05:20 xmerlin Exp $
153 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.4-r3.ebuild,v 1.23 2008/02/26 19:08:06 xmerlin Exp $
154
155 WANT_AUTOMAKE="1.8"
156
157 inherit eutils flag-o-matic autotools
158
159 -DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support."
160 +DESCRIPTION="Console-based application to efficiently save raw partition data to an image file."
161 HOMEPAGE="http://www.partimage.org/"
162 SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2"
163 LICENSE="GPL-2"
164 @@ -82,7 +82,7 @@
165 newconfd "${FILESDIR}"/${PN}d.conf ${PN}d || die
166
167 doman debian/partimage.1 debian/partimaged.8 "${FILESDIR}"/partimagedusers.5 || die
168 - dodoc AUTHORS BUGS COPYING ChangeLog INSTALL README* TODO partimage.lsm
169 + dodoc AUTHORS BUGS ChangeLog INSTALL README* TODO partimage.lsm
170 }
171
172 # vars for SSL stuff
173
174
175
176 1.1 sys-block/partimage/partimage-0.6.7.ebuild
177
178 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.7.ebuild?rev=1.1&view=markup
179 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/partimage/partimage-0.6.7.ebuild?rev=1.1&content-type=text/plain
180
181 Index: partimage-0.6.7.ebuild
182 ===================================================================
183 # Copyright 1999-2008 Gentoo Foundation
184 # Distributed under the terms of the GNU General Public License v2
185 # $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.7.ebuild,v 1.1 2008/02/26 19:08:06 xmerlin Exp $
186
187 WANT_AUTOMAKE="1.10"
188
189 inherit eutils flag-o-matic pam autotools
190
191 DESCRIPTION="Console-based application to efficiently save raw partition data to an image file."
192 HOMEPAGE="http://www.partimage.org/"
193 SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2"
194 LICENSE="GPL-2"
195 SLOT="0"
196 KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
197 IUSE="ssl nologin nls pam static"
198
199 DEPEND="virtual/libc
200 >=sys-libs/zlib-1.1.4
201 >=dev-libs/newt-0.51.6
202 app-arch/bzip2
203 >=sys-libs/slang-1.4
204 nls? ( sys-devel/gettext )
205 ssl? ( >=dev-libs/openssl-0.9.6g )"
206
207 RDEPEND="!static? ( virtual/libc
208 >=sys-libs/zlib-1.1.4
209 >=dev-libs/lzo-1.08
210 >=dev-libs/newt-0.51.6
211 app-arch/bzip2
212 >=sys-libs/slang-1.4
213 nls? ( sys-devel/gettext ) ssl? ( >=dev-libs/openssl-0.9.6g )
214 pam? ( virtual/pam )
215 )"
216
217 PARTIMAG_GROUP_GID=91
218 PARTIMAG_USER_UID=91
219 PARTIMAG_GROUP_NAME=partimag
220 PARTIMAG_USER_NAME=partimag
221 PARTIMAG_USER_SH=-1
222 PARTIMAG_USER_HOMEDIR=/var/log/partimage
223 PARTIMAG_USER_GROUPS=partimag
224
225 pkg_setup() {
226 # Now add users if needed
227 enewgroup ${PARTIMAG_GROUP_NAME} ${PARTIMAG_GROUP_GID}
228 enewuser ${PARTIMAG_USER_NAME} ${PARTIMAG_USER_UID} ${PARTIMAG_USER_SH} ${PARTIMAG_USER_HOMEDIR} ${PARTIMAG_USER_GROUPS}
229 }
230
231 src_unpack() {
232 unpack ${A}
233 cd "${S}"
234
235 epatch "${FILESDIR}"/${PN}-0.6.4-save_file_and_rest_file_actions.patch || die
236 #epatch "${FILESDIR}"/${PN}-0.6.6-not_install_info.patch || die
237 epatch "${FILESDIR}"/${P}-chown.patch || die
238 epatch "${FILESDIR}"/${PN}-0.6.6-disable_header_check.patch || die
239 epatch "${FILESDIR}"/${P}-datadir-path.patch || die
240 }
241
242 src_compile() {
243 filter-flags -fno-exceptions
244 use ppc && append-flags -fsigned-char
245
246 local myconf
247 use nologin && myconf="${myconf} --disable-login"
248 if use static
249 then
250 use pam && ewarn "pam and static compilation are mutually exclusive - using static and ignoring pam"
251 else
252 myconf="${myconf} `use_enable pam`"
253 fi
254 econf \
255 ${myconf} \
256 --sysconfdir=/etc \
257 `use_enable ssl` \
258 `use_enable nls` \
259 `use_enable static all-static` \
260 || die "econf failed"
261
262 emake || die "make failed"
263 }
264
265 src_install() {
266 emake DESTDIR="${D}" \
267 MKINSTALLDIRS=/usr/share/automake-1.10/mkinstalldirs install || die
268
269 keepdir /var/log/partimage
270
271 insinto /etc/partimaged; doins "${FILESDIR}"/servercert.cnf || die
272
273 # init.d / conf.d
274 newinitd "${FILESDIR}"/${PN}d.init ${PN}d || die
275 newconfd "${FILESDIR}"/${PN}d.conf ${PN}d || die
276
277 doman doc/en/man/partimage.1 doc/en/man/partimaged.8 doc/en/man/partimagedusers.5
278 dodoc AUTHORS BUGS ChangeLog INSTALL README* TODO partimage.lsm
279
280 # pam
281 if use pam
282 then
283 newpamd "${FILESDIR}"/partimaged.pam partimaged || die
284 fi
285 }
286
287 # vars for SSL stuff
288 confdir="${ROOT}etc/partimaged"
289 privkey="${confdir}/partimaged.key"
290 cnf="${confdir}/servercert.cnf"
291 csr="${confdir}/partimaged.csr"
292 cert="${confdir}/partimaged.cert"
293
294 pkg_config() {
295 if use ssl; then
296 ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!"
297 ewarn "Press Ctrl-C to break now for it, or press enter to continue."
298 read
299 if [ ! -f ${privkey} ]; then
300 einfo "Generating unencrypted private key: ${privkey}"
301 openssl genrsa -out ${privkey} 1024 || die "Failed!"
302 else
303 einfo "Private key already exists: ${privkey}"
304 fi
305 if [ ! -f ${csr} ]; then
306 einfo "Generating certificate request: ${csr}"
307 openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die "Failed!"
308 else
309 einfo "Certificate request already exists: ${csr}"
310 fi
311 if [ ! -f ${cert} ]; then
312 einfo "Generating self-signed certificate: ${cert}"
313 openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die "Failed!"
314 else
315 einfo "Self-signed certifcate already exists: ${cert}"
316 fi
317 einfo "Setting permissions"
318 partimagesslperms || die "Failed!"
319 einfo "Done"
320 else
321 einfo "SSL is disabled, not building certificates"
322 fi
323 }
324
325 partimagesslperms() {
326 local ret=0
327 chmod 600 ${privkey} 2>/dev/null
328 ret=$((${ret}+$?))
329 chown partimag:0 ${privkey} 2>/dev/null
330 ret=$((${ret}+$?))
331 chmod 644 ${cert} ${csr} 2>/dev/null
332 ret=$((${ret}+$?))
333 chown root:0 ${cert} ${csr} 2>/dev/null
334 ret=$((${ret}+$?))
335 return $ret
336 }
337
338 pkg_postinst() {
339 if use ssl; then
340 einfo "To create the required SSL certificates, please do:"
341 einfo "emerge --config =${PF}"
342 # force a permmissions fixup
343 partimagesslperms
344 return 0
345 fi
346 chown partimag:0 /etc/partimaged/partimagedusers || die
347 }
348
349
350
351 --
352 gentoo-commits@l.g.o mailing list