1 |
nerdboy 10/01/03 07:29:03 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gpsd-2.39-r1.ebuild |
5 |
Removed: gpsd-2.39.ebuild |
6 |
Log: |
7 |
Updated with specific daemon user for uucp group. |
8 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 sci-geosciences/gpsd/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 18 Jul 2009 17:47:15 -0000 1.5 |
24 |
+++ metadata.xml 3 Jan 2010 07:29:03 -0000 1.6 |
25 |
@@ -12,10 +12,12 @@ |
26 |
</longdescription> |
27 |
<use> |
28 |
<flag name='garmin'>Enable support for Garmin simple text protocol</flag> |
29 |
+ <flag name='gpsd_user'>Add gpsd user for daemon privileges.</flag> |
30 |
<flag name='minimal'>Reduced install set, limited number of devices and |
31 |
client, no X deps</flag> |
32 |
<flag name='ntp'>Enable <pkg>net-misc/ntp</pkg> shared memory interface |
33 |
and PPS kernel support for GPS time</flag> |
34 |
+ <flag name='pl2303'>Enable udev rules for PL2303 USB-serial converter</flag> |
35 |
<flag name='ocean'>Enable OceanServer support</flag> |
36 |
<flag name='tntc'>Enable True North Technologies digital compass support</flag> |
37 |
</use> |
38 |
|
39 |
|
40 |
|
41 |
1.44 sci-geosciences/gpsd/ChangeLog |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.44&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.44&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?r1=1.43&r2=1.44 |
46 |
|
47 |
Index: ChangeLog |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v |
50 |
retrieving revision 1.43 |
51 |
retrieving revision 1.44 |
52 |
diff -u -r1.43 -r1.44 |
53 |
--- ChangeLog 23 Aug 2009 00:01:40 -0000 1.43 |
54 |
+++ ChangeLog 3 Jan 2010 07:29:03 -0000 1.44 |
55 |
@@ -1,6 +1,13 @@ |
56 |
# ChangeLog for sci-geosciences/gpsd |
57 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.43 2009/08/23 00:01:40 nerdboy Exp $ |
59 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
60 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.44 2010/01/03 07:29:03 nerdboy Exp $ |
61 |
+ |
62 |
+*gpsd-2.39-r1 (03 Jan 2010) |
63 |
+ |
64 |
+ 03 Jan 2010; Steve Arnold <nerdboy@g.o> -gpsd-2.39.ebuild, |
65 |
+ +gpsd-2.39-r1.ebuild, metadata.xml: |
66 |
+ Updated with specific daemon user for uucp group. Currently controlled |
67 |
+ via use flag. |
68 |
|
69 |
22 Aug 2009; Steve Arnold <nerdboy@g.o> files/gpsd.conf, |
70 |
files/gpsd.init: |
71 |
|
72 |
|
73 |
|
74 |
1.1 sci-geosciences/gpsd/gpsd-2.39-r1.ebuild |
75 |
|
76 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/gpsd-2.39-r1.ebuild?rev=1.1&view=markup |
77 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/gpsd-2.39-r1.ebuild?rev=1.1&content-type=text/plain |
78 |
|
79 |
Index: gpsd-2.39-r1.ebuild |
80 |
=================================================================== |
81 |
# Copyright 1999-2010 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.39-r1.ebuild,v 1.1 2010/01/03 07:29:03 nerdboy Exp $ |
84 |
|
85 |
EAPI="2" |
86 |
|
87 |
inherit autotools eutils distutils flag-o-matic |
88 |
|
89 |
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients." |
90 |
HOMEPAGE="http://gpsd.berlios.de/" |
91 |
SRC_URI="mirror://berlios/gpsd/${P}.tar.gz" |
92 |
|
93 |
LICENSE="BSD" |
94 |
SLOT="0" |
95 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
96 |
|
97 |
IUSE="dbus garmin +gpsd_user -minimal ntp ocean pl2303 tntc usb X" |
98 |
|
99 |
RDEPEND="X? ( |
100 |
x11-libs/libXmu |
101 |
x11-libs/libXext |
102 |
x11-libs/libXp |
103 |
x11-libs/libX11 |
104 |
x11-libs/libXt |
105 |
x11-libs/libSM |
106 |
x11-libs/libICE |
107 |
x11-libs/libXpm |
108 |
x11-libs/libXaw |
109 |
) |
110 |
dbus? ( >=sys-apps/dbus-0.94 |
111 |
>=dev-libs/glib-2.6 |
112 |
dev-libs/dbus-glib ) |
113 |
ntp? ( net-misc/ntp ) |
114 |
usb? ( virtual/dev-manager ) |
115 |
sys-libs/ncurses |
116 |
dev-lang/python" |
117 |
|
118 |
DEPEND="${RDEPEND} |
119 |
X? ( |
120 |
x11-proto/xproto |
121 |
x11-proto/xextproto |
122 |
) |
123 |
!minimal? ( |
124 |
dev-libs/libxslt |
125 |
)" |
126 |
|
127 |
pkg_setup() { |
128 |
# Run the gpsd daemon as user gpsd and group uucp, see bug #282130 |
129 |
if use gpsd_user; then |
130 |
enewuser gpsd -1 -1 -1 "uucp" |
131 |
else |
132 |
einfo "USE=gpsd_user is dsiabled; no gpsd user added." |
133 |
fi |
134 |
} |
135 |
|
136 |
src_prepare() { |
137 |
# add -lm to setup.py again (see bug #250757) |
138 |
sed -i \ |
139 |
-e "s:, gpspacket_sources:, gpspacket_sources, libraries=['m']:g" \ |
140 |
-e "s:geoid.c\"]:geoid.c\"], libraries=['m']:g" \ |
141 |
setup.py || die "sed 1 failed" |
142 |
|
143 |
# fix Garmin text struct |
144 |
sed -i -e "s:RTCM2_PACKET;:RTCM2_PACKET,:g" \ |
145 |
drivers.c || die "sed 2 failed" |
146 |
|
147 |
# add missing include file (see bug #162361) |
148 |
sed -i -e "s:gps.h libgpsmm.h:gps.h libgpsmm.h gpsd_config.h:g" \ |
149 |
Makefile.am || die "sed 3 failed" |
150 |
|
151 |
eautoreconf |
152 |
} |
153 |
|
154 |
src_configure() { |
155 |
|
156 |
local my_conf="--enable-shared --with-pic --enable-static" |
157 |
# --enable-superstar2 is missing a header file |
158 |
|
159 |
# Drop privs to user gpsd, see bug #282130 |
160 |
use gpsd_user && my_conf="${my_conf} --enable-gpsd-user=gpsd" |
161 |
|
162 |
distutils_python_version |
163 |
|
164 |
if ! use ntp; then |
165 |
my_conf="${my_conf} --disable-pps --disable-ntpshm" |
166 |
fi |
167 |
|
168 |
if use minimal; then |
169 |
local max_clients="5" |
170 |
local max_devices="2" |
171 |
my_conf="${my_conf} --enable-squelch --without-x \ |
172 |
--enable-max-devices=${max_devices} \ |
173 |
--enable-max-clients=${max_clients}" |
174 |
|
175 |
WITH_XSLTPROC=no WITH_XMLTO=no econf ${my_conf} \ |
176 |
$(use_enable dbus) $(use_enable ocean oceanserver) \ |
177 |
$(use_enable tntc tnt) $(use_enable garmin garmintxt) \ |
178 |
|| die "econf failed" |
179 |
else |
180 |
econf ${my_conf} $(use_enable dbus) $(use_enable tntc tnt) \ |
181 |
$(use_enable ocean oceanserver) $(use_with X x) \ |
182 |
$(use_enable garmin garmintxt) \ |
183 |
|| die "econf failed" |
184 |
fi |
185 |
} |
186 |
|
187 |
src_compile() { |
188 |
# still needs an explicit link flag (bug #250757) |
189 |
append-ldflags -Wl,-z,-defs -Wl,--no-undefined |
190 |
|
191 |
emake -j1 || die "emake failed" |
192 |
} |
193 |
|
194 |
src_install() { |
195 |
|
196 |
make DESTDIR="${D}" install || die "make install failed" |
197 |
|
198 |
if ! test -x "${D}"usr/sbin/gpsd; then |
199 |
ewarn "gpsd link error detected; please re-emerge gpsd." |
200 |
fi |
201 |
|
202 |
if use usb ; then |
203 |
insinto /etc/hotplug/usb |
204 |
doins gpsd.usermap |
205 |
exeinto /etc/hotplug/usb |
206 |
doexe gpsd.hotplug |
207 |
insinto /etc/udev/rules.d |
208 |
doins "${FILESDIR}"/99-gpsd-usb.rules |
209 |
if use pl2303; then |
210 |
dosed "s:#SYSFS:SYSFS:g" \ |
211 |
/etc/udev/rules.d/99-gpsd-usb.rules |
212 |
fi |
213 |
keepdir /var/run/usb # needed for REMOVER |
214 |
else |
215 |
newconfd "${FILESDIR}"/gpsd.conf gpsd |
216 |
newinitd "${FILESDIR}"/gpsd.init gpsd |
217 |
fi |
218 |
|
219 |
if use X && ! use minimal ; then |
220 |
insinto /etc/X11/app-defaults |
221 |
newins xgps.ad Xgps |
222 |
newins xgpsspeed.ad Xgpsspeed |
223 |
else |
224 |
rm "${D}usr/share/man/man1/xgpsspeed.1.bz2" \ |
225 |
"${D}usr/share/man/man1/xgps.1.bz2" |
226 |
fi |
227 |
|
228 |
distutils_src_install |
229 |
|
230 |
dodoc INSTALL README TODO |
231 |
|
232 |
# add missing dgpsip-servers and capabilities files |
233 |
insinto /usr/share/${PN} |
234 |
doins dgpsip-servers gpscap.ini |
235 |
|
236 |
if use minimal; then |
237 |
doman gpsctl.1 gpsd.8 gps.1 cgps.1 gpxlogger.1 gpspipe.1 gpsprof.1 |
238 |
else |
239 |
diropts "-m0644" |
240 |
dobin logextract striplog |
241 |
fi |
242 |
} |
243 |
|
244 |
pkg_postinst() { |
245 |
elog "" |
246 |
elog "This version of gpsd has broken support for the SuperStarII" |
247 |
elog "chipset which is currently disabled." |
248 |
elog "" |
249 |
elog "Other than the above, all default devices are enabled, and all" |
250 |
elog "optional devices and formats are controlled via USE flags." |
251 |
elog "" |
252 |
elog "Recent versions of udev (>=udev-115 or so) should have correct" |
253 |
elog "usb device detection and startup of gpsd (ie, without hotplug)." |
254 |
elog "" |
255 |
elog "Certain GPS devices also require the corresponding kernel options" |
256 |
elog "to be enabled, such as USB_SERIAL_GARMIN, or a USB serial driver" |
257 |
elog "for an adapter such as those that come with Deluo GPS units (eg," |
258 |
elog "USB_SERIAL_PL2303). Straight serial devices should always work," |
259 |
elog "even without udev/hotplug support." |
260 |
elog "" |
261 |
elog "Note: the supplied gpsd udev rules are now device-specific, so" |
262 |
elog "if your device isn't detected correctly, please use lsusb or" |
263 |
elog "another suitable tool to determine the proper device IDs and" |
264 |
elog "use the commented rules to fill in the blanks for your device." |
265 |
elog "" |
266 |
elog "Please see this post about the new capabilities database:" |
267 |
elog "" |
268 |
elog "http://lists.berlios.de/pipermail/gpsd-dev/2009-January/006333.html" |
269 |
elog "" |
270 |
elog "on current hardware, adding new hardware, etc. Read the above" |
271 |
elog "and the INSTALL doc for more information on supported hardware," |
272 |
elog "and make sure udev has the right group permissions set on the" |
273 |
elog "devices if using USB (it should Do The Right Thing (TM))..." |
274 |
elog "" |
275 |
} |