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