1 |
axs 13/08/01 21:26:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: eudev-1.2.ebuild |
5 |
Removed: eudev-1.2_beta.ebuild |
6 |
Log: |
7 |
version bump, remove beta |
8 |
|
9 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
10 |
|
11 |
Revision Changes Path |
12 |
1.54 sys-fs/eudev/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.54&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.54&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?r1=1.53&r2=1.54 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v |
21 |
retrieving revision 1.53 |
22 |
retrieving revision 1.54 |
23 |
diff -u -r1.53 -r1.54 |
24 |
--- ChangeLog 28 Jul 2013 02:45:34 -0000 1.53 |
25 |
+++ ChangeLog 1 Aug 2013 21:26:55 -0000 1.54 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-fs/eudev |
28 |
# Copyright 1999- Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.53 2013/07/28 02:45:34 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.54 2013/08/01 21:26:55 axs Exp $ |
31 |
+ |
32 |
+*eudev-1.2 (01 Aug 2013) |
33 |
+ |
34 |
+ 01 Aug 2013; Ian Stakenvicius <axs@g.o> +eudev-1.2.ebuild, |
35 |
+ -eudev-1.2_beta.ebuild: |
36 |
+ version bump, remove beta |
37 |
|
38 |
28 Jul 2013; Patrick Lauer <patrick@g.o> metadata.xml: |
39 |
Removing unneeded useflag description from metadata.xml |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-fs/eudev/eudev-1.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: eudev-1.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1.2.ebuild,v 1.1 2013/08/01 21:26:55 axs Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
KV_min=2.6.31 |
57 |
|
58 |
inherit autotools eutils linux-info |
59 |
|
60 |
if [[ ${PV} = 9999* ]] |
61 |
then |
62 |
EGIT_REPO_URI="git://github.com/gentoo/eudev.git" |
63 |
inherit git-2 |
64 |
else |
65 |
SRC_URI="http://dev.gentoo.org/~blueness/distfiles/${P}.tar.gz" |
66 |
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" |
67 |
fi |
68 |
|
69 |
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
70 |
HOMEPAGE="https://github.com/gentoo/eudev" |
71 |
|
72 |
LICENSE="LGPL-2.1 MIT GPL-2" |
73 |
SLOT="0" |
74 |
IUSE="doc gudev hwdb kmod introspection keymap +modutils +openrc +rule-generator selinux static-libs test" |
75 |
|
76 |
COMMON_DEPEND="gudev? ( dev-libs/glib:2 ) |
77 |
kmod? ( sys-apps/kmod ) |
78 |
introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) |
79 |
selinux? ( sys-libs/libselinux ) |
80 |
>=sys-apps/util-linux-2.20 |
81 |
!<sys-libs/glibc-2.11" |
82 |
|
83 |
DEPEND="${COMMON_DEPEND} |
84 |
keymap? ( dev-util/gperf ) |
85 |
>=dev-util/intltool-0.40.0 |
86 |
virtual/pkgconfig |
87 |
virtual/os-headers |
88 |
!<sys-kernel/linux-headers-${KV_min} |
89 |
doc? ( dev-util/gtk-doc ) |
90 |
app-text/docbook-xsl-stylesheets |
91 |
dev-libs/libxslt |
92 |
test? ( app-text/tree dev-lang/perl )" |
93 |
|
94 |
RDEPEND="${COMMON_DEPEND} |
95 |
!sys-fs/udev |
96 |
!sys-apps/coldplug |
97 |
!sys-apps/systemd |
98 |
!<sys-fs/lvm2-2.02.97 |
99 |
!sys-fs/device-mapper |
100 |
!<sys-fs/udev-init-scripts-18" |
101 |
|
102 |
PDEPEND=">=virtual/udev-180 |
103 |
hwdb? ( >=sys-apps/hwids-20121202.2[udev] ) |
104 |
keymap? ( >=sys-apps/hwids-20130717-r1[udev] ) |
105 |
openrc? ( >=sys-fs/udev-init-scripts-18 )" |
106 |
|
107 |
REQUIRED_USE="keymap? ( hwdb )" |
108 |
|
109 |
pkg_pretend() |
110 |
{ |
111 |
if ! use rule-generator; then |
112 |
ewarn |
113 |
ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality," |
114 |
ewarn "as described in the URL below:" |
115 |
ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" |
116 |
ewarn |
117 |
ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing" |
118 |
ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable" |
119 |
ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules" |
120 |
ewarn "exists:" |
121 |
ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules" |
122 |
ewarn |
123 |
ewarn "We are working on a better solution for the next beta release." |
124 |
ewarn |
125 |
fi |
126 |
} |
127 |
|
128 |
pkg_setup() |
129 |
{ |
130 |
linux-info_pkg_setup |
131 |
get_running_version |
132 |
|
133 |
# These are required kernel options, but we don't error out on them |
134 |
# because you can build under one kernel and run under another. |
135 |
CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2" |
136 |
|
137 |
if kernel_is lt ${KV_min//./ }; then |
138 |
ewarn |
139 |
ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}." |
140 |
ewarn "Make sure to run udev under kernel version ${KV_min} or above." |
141 |
ewarn |
142 |
fi |
143 |
} |
144 |
|
145 |
src_prepare() |
146 |
{ |
147 |
# change rules back to group uucp instead of dialout for now |
148 |
sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \ |
149 |
|| die "failed to change group dialout to uucp" |
150 |
|
151 |
epatch_user |
152 |
|
153 |
if [[ ! -e configure ]] |
154 |
then |
155 |
if use doc |
156 |
then |
157 |
gtkdocize --docdir docs || die "gtkdocize failed" |
158 |
else |
159 |
echo 'EXTRA_DIST =' > docs/gtk-doc.make |
160 |
fi |
161 |
eautoreconf |
162 |
else |
163 |
elibtoolize |
164 |
fi |
165 |
} |
166 |
|
167 |
src_configure() |
168 |
{ |
169 |
local econf_args |
170 |
|
171 |
econf_args=( |
172 |
--with-rootprefix= |
173 |
--docdir=/usr/share/doc/${PF} |
174 |
--libdir=/usr/$(get_libdir) |
175 |
--with-firmware-path="${EPREFIX}usr/lib/firmware/updates:${EPREFIX}usr/lib/firmware:${EPREFIX}lib/firmware/updates:${EPREFIX}lib/firmware" |
176 |
--with-html-dir="/usr/share/doc/${PF}/html" |
177 |
--with-rootlibdir=/$(get_libdir) |
178 |
--enable-split-usr |
179 |
--exec-prefix=/ |
180 |
$(use_enable doc gtk-doc) |
181 |
$(use_enable gudev) |
182 |
$(use_enable introspection) |
183 |
$(use_enable keymap) |
184 |
$(use_enable kmod libkmod) |
185 |
$(use_enable modutils modules) |
186 |
$(use_enable selinux) |
187 |
$(use_enable static-libs static) |
188 |
$(use_enable rule-generator) |
189 |
) |
190 |
econf "${econf_args[@]}" |
191 |
} |
192 |
|
193 |
src_test() { |
194 |
# make sandbox get out of the way |
195 |
# these are safe because there is a fake root filesystem put in place, |
196 |
# but sandbox seems to evaluate the paths of the test i/o instead of the |
197 |
# paths of the actual i/o that results. |
198 |
addread /sys |
199 |
addwrite /dev |
200 |
addwrite /run |
201 |
default_src_test |
202 |
} |
203 |
|
204 |
src_install() |
205 |
{ |
206 |
emake DESTDIR="${D}" install |
207 |
|
208 |
prune_libtool_files --all |
209 |
rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.* |
210 |
|
211 |
use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount |
212 |
|
213 |
# drop distributed hwdb files, they override sys-apps/hwids |
214 |
rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb |
215 |
} |
216 |
|
217 |
pkg_preinst() |
218 |
{ |
219 |
local htmldir |
220 |
for htmldir in gudev libudev; do |
221 |
if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]] |
222 |
then |
223 |
rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir} |
224 |
fi |
225 |
if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]] |
226 |
then |
227 |
dosym ../../doc/${PF}/html/${htmldir} \ |
228 |
/usr/share/gtk-doc/html/${htmldir} |
229 |
fi |
230 |
done |
231 |
} |
232 |
|
233 |
pkg_postinst() |
234 |
{ |
235 |
mkdir -p "${EROOT}"run |
236 |
|
237 |
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 |
238 |
# So try to remove it here (will only work if empty). |
239 |
rmdir "${EROOT}"dev/loop 2>/dev/null |
240 |
if [[ -d ${EROOT}dev/loop ]] |
241 |
then |
242 |
ewarn "Please make sure you remove /dev/loop, else losetup" |
243 |
ewarn "may be confused when looking for unused devices." |
244 |
fi |
245 |
|
246 |
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper |
247 |
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007 |
248 |
if [[ -f ${EROOT}etc/udev/rules.d/64-device-mapper.rules ]] && |
249 |
! has_version sys-fs/device-mapper |
250 |
then |
251 |
rm -f "${EROOT}"etc/udev/rules.d/64-device-mapper.rules |
252 |
einfo "Removed unneeded file 64-device-mapper.rules" |
253 |
fi |
254 |
|
255 |
if use hwdb && has_version 'sys-apps/hwids[udev]'; then |
256 |
udevadm hwdb --update --root="${ROOT%/}" |
257 |
fi |
258 |
|
259 |
ewarn |
260 |
ewarn "You need to restart eudev as soon as possible to make the" |
261 |
ewarn "upgrade go into effect:" |
262 |
ewarn "\t/etc/init.d/udev --nodeps restart" |
263 |
|
264 |
if use rule-generator && use openrc; then |
265 |
ewarn |
266 |
ewarn "Please add the udev-postmount init script to your default runlevel" |
267 |
ewarn "to ensure the legacy rule-generator functionality works as reliably" |
268 |
ewarn "as possible." |
269 |
ewarn "\trc-update add udev-postmount default" |
270 |
fi |
271 |
|
272 |
elog |
273 |
elog "For more information on eudev on Gentoo, writing udev rules, and" |
274 |
elog "fixing known issues visit:" |
275 |
elog " http://www.gentoo.org/doc/en/udev-guide.xml" |
276 |
elog |
277 |
} |