-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedberry-local.spec
363 lines (276 loc) · 11.2 KB
/
fedberry-local.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
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
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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
Name: fedberry-local
Version: 30
Release: 1%{?dist}
Summary: FedBerry rc.local, configs and scripts for the Raspberry Pi
License: GPLv2+
URL: https://github.com/%{name}
Source0: %{url}/raw/master/cmdline.txt
Source1: %{url}/raw/master/config.txt
Source2: %{url}/raw/master/COPYING
Source3: %{url}/raw/master/dracut-rpi.conf
Source4: %{url}/raw/master/rc.local
Source8: %{url}/raw/master/sysctl-vm-min-free-kbytes.conf
Source9: %{url}/raw/master/sysctl-vm-swappiness.conf
Source10: %{url}/raw/master/sysctl-quiet-printk.conf
Source11: %{url}/raw/master/pulseaudio-raspberrypi.conf
Source12: %{url}/raw/master/pulseaudio-rpi.rules
Source13: %{url}/raw/master/fedberry-xfce-defaults.tar.xz
Source14: %{url}/raw/master/default-gtk2.conf
Source15: %{url}/raw/master/default-gtk3.conf
Source16: %{url}/raw/master/xorg-fbturbo.conf
Source17: %{url}/raw/master/disable-pulseaudio.desktop
Source18: %{url}/raw/master/chromium-preferences
Source19: %{url}/raw/master/chromium-flags
BuildArch: noarch
BuildRequires: systemd
Requires: initscripts
Requires: systemd
%description
%{summary}.
%package xfce-config
Summary: Default Fedberry configuration files for Xfce
%description xfce-config
This package contains default Fedberry configuration files for Xfce.
%package gtk-config
Summary: Default Fedberry configuration files for GTK+2/3
Requires: breeze-gtk
Requires: breeze-icon-theme
Requires: breeze-cursor-theme
%description gtk-config
This package contains default Fedberry configuration files for GTK+2/3.
%package xorg-config
Summary: Default Fedberry configuration files for xorg
Requires: xorg-x11-drv-fbturbo
%description xorg-config
This package contains default Fedberry configuration files for xorg.
%package chromium
Summary: Default Fedberry configuration files for chromium
Requires: chromium
Requires: raspberrypi-vc-libs >= 20180704-1.409dfcd
%description chromium
This package contains default Fedberry configuration files for chromium.
%prep
%setup -c -T
cp -a %{SOURCE2} .
%build
%install
##
## rc.local
##
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d
%{__install} -p -m0755 %{SOURCE4} %{buildroot}/%{_sysconfdir}/rc.d/
##
## dracut.conf.d
##
mkdir -p %{buildroot}/%{_sysconfdir}/dracut.conf.d
%{__install} -p -m0755 %{SOURCE3} \
%{buildroot}/%{_sysconfdir}/dracut.conf.d/rpi.conf
##
## /usr/lib/sysctl.d
##
mkdir -p %{buildroot}/%{_libdir}/sysctl.d
%{__install} -p -m0644 %{SOURCE8} \
%{buildroot}/%{_libdir}/sysctl.d/99-vm-min-free-kbytes.conf
%{__install} -p -m0644 %{SOURCE9} \
%{buildroot}/%{_libdir}/sysctl.d/99-vm-swappiness.conf
%{__install} -p -m0644 %{SOURCE10} \
%{buildroot}/%{_libdir}/sysctl.d/20-quiet-printk.conf
##
## /usr/lib/udev/rules.d
##
mkdir -p %{buildroot}%{_udevrulesdir}
%{__install} -p -m0644 %{SOURCE12} \
%{buildroot}%{_udevrulesdir}/91-pulseaudio-rpi.rules
##
## /boot config
##
mkdir -p %{buildroot}/boot
%{__install} -p -m0644 %{SOURCE0} %{buildroot}/boot/
%{__install} -p -m0644 %{SOURCE1} %{buildroot}/boot/
##
## pulseaudio :-/
##
mkdir -p %{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/profile-sets
%{__install} -p -m0644 %{SOURCE11} \
%{buildroot}/%{_datadir}/pulseaudio/alsa-mixer/profile-sets/raspberrypi.conf
mkdir -p %{buildroot}/%{_sysconfdir}/skel/.config/autostart
%{__install} -p -m0644 %{SOURCE17} \
%{buildroot}/%{_sysconfdir}/skel/.config/autostart/pulseaudio.desktop
##
## /etc/skel files
##
mkdir -p %{buildroot}/%{_sysconfdir}/skel/.config
tar xvfJ %{SOURCE13} -C %{buildroot}/%{_sysconfdir}/skel/.config
##
## GTK+ configuration files
##
mkdir -p %{buildroot}/%{_sysconfdir}/gtk-2.0
%{__install} -p -m0755 %{SOURCE14} \
%{buildroot}/%{_sysconfdir}/gtk-2.0/gtkrc
mkdir -p %{buildroot}/%{_sysconfdir}/gtk-3.0
%{__install} -p -m0755 %{SOURCE15} \
%{buildroot}/%{_sysconfdir}/gtk-3.0/settings.ini
##
## xorg.conf.d files
##
mkdir -p %{buildroot}/%{_datadir}/X11/xorg.conf.d
%{__install} -p -m0755 %{SOURCE16} \
%{buildroot}/%{_datadir}/X11/xorg.conf.d/20-fbturbo.conf
##
## chromium files
##
mkdir -p %{buildroot}/%{_sysconfdir}/chromium
%{__install} -p -m0755 %{SOURCE18} \
%{buildroot}/%{_sysconfdir}/chromium/master_preferences
%{__install} -p -m0755 %{SOURCE19} \
%{buildroot}/%{_sysconfdir}/chromium/default
%post
# Older upgraded installs that haven't installed the new xorg-conf package
if [ -f %{_sysconfdir}/X11/xorg.conf.d/20-fbturbo.conf ] && [ ! -f %{_datadir}/X11/xorg.conf.d/20-fbturbo.conf ]; then
cp -f %{_sysconfdir}/X11/xorg.conf.d/20-fbturbo.conf %{_datadir}/X11/xorg.conf.d/
fi
%files xfce-config
%attr(0755,-,-) %{_sysconfdir}/skel/.config/xfce4/xfconf/xfce-perchannel-xml/*.xml
%files gtk-config
%config %{_sysconfdir}/gtk-2.0/gtkrc
%config %{_sysconfdir}/gtk-3.0/settings.ini
%files xorg-config
%config %{_datadir}/X11/xorg.conf.d/20-fbturbo.conf
%files chromium
%config %{_sysconfdir}/chromium/master_preferences
%config %{_sysconfdir}/chromium/default
%files
%doc COPYING
%{_sysconfdir}/skel/.config/autostart/pulseaudio.desktop
%config(noreplace) %{_sysconfdir}/rc.d/rc.local
%config(noreplace) %{_sysconfdir}/dracut.conf.d/*.conf
%config(noreplace) /boot/cmdline.txt
%config(noreplace) /boot/config.txt
%config(noreplace) %{_libdir}/sysctl.d/*.conf
%{_udevrulesdir}/*.rules
%{_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf
%changelog
* Sat Apr 20 2019 Vaughan <devel at agrez dot net> - 30-1
- Bump release for Fedberry 30
- Update chromuim-flags
* Wed Nov 28 2018 Vaughan <devel at agrez dot net> - 29-5
- Update xfce defaults (default to Breeze theme & drop Parole config)
* Tue Nov 27 2018 Vaughan <devel at agrez dot net> - 29-4
- Update xfce defaults (xfce-mixer is depreciated)
* Mon Nov 26 2018 Vaughan <devel at agrez dot net> - 29-3
- Lower swappiness from 60 (default) to 10
- Gain some more control over some system config files
- Remove chromium extensions in master_preferences
- Update fedberry-xfce-defaults to workaround tool tip flickering bug
* Fri Oct 12 2018 Vaughan <devel at agrez dot net> - 29-2
- Drop rpi-snd-bcm2835-* scripts (fedberry-config now support this)
- Refactor source file urls
* Thu Oct 11 2018 Vaughan <devel at agrez dot net> - 29-1
- Bump release for Fedberry 29
- Add enable_uart=1 comment stub to config.txt
* Wed Jul 04 2018 Vaughan <devel at agrez dot net> - 28-1
- Bump release for Fedberry 28
- Dropped 10-vchiq-permissions.rules (moved to raspberrypi-vc-libs)
- Add chromium defaults & master_preferences for Fedberry
- Misc spec cleanups / refactoring
* Tue Apr 03 2018 Vaughan <devel at agrez dot net> - 27-6
- Add package for default GTK+2/3 settings
- Add package for xorg.conf.d config (fbturbo.conf)
- Update default xfce settings
- Disable autostart of pulseaudio (for the moment)
* Fri Mar 30 2018 Vaughan <devel at agrez dot net> - 27-5
- Add pulseaudio profile and udev rule
- Add package for xfce default settings
* Sun Mar 25 2018 Vaughan <devel at agrez dot net> - 27-4
- Add fsck.repair=yes to cmdline.txt
* Thu Dec 14 2017 Vaughan <devel at agrez dot net> - 27-3
- brcmfmac is still too noisy (add Source 10)
* Sun Dec 10 2017 Vaughan <devel at agrez dot net> - 27-2
- Drop cgroup_disable=memory from cmdline.txt
* Thu Nov 23 2017 Vaughan <devel at agrez dot net> - 27-1
- Bump release for Fedberry 27
* Mon Aug 07 2017 Vaughan <devel at agrez dot net> - 26-1
- Bump release for Fedberry 26
- Clean up spec
- Update config.txt defaults
* Mon Apr 17 2017 Vaughan <devel at agrez dot net> - 25-3
- Remove plymouth options from default cmdline.txt
* Mon Apr 10 2017 Vaughan <devel at agrez dot net> - 25-2
- Update cmdline.txt & config.txt files
* Mon Jan 02 2017 Vaughan <devel at agrez dot net> - 25-1
- Bump release
* Sun Dec 18 2016 Vaughan <devel at agrez dot net> - 24-5
- Add cgroup_disable=memory to cmdline.txt
- Update %%prep section
* Fri Sep 16 2016 Vaughan <devel at agrez dot net> - 24-4
- Update cmdline.txt
- Drop rpi-[freq mem temp volts] scripts
* Sun Aug 21 2016 Vaughan <devel at agrez dot net> - 24-3
- Set console_loglevel to print KERN_WARNING (2) or more severe
messages (rc.local)
* Tue Jun 21 2016 Vaughan <devel at agrez dot net> - 24-2
- Update cmdline.txt
* Thu Jun 16 2016 Vaughan <devel at agrez dot net> - 24-1
- Prep for FedBerry 24 release
- Split out all files
* Fri Mar 11 2016 Vaughan <devel at agrez dot net> - 23.1-1
- Drop modules-load-snd-bcm2835.conf (its a DT parameter now)
- Enable DT parameter audio=on by default
- Clean up / refactor config.txt options
- Drop all regional specific config.txt examples.
- cmdline.txt option elevator=deadline now default for all releases
- Bump release
* Thu Feb 04 2016 Vaughan <devel at agrez dot net> - 23-1
- Rename package to fedberry-local
- Version now follows FedBerry distro release version
- Compress source file using xz
* Tue Jan 26 2016 Vaughan <devel at agrez dot net> - 1.0.4-2
- bcm2708-wdog module has been removed from kernel-4.3.y series
- Update URL & Source URL
* Sun Nov 29 2015 Vaughan <devel at agrez dot net> - 1.0.4-1
- config.txt modifications:
Add raspberry camera module switches
Disable overscan by default
* Thu Aug 20 2015 Vaughan <devel at agrez dot net> - 1.0.3-1
- Add 'quiet' boot option to cmdline.txt
- Set initial default gpu_mem=32 (config.txt)
refer to: https://github.com/raspberrypi/firmware/issues/428
* Wed Aug 19 2015 Vaughan <devel at agrez dot net> - 1.0.2-1
- Disable dracut creating kernel rescue images (rpi.conf)
* Sun Jun 14 2015 Vaughan <devel at agrez dot net> - 1.0.1-1
- Disable enabling of ondemand govenor in rc.local (its now default in my kernel)
- Remove requires for sc-local
* Thu May 21 2015 Clive Messer <[email protected]> - 1.0-15
- Disable wlan0 powersave from rc.local.
* Sat May 16 2015 Clive Messer <[email protected]> - 1.0-14
- Re-package for F22.
* Wed Apr 01 2015 Clive Messer <[email protected]> - 1.0-13
- Move the sources into a tar file.
* Tue Mar 31 2015 Clive Messer <[email protected]> - 1.0-12
- Add 10-vchiq-permissions.rules.
* Tue Mar 31 2015 Clive Messer <[email protected]> - 1.0-11
- Add bcm2835 audio routing scripts.
* Fri Mar 27 2015 Clive Messer <[email protected]> - 1.0-10
- Add comment to raspberrypi-local-sysctl-vm_min_free_kbytes.conf
* Fri Mar 27 2015 Clive Messer <[email protected]> - 1.0-9
- Requires: sysctl-ssd-vm-conf
* Sat Feb 28 2015 Clive Messer <[email protected]> - 1.0-8
- Move sysctl scripts to /usr/lib/sysctl.d. (Vendor dir.)
- Add vm_swappiness.conf and vm_vfs_cache_pressure.conf.
- Add slub_debug=FP to /boot/cmdline.txt.
Trying to debug an oops...
* Sat Feb 28 2015 Clive Messer <[email protected]> - 1.0-7
- Add COPYING. (GPLv2 LICENSE)
- Add sysctl.d vm_min_free_kbytes.conf.
* Mon Feb 23 2015 Clive Messer <[email protected]> - 1.0-6
- Update config.txt.
Add Pi2 overclock settings.
* Sun Feb 22 2015 Clive Messer <[email protected]> - 1.0-5
- Add "default" network config.
/etc/sysconfig/network-scripts/{ifcfg-eth0,ifcfg-wlan0,keys-wlan0}
* Mon Feb 16 2015 Clive Messer <[email protected]> - 1.0-4
- Update 8192cu.conf.
* Mon Feb 16 2015 Clive Messer <[email protected]> - 1.0-3
- Add 8192cu.conf to disable power save on RTL81{88,92} wi-fi dongles.
* Wed Feb 11 2015 Clive Messer <[email protected]> - 1.0-1
- Initial build