1 |
scarabeus 12/06/02 10:21:28 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: rpm-5.3.5.ebuild |
5 |
Log: |
6 |
Add skel for rpm-5.3.5. The ebuild is not finished, but can stand as base to start from. |
7 |
|
8 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 app-arch/rpm/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/metadata.xml?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/metadata.xml?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/metadata.xml?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/rpm/metadata.xml,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -u -r1.14 -r1.15 |
23 |
--- metadata.xml 23 Sep 2011 21:14:07 -0000 1.14 |
24 |
+++ metadata.xml 2 Jun 2012 10:21:28 -0000 1.15 |
25 |
@@ -2,11 +2,18 @@ |
26 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
<pkgmetadata> |
28 |
<maintainer> |
29 |
- <email>sochotnicky@g.o</email> |
30 |
- <name>Stanislav Ochotnicky</name> |
31 |
+ <email>sochotnicky@g.o</email> |
32 |
+ <name>Stanislav Ochotnicky</name> |
33 |
</maintainer> |
34 |
<use> |
35 |
- <flag name='magic'>Add magic file support (<pkg>sys-apps/file</pkg>)</flag> |
36 |
- <flag name='webdav-neon'>Include support for <pkg>net-libs/neon</pkg></flag> |
37 |
+ <flag name='augeas'>Add support for configuration files changing (<pkg>app-admin/augeas</pkg>)</flag> |
38 |
+ <flag name='keyutils'>Enable for the keyring ccache using keyutils.</flag> |
39 |
+ <flag name='magic'>Add magic file support (<pkg>sys-apps/file</pkg>)</flag> |
40 |
+ <flag name='nss'>Build support for ssl/crypto handling using <pkg>dev-libs/nss</pkg></flag> |
41 |
+ <flag name='openssl'>Build support for ssl/crypto handling using <pkg>dev-libs/openssl</pkg></flag> |
42 |
+ <flag name='pkcs11'>Build token data management utilities based on OpenCryptoki's (<pkg>dev-libs/opencryptoki</pkg>) PKCS#11 implementation.</flag> |
43 |
+ <flag name='uuid'>Enable server side UUID generation (via <pkg>dev-libs/ossp-uuid</pkg>)</flag> |
44 |
+ <flag name='webdav-neon'>Include support for <pkg>net-libs/neon</pkg></flag> |
45 |
+ <flag name='xar'>Build support for xar archives using <pkg>app-arch/xar</pkg></flag> |
46 |
</use> |
47 |
</pkgmetadata> |
48 |
|
49 |
|
50 |
|
51 |
1.143 app-arch/rpm/ChangeLog |
52 |
|
53 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/ChangeLog?rev=1.143&view=markup |
54 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/ChangeLog?rev=1.143&content-type=text/plain |
55 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/ChangeLog?r1=1.142&r2=1.143 |
56 |
|
57 |
Index: ChangeLog |
58 |
=================================================================== |
59 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v |
60 |
retrieving revision 1.142 |
61 |
retrieving revision 1.143 |
62 |
diff -u -r1.142 -r1.143 |
63 |
--- ChangeLog 1 Jun 2012 14:19:27 -0000 1.142 |
64 |
+++ ChangeLog 2 Jun 2012 10:21:28 -0000 1.143 |
65 |
@@ -1,6 +1,13 @@ |
66 |
# ChangeLog for app-arch/rpm |
67 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
68 |
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.142 2012/06/01 14:19:27 scarabeus Exp $ |
69 |
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.143 2012/06/02 10:21:28 scarabeus Exp $ |
70 |
+ |
71 |
+*rpm-5.3.5 (02 Jun 2012) |
72 |
+ |
73 |
+ 02 Jun 2012; Tomáš Chvátal <scarabeus@g.o> +files/remaining-5.3.5.txt, |
74 |
+ +rpm-5.3.5.ebuild, metadata.xml: |
75 |
+ Add skel for rpm-5.3.5. The ebuild is not finished, but can stand as base to |
76 |
+ start from. |
77 |
|
78 |
*rpm-4.10.0 (01 Jun 2012) |
79 |
|
80 |
|
81 |
|
82 |
|
83 |
1.1 app-arch/rpm/rpm-5.3.5.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/rpm-5.3.5.ebuild?rev=1.1&view=markup |
86 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/rpm/rpm-5.3.5.ebuild?rev=1.1&content-type=text/plain |
87 |
|
88 |
Index: rpm-5.3.5.ebuild |
89 |
=================================================================== |
90 |
# Copyright 1999-2012 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-5.3.5.ebuild,v 1.1 2012/06/02 10:21:28 scarabeus Exp $ |
93 |
|
94 |
EAPI=4 |
95 |
|
96 |
PYTHON_DEPEND="2" |
97 |
|
98 |
inherit eutils multilib python user versionator |
99 |
|
100 |
DESCRIPTION="RPM Package Manager" |
101 |
HOMEPAGE="http://rpm5.org/" |
102 |
SRC_URI="http://rpm5.org/files/${PN}/${PN}-$(get_version_component_range 1-2)/${P}.tar.gz" |
103 |
|
104 |
LICENSE="GPL-2 LGPL-2" |
105 |
SLOT="0" |
106 |
KEYWORDS="" |
107 |
IUSE="acl augeas berkdb +bzip2 crypt debug expat gnutls keyutils lua lzma nls nss openssl pcre perl pkcs11 readline ruby selinux sqlite ssl tcl uuid webdav-neon xar xattr +zlib" |
108 |
|
109 |
RDEPEND=" |
110 |
dev-libs/beecrypt |
111 |
dev-libs/popt |
112 |
sys-apps/file |
113 |
acl? ( sys-apps/acl ) |
114 |
augeas? ( app-admin/augeas ) |
115 |
berkdb? ( sys-libs/db ) |
116 |
bzip2? ( app-arch/bzip2 ) |
117 |
crypt? ( dev-libs/libgcrypt ) |
118 |
expat? ( dev-libs/expat ) |
119 |
keyutils? ( sys-apps/keyutils ) |
120 |
lua? ( dev-lang/lua ) |
121 |
lzma? ( app-arch/xz-utils ) |
122 |
pcre? ( dev-libs/libpcre ) |
123 |
perl? ( dev-lang/perl ) |
124 |
pkcs11? ( dev-libs/pakchois ) |
125 |
readline? ( sys-libs/readline:0 ) |
126 |
ruby? ( >=dev-lang/ruby-1.9 ) |
127 |
selinux? ( |
128 |
sys-libs/libselinux |
129 |
sys-libs/libsemanage |
130 |
sys-libs/libsepol |
131 |
) |
132 |
sqlite? ( dev-db/sqlite:3 ) |
133 |
ssl? ( |
134 |
nss? ( dev-libs/nss ) |
135 |
openssl? ( dev-libs/openssl ) |
136 |
gnutls? ( |
137 |
dev-libs/libtasn1 |
138 |
net-libs/gnutls |
139 |
) |
140 |
) |
141 |
tcl? ( dev-lang/tcl ) |
142 |
uuid? ( dev-libs/ossp-uuid ) |
143 |
webdav-neon? ( net-libs/neon ) |
144 |
xar? ( app-arch/xar ) |
145 |
xattr? ( sys-apps/attr ) |
146 |
zlib? ( sys-libs/zlib ) |
147 |
" |
148 |
DEPEND="${RDEPEND} |
149 |
virtual/pkgconfig |
150 |
virtual/yacc |
151 |
nls? ( sys-devel/gettext ) |
152 |
" |
153 |
|
154 |
REQUIRED_USE=" |
155 |
ssl? ( |
156 |
^^ ( |
157 |
gnutls |
158 |
nss |
159 |
openssl |
160 |
) |
161 |
) |
162 |
" |
163 |
|
164 |
pkg_setup () { |
165 |
python_set_active_version 2 |
166 |
python_pkg_setup |
167 |
} |
168 |
|
169 |
src_configure() { |
170 |
local myconf="" |
171 |
|
172 |
# default internal/external switches |
173 |
# crypto default is beecrypt, user can change this on runtime |
174 |
# and we build beecrypt every time |
175 |
# tomcrypt is not in portage |
176 |
# cudf is not in portage |
177 |
# users usually do not want to use debug malloc |
178 |
myconf+=" |
179 |
--with-usecrypto=beecrypt |
180 |
--with-beecrypt=external |
181 |
--with-file=external |
182 |
--with-popt=external |
183 |
--without-tomcrypt |
184 |
--without-cudf |
185 |
--without-dmalloc |
186 |
" |
187 |
|
188 |
# ssl handling |
189 |
# tasn1 is handled in most portage packages with gnutls, do the same |
190 |
if use ssl; then |
191 |
myconf+=" |
192 |
$(use_with gnutls) |
193 |
$(use_with gnutls libtasn1) |
194 |
$(use_with nss) |
195 |
$(use_with openssl) |
196 |
" |
197 |
else |
198 |
myconf+=" |
199 |
--without-gnutls |
200 |
--without-libtasn1 |
201 |
--without-nss |
202 |
--without-openssl |
203 |
" |
204 |
fi |
205 |
|
206 |
# enable db if we use berkdb or sqlite |
207 |
if use berkdb || use sqlite; then |
208 |
myconf+=" |
209 |
--with-dbsql=external |
210 |
" |
211 |
else |
212 |
myconf+=" |
213 |
--without-dbsql |
214 |
" |
215 |
fi |
216 |
|
217 |
# for berkdb enable the options if possible |
218 |
if use berkdb; then |
219 |
myconf+=" |
220 |
--with-db-largefile |
221 |
--with-db-rpc |
222 |
" |
223 |
fi |
224 |
|
225 |
# we need python by default anyway so always --with-python |
226 |
econf \ |
227 |
--disable-rpath \ |
228 |
--disable-dependency-tracking \ |
229 |
--enable-build-pic \ |
230 |
--enable-build-pie \ |
231 |
--enable-largefile \ |
232 |
--with-python \ |
233 |
--without-pythonembed \ |
234 |
--with-python-lib-dir="$(python_get_libdir)" \ |
235 |
--with-python-inc-dir="$(python_get_includedir)" \ |
236 |
$(use_enable nls) \ |
237 |
$(use_enable debug build-debug) \ |
238 |
$(use_with acl) \ |
239 |
$(use_with augeas) \ |
240 |
$(use_with berkdb db) \ |
241 |
$(use_with bzip2) \ |
242 |
$(use_with crypt gcrypt) \ |
243 |
$(use_with expat) \ |
244 |
$(use_with keyutils) \ |
245 |
$(use_with lua lua external) \ |
246 |
$(use_with lzma xz external) \ |
247 |
$(use_with pcre pcre external) \ |
248 |
$(use_with perl) \ |
249 |
$(use_with pkcs11 pakchois) \ |
250 |
$(use_with readline) \ |
251 |
$(use_with selinux) \ |
252 |
$(use_with selinux semanage) \ |
253 |
$(use_with selinux sepol) \ |
254 |
$(use_with sqlite) \ |
255 |
$(use_with tcl) \ |
256 |
$(use_with uuid) \ |
257 |
$(use_with webdav-neon neon external) \ |
258 |
$(use_with xar xar external) \ |
259 |
$(use_with xattr attr) \ |
260 |
$(use_with zlib) \ |
261 |
${myconf} |
262 |
|
263 |
# TODO: see files/remaining-5.3.5.txt |
264 |
ewarn "This package is far from complete" |
265 |
ewarn "If you want to test it please see \"${FILESDIR}/remaining-5.3.5.txt\"" |
266 |
ewarn "and implement missing features." |
267 |
ewarn "Do NOT report bugs without providing patches!" |
268 |
} |
269 |
|
270 |
src_install() { |
271 |
emake DESTDIR="${D}" INSTALLDIRS=vendor install || die "emake install failed" |
272 |
dodoc CHANGES CREDITS NEWS README TODO |
273 |
} |
274 |
|
275 |
pkg_preinst() { |
276 |
enewgroup rpm 37 |
277 |
enewuser rpm 37 /bin/sh /var/lib/rpm rpm |
278 |
} |
279 |
|
280 |
pkg_postinst() { |
281 |
chown -R rpm:rpm "${ROOT}"/usr/$(get_libdir)/rpm |
282 |
chown -R rpm:rpm "${ROOT}"/var/lib/rpm |
283 |
chown rpm:rpm "${ROOT}"/usr/bin/rpm{,2cpio,build,constant} |
284 |
if [[ ${ROOT} == "/" ]] ; then |
285 |
if [[ -f ${ROOT}/var/lib/rpm/Packages ]] ; then |
286 |
einfo "RPM database found... Rebuilding database (may take a while)..." |
287 |
"${ROOT}"/usr/bin/rpm --rebuilddb --root="${ROOT}" |
288 |
else |
289 |
einfo "No RPM database found... Creating database..." |
290 |
"${ROOT}"/usr/bin/rpm --initdb --root="${ROOT}" |
291 |
fi |
292 |
fi |
293 |
chown rpm:rpm "${ROOT}"/var/lib/rpm/* |
294 |
|
295 |
python_mod_optimize rpm |
296 |
} |
297 |
|
298 |
pkg_postrm() { |
299 |
python_mod_cleanup rpm |
300 |
} |