Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-block/partimage: partimage-0.6.9.ebuild ChangeLog
Date: Sun, 04 Mar 2012 09:57:15
Message-Id: 20120304095705.74EB62004B@flycatcher.gentoo.org
1 ssuominen 12/03/04 09:57:05
2
3 Modified: partimage-0.6.9.ebuild ChangeLog
4 Log:
5 Fix building with zlib >= 1.2.5.2 wrt #405323 by Xavier Miller and Manfred Knick
6
7 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 sys-block/partimage/partimage-0.6.9.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild?r1=1.1&r2=1.2
15
16 Index: partimage-0.6.9.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- partimage-0.6.9.ebuild 19 Nov 2010 19:36:33 -0000 1.1
23 +++ partimage-0.6.9.ebuild 4 Mar 2012 09:57:05 -0000 1.2
24 @@ -1,8 +1,8 @@
25 -# Copyright 1999-2010 Gentoo Foundation
26 +# Copyright 1999-2012 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild,v 1.1 2010/11/19 19:36:33 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/partimage-0.6.9.ebuild,v 1.2 2012/03/04 09:57:05 ssuominen Exp $
30
31 -EAPI=3
32 +EAPI=4
33 inherit eutils flag-o-matic pam
34
35 DESCRIPTION="Console-based application to efficiently save raw partition data to an image file"
36 @@ -31,6 +31,10 @@
37 enewuser partimag 91 -1 /var/lib/partimage partimag
38 }
39
40 +src_prepare() {
41 + epatch "${FILESDIR}"/${P}-zlib-1.2.5.2.patch #405323
42 +}
43 +
44 src_configure() {
45 # XXX: Do we still need these?
46 filter-flags -fno-exceptions
47 @@ -48,7 +52,6 @@
48 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
49 --sysconfdir="${EPREFIX}"/etc \
50 $(use_enable nls) \
51 - --disable-dependency-tracking \
52 $(use_enable ssl) \
53 --disable-pam \
54 $(use_enable static all-static) \
55 @@ -57,26 +60,25 @@
56 }
57
58 src_install() {
59 - emake DESTDIR="${D}" install || die
60 - dodoc BOOT-ROOT.txt FORMAT FUTURE THANKS
61 + default
62
63 keepdir /var/lib/partimage
64 keepdir /var/log/partimage
65
66 - newinitd "${FILESDIR}"/partimaged.init.2 partimaged || die
67 - newconfd "${FILESDIR}"/partimaged.conf partimaged || die
68 + newinitd "${FILESDIR}"/partimaged.init.2 partimaged
69 + newconfd "${FILESDIR}"/partimaged.conf partimaged
70
71 if use ssl; then
72 insinto /etc/partimaged
73 - doins "${FILESDIR}"/servercert.cnf || die
74 + doins "${FILESDIR}"/servercert.cnf
75 fi
76
77 if use pam; then
78 - newpamd "${FILESDIR}"/partimaged.pam.2 partimaged || die
79 + newpamd "${FILESDIR}"/partimaged.pam.2 partimaged
80 fi
81 }
82
83 -confdir=${ROOT}etc/partimaged
84 +confdir=${EROOT}/etc/partimaged
85 privkey=${confdir}/partimaged.key
86 cnf=${confdir}/servercert.cnf
87 csr=${confdir}/partimaged.csr
88 @@ -89,24 +91,24 @@
89 read
90 if [ ! -f ${privkey} ]; then
91 einfo "Generating unencrypted private key: ${privkey}"
92 - openssl genrsa -out ${privkey} 1024 || die "Failed!"
93 + openssl genrsa -out ${privkey} 1024 || die
94 else
95 einfo "Private key already exists: ${privkey}"
96 fi
97 if [ ! -f ${csr} ]; then
98 einfo "Generating certificate request: ${csr}"
99 - openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die "Failed!"
100 + openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die
101 else
102 einfo "Certificate request already exists: ${csr}"
103 fi
104 if [ ! -f ${cert} ]; then
105 einfo "Generating self-signed certificate: ${cert}"
106 - openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die "Failed!"
107 + openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die
108 else
109 einfo "Self-signed certifcate already exists: ${cert}"
110 fi
111 einfo "Setting permissions"
112 - partimagesslperms || die "Failed!"
113 + partimagesslperms || die
114 einfo "Done"
115 else
116 einfo "SSL is disabled, not building certificates"
117 @@ -133,5 +135,5 @@
118 partimagesslperms
119 return 0
120 fi
121 - chown partimag:0 "${ROOT}"etc/partimaged/partimagedusers || die
122 + chown partimag:0 "${EROOT}"/etc/partimaged/partimagedusers || die
123 }
124
125
126
127 1.50 sys-block/partimage/ChangeLog
128
129 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/ChangeLog?rev=1.50&view=markup
130 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/ChangeLog?rev=1.50&content-type=text/plain
131 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/partimage/ChangeLog?r1=1.49&r2=1.50
132
133 Index: ChangeLog
134 ===================================================================
135 RCS file: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v
136 retrieving revision 1.49
137 retrieving revision 1.50
138 diff -u -r1.49 -r1.50
139 --- ChangeLog 19 Nov 2010 19:36:33 -0000 1.49
140 +++ ChangeLog 4 Mar 2012 09:57:05 -0000 1.50
141 @@ -1,6 +1,11 @@
142 # ChangeLog for sys-block/partimage
143 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
144 -# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.49 2010/11/19 19:36:33 flameeyes Exp $
145 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
146 +# $Header: /var/cvsroot/gentoo-x86/sys-block/partimage/ChangeLog,v 1.50 2012/03/04 09:57:05 ssuominen Exp $
147 +
148 + 04 Mar 2012; Samuli Suominen <ssuominen@g.o> partimage-0.6.9.ebuild,
149 + +files/partimage-0.6.9-zlib-1.2.5.2.patch:
150 + Fix building with zlib >= 1.2.5.2 wrt #405323 by Xavier Miller and Manfred
151 + Knick
152
153 *partimage-0.6.9 (19 Nov 2010)