1 |
tetromino 11/11/16 07:44:24 |
2 |
|
3 |
Added: abrt-2.0.6.ebuild ChangeLog metadata.xml |
4 |
Log: |
5 |
Add Fedora's automatic crash reporter tool from the gnome overlay. |
6 |
|
7 |
(Portage version: 2.2.0_alpha74/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-admin/abrt/abrt-2.0.6.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/abrt-2.0.6.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/abrt-2.0.6.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: abrt-2.0.6.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2011 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/abrt-2.0.6.ebuild,v 1.1 2011/11/16 07:44:24 tetromino Exp $ |
20 |
|
21 |
PYTHON_DEPEND="2:2.6" |
22 |
EAPI="4" |
23 |
|
24 |
# Need gnome2-utils for gnome2_icon_cache_update |
25 |
inherit autotools eutils gnome2-utils python systemd |
26 |
|
27 |
DESCRIPTION="Automatic bug detection and reporting tool" |
28 |
HOMEPAGE="https://fedorahosted.org/abrt/" |
29 |
SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz" |
30 |
|
31 |
LICENSE="GPL-2" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
IUSE="debug" |
35 |
|
36 |
COMMON_DEPEND="dev-libs/btparser |
37 |
>=dev-libs/glib-2.21:2 |
38 |
dev-libs/libreport |
39 |
dev-libs/libxml2 |
40 |
dev-libs/nss |
41 |
sys-apps/dbus |
42 |
sys-fs/inotify-tools |
43 |
x11-libs/gtk+:2 |
44 |
x11-libs/libnotify" |
45 |
RDEPEND="${COMMON_DEPEND} |
46 |
app-arch/cpio |
47 |
dev-libs/elfutils |
48 |
sys-devel/gdb" |
49 |
DEPEND="${COMMON_DEPEND} |
50 |
app-text/asciidoc |
51 |
app-text/xmlto |
52 |
>=dev-util/intltool-0.35.0 |
53 |
>=dev-util/pkgconfig-0.9.0 |
54 |
>=sys-devel/gettext-0.17" |
55 |
|
56 |
pkg_setup() { |
57 |
python_set_active_version 2 |
58 |
python_pkg_setup |
59 |
|
60 |
enewgroup abrt |
61 |
enewuser abrt -1 -1 -1 abrt |
62 |
} |
63 |
|
64 |
src_prepare() { |
65 |
# Disable redhat-specific code not usable in gentoo, or that requires |
66 |
# bugs.gentoo.org infra support. |
67 |
epatch "${FILESDIR}/${PN}-2.0.6-gentoo.patch" |
68 |
|
69 |
# Using a server response as a format string is a bad idea |
70 |
epatch "${FILESDIR}/${PN}-2.0.6-format-security.patch" |
71 |
|
72 |
# Fixes building with glib-2.31, will be in next release |
73 |
epatch "${FILESDIR}/${P}-glib-2.31.patch" |
74 |
|
75 |
# -Werror should not be used by default |
76 |
sed -e 's/-Werror\( \|$\)//g' \ |
77 |
-i src/applet/Makefile.* src/cli/Makefile.* src/daemon/Makefile.* \ |
78 |
src/gui-gtk/Makefile.* src/hooks/Makefile.* src/lib/Makefile.* \ |
79 |
src/plugins/Makefile.* || die "sed failed" |
80 |
|
81 |
mkdir m4 |
82 |
eautoreconf |
83 |
|
84 |
ln -sfn $(type -P true) py-compile |
85 |
python_convert_shebangs -r 2 src |
86 |
} |
87 |
|
88 |
src_configure() { |
89 |
# Configure checks for python.pc; our python-2.7 installs python-2.7.pc, |
90 |
# while python-2.6 does not install any pkgconfig file. |
91 |
export PYTHON_CFLAGS=$(python-config --includes) |
92 |
export PYTHON_LIBS=$(python-config --libs) |
93 |
|
94 |
myeconfargs=( "--localstatedir=${EPREFIX}/var" ) |
95 |
# --disable-debug enables debug! |
96 |
use debug && myeconfargs=( "${myeconfargs[@]}" --enable-debug ) |
97 |
systemd_to_myeconfargs |
98 |
econf "${myeconfargs[@]}" |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
default |
103 |
|
104 |
keepdir /var/run/abrt |
105 |
# /var/spool/abrt is created by dev-libs/libreport |
106 |
|
107 |
diropts -m 700 -o abrt -g abrt |
108 |
keepdir /var/spool/abrt-upload |
109 |
|
110 |
diropts -m 775 -o abrt -g abrt |
111 |
keepdir /var/cache/abrt-di |
112 |
|
113 |
find "${D}" -name '*.la' -exec rm -f {} + || die |
114 |
|
115 |
newinitd "${FILESDIR}/${PN}-2.0.5-init" abrt |
116 |
newconfd "${FILESDIR}/${PN}-2.0.5-conf" abrt |
117 |
} |
118 |
|
119 |
pkg_preinst() { |
120 |
gnome2_icon_savelist |
121 |
} |
122 |
|
123 |
pkg_postinst() { |
124 |
gnome2_icon_cache_update |
125 |
python_mod_optimize abrt_exception_handler.py |
126 |
elog "To start the bug detection service on an openrc-based system, do" |
127 |
elog "# /etc/init.d/abrt start" |
128 |
} |
129 |
|
130 |
pkg_postrm() { |
131 |
gnome2_icon_cache_update |
132 |
python_mod_cleanup abrt_exception_handler.py |
133 |
} |
134 |
|
135 |
|
136 |
|
137 |
1.1 app-admin/abrt/ChangeLog |
138 |
|
139 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/ChangeLog?rev=1.1&view=markup |
140 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/ChangeLog?rev=1.1&content-type=text/plain |
141 |
|
142 |
Index: ChangeLog |
143 |
=================================================================== |
144 |
# ChangeLog for app-admin/abrt |
145 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
146 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/ChangeLog,v 1.1 2011/11/16 07:44:24 tetromino Exp $ |
147 |
|
148 |
*abrt-2.0.6 (16 Nov 2011) |
149 |
|
150 |
16 Nov 2011; Alexandre Rostovtsev <tetromino@g.o> |
151 |
+files/abrt-2.0.5-conf, +files/abrt-2.0.5-init, +abrt-2.0.6.ebuild, |
152 |
+files/abrt-2.0.6-format-security.patch, +files/abrt-2.0.6-gentoo.patch, |
153 |
+files/abrt-2.0.6-glib-2.31.patch, +metadata.xml: |
154 |
Add Fedora's automatic crash reporter tool from the gnome overlay. |
155 |
|
156 |
|
157 |
|
158 |
|
159 |
1.1 app-admin/abrt/metadata.xml |
160 |
|
161 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/metadata.xml?rev=1.1&view=markup |
162 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/metadata.xml?rev=1.1&content-type=text/plain |
163 |
|
164 |
Index: metadata.xml |
165 |
=================================================================== |
166 |
<?xml version="1.0" encoding="UTF-8"?> |
167 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
168 |
<pkgmetadata> |
169 |
<herd>gnome</herd> |
170 |
</pkgmetadata> |