1 |
sping 12/09/30 18:14:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spacenavd-0.5-r3.ebuild |
5 |
Log: |
6 |
app-misc/spacenavd: udev rules destination (bug #436658) |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 app-misc/spacenavd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/spacenavd/ChangeLog?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/spacenavd/ChangeLog?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/spacenavd/ChangeLog?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/spacenavd/ChangeLog,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- ChangeLog 30 Sep 2012 00:39:49 -0000 1.7 |
24 |
+++ ChangeLog 30 Sep 2012 18:14:05 -0000 1.8 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-misc/spacenavd |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/ChangeLog,v 1.7 2012/09/30 00:39:49 blueness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/ChangeLog,v 1.8 2012/09/30 18:14:05 sping Exp $ |
30 |
+ |
31 |
+*spacenavd-0.5-r3 (30 Sep 2012) |
32 |
+ |
33 |
+ 30 Sep 2012; Sebastian Pipping <sping@g.o> +spacenavd-0.5-r3.ebuild: |
34 |
+ Put udev rules into /usr/lib/udev/rules.d/ rather than /etc/udev/rules.d (bug |
35 |
+ #436658) |
36 |
|
37 |
30 Sep 2012; Anthony G. Basile <blueness@g.o> spacenavd-0.5-r2.ebuild: |
38 |
stable ppc64, bug #436576 |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-misc/spacenavd/spacenavd-0.5-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: spacenavd-0.5-r3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r3.ebuild,v 1.1 2012/09/30 18:14:05 sping Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
|
55 |
inherit eutils linux-info toolchain-funcs |
56 |
|
57 |
MY_PN='spacenav' |
58 |
DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon." |
59 |
HOMEPAGE="http://spacenav.sourceforge.net/" |
60 |
SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz" |
61 |
LICENSE="GPL-3" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc64 ~x86" |
64 |
IUSE="X" |
65 |
|
66 |
RDEPEND="X? ( x11-apps/xdpyinfo )" |
67 |
DEPEND="${RDEPEND}" |
68 |
|
69 |
pkg_setup() { |
70 |
CONFIG_CHECK="~INPUT_EVDEV" |
71 |
ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |
72 |
check_extra_config |
73 |
} |
74 |
|
75 |
src_prepare() { |
76 |
epatch "${FILESDIR}"/${P}-destdir.patch |
77 |
epatch "${FILESDIR}"/${P}-custom-flags.patch |
78 |
epatch "${FILESDIR}"/${P}-no-x11.patch |
79 |
} |
80 |
|
81 |
src_configure() { |
82 |
econf \ |
83 |
--enable-opt --enable-ldopt \ |
84 |
$(use_enable X x11) |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
emake CC=$(tc-getCC) |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
# Config file |
93 |
insinto /etc |
94 |
newins "${S}/doc/example-spnavrc" spnavrc.sample || die |
95 |
|
96 |
# Init script |
97 |
newinitd "${FILESDIR}/spnavd" spacenavd || die |
98 |
|
99 |
# Install udev rule but leave activiation to the user |
100 |
# since Xorg may be configured to grab the device already |
101 |
insinto /usr/lib/udev/rules.d |
102 |
newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored || die |
103 |
|
104 |
# Daemon |
105 |
dobin "${S}/spacenavd" |
106 |
use X && dobin "${S}/spnavd_ctl" |
107 |
} |
108 |
|
109 |
pkg_postinst() { |
110 |
elog "To start the Spacenav daemon system-wide by default" |
111 |
elog "you should add it to the default runlevel :" |
112 |
elog "\`rc-update add spacenavd default\`" |
113 |
elog |
114 |
if use X; then |
115 |
elog "To start generating Spacenav X events by default" |
116 |
elog "you should add this command in your user startup" |
117 |
elog "scripts such as .gnomerc or .xinitrc :" |
118 |
elog "\`spnavd_ctl x11 start\`" |
119 |
elog |
120 |
fi |
121 |
elog "If you want to auto-start the daemon when you plug in" |
122 |
elog "a SpaceNavigator device, activate the related udev rule :" |
123 |
elog "\`sudo ln -s /usr/lib/udev/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d/99-space-navigator.rules\`" |
124 |
elog |
125 |
ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run" |
126 |
ewarn "the new version of the daemon." |
127 |
} |