Skip to content

Latest commit

 

History

History
458 lines (366 loc) · 15 KB

usb-moded.spec

File metadata and controls

458 lines (366 loc) · 15 KB
 
1
Name: usb-moded
Jun 30, 2015
Jun 30, 2015
2
3
Version: 0.82
Release: 2
4
5
6
Summary: USB mode controller
Group: System/System Control
License: LGPLv2
May 31, 2013
May 31, 2013
7
URL: https://github.com/nemomobile/usb-moded
8
Source0: %{name}-%{version}.tar.bz2
Jul 30, 2014
Jul 30, 2014
9
Source1: usb_moded.conf
10
11
12
13
14
15
16
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(libkmod)
BuildRequires: doxygen
Jan 20, 2014
Jan 20, 2014
17
BuildRequires: pkgconfig(libsystemd-daemon)
18
19
Requires: lsof
Jul 4, 2013
Jul 4, 2013
20
Requires: usb-moded-configs
Sep 13, 2013
Sep 13, 2013
21
Requires: usb-moded-diagnostics-config
Dec 13, 2013
Dec 13, 2013
22
Requires: busybox-symlinks-dhcp
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Requires(post): systemd
Requires(postun): systemd
%description
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
%package devel
Summary: USB mode controller - development files
Group: Development/Libraries
%description devel
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the files needed to program for usb_moded.
%package doc
Summary: USB mode controller - documentation
Group: Documentation
%description doc
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the documentation.
Jul 4, 2013
Jul 4, 2013
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%package developer-mode
Summary: USB mode controller - developer mode config
Group: Config
%description developer-mode
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the developer mode config, which enables
usb networking.
%package mtp-mode
Summary: USB mode controller - mtp mode config
Group: Config
Requires: buteo-mtp
%description mtp-mode
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the mtp mode config.
%package mass-storage-mode
Summary: USB mode controller - mass-storage mode config
Group: Config
%description mass-storage-mode
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the mass-storage mode config.
%package adb-mode
Summary: USB mode controller - android adb mode config
Group: Config
%description adb-mode
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the adb config for use with the android
gadget driver.
Jul 23, 2013
Jul 23, 2013
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
%package diag-mode-android
Summary: USB mode controller - android diag mode config
Group: Config
%description diag-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the diag config for use with the android
gadget driver.
%package acm-mode-android
Summary: USB mode controller - android acm mode config
Group: Config
%description acm-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the acm config for use with the android
gadget driver.
Jul 4, 2013
Jul 4, 2013
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%package developer-mode-android
Summary: USB mode controller - android developer mode config
Group: Config
%description developer-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the developer mode config for use with
the android gadget. This will provide usb networking.
%package mtp-mode-android
Summary: USB mode controller - android mtp mode config
Group: Config
%description mtp-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the mtp mode config.
Aug 2, 2013
Aug 2, 2013
158
159
160
161
162
163
164
165
166
167
168
169
%package pc-suite-mode-android
Summary: USB mode controller - android pc suite mode config
Group: Config
%description pc-suite-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the android pc suite mode config.
Aug 14, 2013
Aug 14, 2013
170
171
172
173
174
175
176
177
178
179
180
181
%package at-mode-android
Summary: USB mode controller - android at modem mode config
Group: Config
%description at-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the android at modem port mode config.
Feb 22, 2014
Feb 22, 2014
182
183
184
185
186
187
188
189
190
191
192
193
194
%package host-mode-jolla
Summary: USB mode controller - host mode switch for Jolla
Group: Config
%description host-mode-jolla
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the config to switch the first Jolla phone
in host mode.
Sep 13, 2013
Sep 13, 2013
195
%package defaults
Jul 4, 2013
Jul 4, 2013
196
197
198
199
200
Summary: USB mode controller - default configuration
Group: Config
Provides: usb-moded-configs
Requires: usb-moded-developer-mode
Sep 13, 2013
Sep 13, 2013
201
%description defaults
Jul 4, 2013
Jul 4, 2013
202
203
204
205
This package provides the default configuration for usb-moded, so
basic functionality is provided (i.e. usb networking, ask and charging
modes)
Sep 13, 2013
Sep 13, 2013
206
%package defaults-android
Jul 4, 2013
Jul 4, 2013
207
208
209
210
211
Summary: USB mode controller - default configuration
Group: Config
Provides: usb-moded-configs
Requires: usb-moded-developer-mode-android
Sep 13, 2013
Sep 13, 2013
212
%description defaults-android
Jul 4, 2013
Jul 4, 2013
213
214
215
216
This package provides the default configuration for usb-moded, so
basic functionality is provided (i.e. usb networking, ask and charging
modes with the android gadget driver)
Sep 13, 2013
Sep 13, 2013
217
%package diagnostics-config
Sep 12, 2013
Sep 12, 2013
218
219
220
Summary: USB mode controller - config data for diagnostics mode
Group: Config
Sep 13, 2013
Sep 13, 2013
221
%description diagnostics-config
Sep 12, 2013
Sep 12, 2013
222
223
224
This package contains the diagnostics info needed to configure a
diagnotic mode
Dec 12, 2013
Dec 12, 2013
225
226
227
228
229
230
231
232
233
234
235
236
237
%package connection-sharing-android-config
Summary: USB mode controller - USB/cellular data connection sharing config
Group: Config
%description connection-sharing-android-config
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains configuration to enable sharing the cellular data
connection over the USB with the android gadget driver.
Apr 16, 2015
Apr 16, 2015
238
239
240
241
242
243
244
245
246
247
248
249
250
%package connection-sharing-android-connman-config
Summary: USB mode controller - USB/cellular data connection sharing config
Group: Config
%description connection-sharing-android-connman-config
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains configuration to enable sharing the cellular data
connection over the USB with the connman gadget driver.
Dec 13, 2013
Dec 13, 2013
251
252
253
254
255
256
257
258
259
260
261
262
%package mass-storage-android-config
Summary: USB mode controller - mass-storage config with android gadget
Group: Config
%description mass-storage-android-config
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains configuration to enable sharing over mass-storage
with the android gadget driver.
Dec 12, 2013
Dec 12, 2013
263
Nov 29, 2014
Nov 29, 2014
264
265
266
267
268
269
270
271
272
273
274
275
276
277
%package vfat-android-config
Summary: USB mode controller - vfat config with tojblockd
Group: Config
Requires: tojblockd
%description vfat-android-config
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains configuration to enable sharing over vfat
emulation with tojblockd and nbd.
Jul 30, 2014
Jul 30, 2014
278
279
280
281
282
283
284
285
286
287
288
289
290
291
%package systemd-rescue-mode
Summary: USB mode controller - systemd rescue mode support
Group: Config
%Description systemd-rescue-mode
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the configuration files for systemd to
provide the rescue mode, so device does not get locked down
when the UI fails.
292
293
294
295
296
%prep
%setup -q
%build
%autogen
May 29, 2015
May 29, 2015
297
%configure --enable-app-sync --enable-meegodevlock --enable-debug --enable-connman --enable-systemd
298
299
300
301
302
303
304
make all doc %{?_smp_mflags}
%install
%make_install
install -m 644 -D src/usb_moded-dbus.h %{buildroot}/%{_includedir}/%{name}/usb_moded-dbus.h
install -m 644 -D src/usb_moded-modes.h %{buildroot}/%{_includedir}/%{name}/usb_moded-modes.h
install -m 644 -D src/usb_moded-appsync-dbus.h %{buildroot}/%{_includedir}/%{name}/usb_moded-appsync-dbus.h
May 22, 2015
May 22, 2015
305
install -m 644 -D src/com.meego.usb_moded.xml %{buildroot}/%{_includedir}/%{name}/com.meego.usb_moded.xml
306
307
308
install -m 644 -D usb_moded.pc %{buildroot}/%{_libdir}/pkgconfig/usb_moded.pc
install -d %{buildroot}/%{_docdir}/%{name}/html/
install -m 644 docs/html/* %{buildroot}/%{_docdir}/%{name}/html/
Jun 1, 2014
Jun 1, 2014
309
install -m 644 docs/usb_moded-doc.txt %{buildroot}/%{_docdir}/%{name}/
310
311
install -m 644 -D debian/manpage.1 %{buildroot}/%{_mandir}/man1/usb-moded.1
install -m 644 -D debian/usb_moded.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/usb_moded.conf
Jul 30, 2014
Jul 30, 2014
312
install -m 644 -D %{SOURCE1} %{buildroot}/%{_sysconfdir}/modprobe.d/usb_moded.conf
Jul 4, 2013
Jul 4, 2013
313
314
install -d %{buildroot}/%{_sysconfdir}/usb-moded
install -d %{buildroot}/%{_sysconfdir}/usb-moded/run
Mar 10, 2014
Mar 10, 2014
315
install -d %{buildroot}/%{_sysconfdir}/usb-moded/run-diag
Jul 4, 2013
Jul 4, 2013
316
install -d %{buildroot}/%{_sysconfdir}/usb-moded/dyn-modes
Sep 12, 2013
Sep 12, 2013
317
install -d %{buildroot}/%{_sysconfdir}/usb-moded/diag
Jul 4, 2013
Jul 4, 2013
318
install -m 644 -D config/dyn-modes/* %{buildroot}/%{_sysconfdir}/usb-moded/dyn-modes/
Sep 12, 2013
Sep 12, 2013
319
install -m 644 -D config/diag/* %{buildroot}/%{_sysconfdir}/usb-moded/diag/
Jul 4, 2013
Jul 4, 2013
320
install -m 644 -D config/run/* %{buildroot}/%{_sysconfdir}/usb-moded/run/
Mar 10, 2014
Mar 10, 2014
321
install -m 644 -D config/run-diag/* %{buildroot}/%{_sysconfdir}/usb-moded/run-diag/
Dec 13, 2013
Dec 13, 2013
322
install -m 644 -D config/mass-storage-jolla.ini %{buildroot}/%{_sysconfdir}/usb-moded/
Jul 30, 2014
Jul 30, 2014
323
324
touch %{buildroot}/%{_sysconfdir}/modprobe.d/g_ether.conf
Oct 16, 2014
Oct 16, 2014
325
touch %{buildroot}/%{_sysconfdir}/udhcpd.conf
Jul 30, 2014
Jul 30, 2014
326
327
328
329
330
#systemd stuff
install -d $RPM_BUILD_ROOT/lib/systemd/system/basic.target.wants/
install -m 644 -D systemd/%{name}.service %{buildroot}/lib/systemd/system/%{name}.service
ln -s ../%{name}.service $RPM_BUILD_ROOT/lib/systemd/system/basic.target.wants/%{name}.service
install -m 644 -D systemd/usb-moded-args.conf %{buildroot}/var/lib/environment/usb-moded/usb-moded-args.conf
Sep 3, 2014
Sep 3, 2014
331
install -m 755 -D systemd/turn-usb-rescue-mode-off %{buildroot}/%{_bindir}/turn-usb-rescue-mode-off
Jul 30, 2014
Jul 30, 2014
332
333
install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/usb-rescue-mode-off.service
install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/graphical.target.wants/usb-rescue-mode-off.service
Mar 13, 2015
Mar 13, 2015
334
install -m 644 -D systemd/usb-moded.conf %{buildroot}/%{_sysconfdir}/tmpfiles.d/usb-moded.conf
Jul 30, 2014
Jul 30, 2014
335
336
337
%preun
Feb 10, 2014
Feb 10, 2014
338
systemctl daemon-reload || :
339
340
%post
Feb 10, 2014
Feb 10, 2014
341
systemctl daemon-reload || :
342
343
344
345
%files
%defattr(-,root,root,-)
%doc debian/copyright
Sep 15, 2014
Sep 15, 2014
346
347
348
%dir %{_sysconfdir}/usb-moded
%dir %{_sysconfdir}/usb-moded/dyn-modes
%dir %{_sysconfdir}/usb-moded/run
349
350
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/usb_moded.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/usb_moded.conf
Mar 5, 2014
Mar 5, 2014
351
%ghost %config(noreplace) %{_sysconfdir}/modprobe.d/g_ether.conf
Oct 16, 2014
Oct 16, 2014
352
%ghost %{_sysconfdir}/udhcpd.conf
353
354
355
356
%{_sbindir}/usb_moded
%{_sbindir}/usb_moded_util
%{_mandir}/man1/usb-moded.1.gz
/lib/systemd/system/%{name}.service
Oct 7, 2013
Oct 7, 2013
357
/lib/systemd/system/basic.target.wants/%{name}.service
Mar 12, 2015
Mar 12, 2015
358
%config %{_sysconfdir}/tmpfiles.d/usb-moded.conf
359
360
361
362
363
364
365
366
367
368
%files devel
%defattr(-,root,root,-)
%doc debian/copyright
%{_includedir}/%{name}/*
%{_libdir}/pkgconfig/usb_moded.pc
%files doc
%defattr(-,root,root,-)
%doc debian/changelog debian/copyright LICENSE
Jun 1, 2014
Jun 1, 2014
369
%{_docdir}/%{name}/*
370
371
%{_docdir}/%{name}/html/*
Jul 4, 2013
Jul 4, 2013
372
373
374
375
376
377
378
379
380
381
382
383
384
%files developer-mode
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/developer_mode.ini
%files mtp-mode
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/mtp_mode.ini
%{_sysconfdir}/usb-moded/run/mtp.ini
%files mass-storage-mode
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/mass-storage.ini
Jul 23, 2013
Jul 23, 2013
385
386
387
388
389
390
391
392
393
%files diag-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/diag_mode.ini
%{_sysconfdir}/usb-moded/run/adb-diag.ini
%files acm-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/android_acm.ini
Jul 4, 2013
Jul 4, 2013
394
395
396
%files developer-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/developer_mode-android.ini
Dec 13, 2013
Dec 13, 2013
397
%{_sysconfdir}/usb-moded/run/udhcpd-developer-mode.ini
Jul 4, 2013
Jul 4, 2013
398
399
400
401
%files adb-mode
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/adb_mode.ini
Jul 2, 2015
Jul 2, 2015
402
403
%{_sysconfdir}/usb-moded/run/adb-startserver.ini
%{_sysconfdir}/usb-moded/run/adb-prepare.ini
Jul 4, 2013
Jul 4, 2013
404
405
406
407
408
%files mtp-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/mtp_mode-android.ini
Aug 2, 2013
Aug 2, 2013
409
410
411
412
%files pc-suite-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/pc_suite-android.ini
Aug 14, 2013
Aug 14, 2013
413
414
415
416
%files at-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/android_at.ini
Sep 13, 2013
Sep 13, 2013
417
%files defaults
Jul 4, 2013
Jul 4, 2013
418
419
%defattr(-,root,root,-)
Sep 13, 2013
Sep 13, 2013
420
%files defaults-android
Jul 4, 2013
Jul 4, 2013
421
422
%defattr(-,root,root,-)
Sep 13, 2013
Sep 13, 2013
423
%files diagnostics-config
Sep 12, 2013
Sep 12, 2013
424
%defattr(-,root,root,-)
Sep 15, 2014
Sep 15, 2014
425
426
%dir %{_sysconfdir}/usb-moded/diag
%dir %{_sysconfdir}/usb-moded/run-diag
Sep 13, 2013
Sep 13, 2013
427
%{_sysconfdir}/usb-moded/diag/qa_diagnostic_mode.ini
Mar 10, 2014
Mar 10, 2014
428
%{_sysconfdir}/usb-moded/run-diag/qa-diagnostic.ini
Dec 12, 2013
Dec 12, 2013
429
430
431
%files connection-sharing-android-config
%defattr(-,root,root,-)
Dec 13, 2013
Dec 13, 2013
432
433
434
%{_sysconfdir}/usb-moded/dyn-modes/connection_sharing.ini
%{_sysconfdir}/usb-moded/run/udhcpd-connection-sharing.ini
Apr 16, 2015
Apr 16, 2015
435
436
437
438
%files connection-sharing-android-connman-config
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/connection_sharing-android-connman.ini
Dec 13, 2013
Dec 13, 2013
439
440
441
442
%files mass-storage-android-config
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/mass_storage_android.ini
%{_sysconfdir}/usb-moded/mass-storage-jolla.ini
Feb 22, 2014
Feb 22, 2014
443
Nov 29, 2014
Nov 29, 2014
444
445
446
447
448
%files vfat-android-config
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/vfat_android.ini
%{_sysconfdir}/usb-moded/run/vfat.ini
Feb 22, 2014
Feb 22, 2014
449
450
451
%files host-mode-jolla
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/host_mode_jolla.ini
Jul 30, 2014
Jul 30, 2014
452
453
454
455
456
457
458
%files systemd-rescue-mode
%defattr(-,root,root,-)
/var/lib/environment/usb-moded/usb-moded-args.conf
%{_bindir}/turn-usb-rescue-mode-off
/lib/systemd/system/usb-rescue-mode-off.service
/lib/systemd/system/graphical.target.wants/usb-rescue-mode-off.service