-
Notifications
You must be signed in to change notification settings - Fork 271
/
_00build.conf
313 lines (293 loc) · 12.6 KB
/
_00build.conf
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
#
# persistent configuration options
#
# see also DISTRO_SPECS DISTRO_PET_REPOS DISTRO_COMPAT_REPOS-*
#
# **NOTE**: check the original file every once in a while
# settings might be added or removed...
#
# 2createpackages. binaries are usually already stripped. set to 'no' to speed up process
STRIP_BINARIES=no
## UnionFS: aufs or overlay
UNIONFS=aufs
#xorg-autoconf from rizalmart - changes perms on /usr/sbin/xorg-autoconf to enable; default is unset
XAUTOCONF=yes
## Kernel tarballs repo URL for choosing/downloading kernel
#KERNEL_REPO_URL=http://distro.ibiblio.org/puppylinux/huge_kernels
## Kernel tarball URL
## avoid being asked questions about downloading/choosing a kernel
#KERNEL_TARBALL_URL=https://smokey01.com/peebee/s15pup/64/huge-5.15.80-kernel-kit.tar.bz2
## an array of generically named programs to send to the ADRIVE, FDRIVE, YDRIVE
## ADRV_INC="abiword gnumeric goffice"
ADRV_INC=""
## YDRV_INC=""
YDRV_INC=""
## FDRV_INC="" #this one is very experimental and it's recommended to be left unset
FDRV_INC=""
## Include kernel-kit generated FDRIVE
## set to yes or no or leave commented to be asked the question at build time
KFDRIVE=no
## Download and include custom SFS (XDRV_INC= overrides this)
ADRV_SFS_URL=https://smokey01.com/peebee/s15pup/64/adrv_s15pup64_22.12.sfs
#YDRV_SFS_URL=
FDRV_SFS_URL=https://smokey01.com/peebee/s15pup/64/fdrv_s15pup64_22.12.sfs
## build devx? yes/no - any other value = yes
BUILD_DEVX=yes
# build docx, nlsx? yes/no - any other value = no
BUILD_DOCX=no
BUILD_NLSX=yes
## include devx SFS in ISO?
DEVX_IN_ISO=no
## packages to build from source
PETBUILD_GTK=2
PETBUILDS="busybox aaa_pup_c gtkdialog jwm rox-filer puppy_flat_icons puppy_standard_icons gtk_theme_flat_grey_rounded gtk_theme_gradient_grey gtk_theme_polished_blue xdg-puppy-jwm firewallstatus powerapplet_tray mtpaint xlockmore abiword gnumeric"
## Include the windows puppy installer LICK by Luke Lorimer aka <noryb009>
LICK_IN_ISO=no
## include Pkg in build (y/n). If commented then asked in 3builddistro
INCLUDE_PKG=y
## compression method to be used (SFS files)
SFSCOMP='-comp xz -Xbcj x86 -b 512K'
#SFSCOMP='-comp xz'
#SFSCOMP='-comp gzip'
#SFSCOMP='-noI -noD -noF -noX'
## if "$WOOF_HOSTARCH" = "$WOOF_TARGETARCH"
## This is usually not needed
EXTRA_STRIPPING=yes
## -- pTheme -- applies only if ptheme pkg is being used
## woof-code/rootfs-packages/ptheme/usr/share/ptheme/globals
PTHEME="S15Pup"
#PTHEME="Dark_Blue"
#PTHEME="Original Pup"
## -- Default Apps --
## Not all are implemented in the puppy scripts,
## but you can specify a default app if you wish...
## If you specify a value it will override anything that previously
## set that value in the corresponding script...
## These are the current default*apps (scripts) in /usr/local/bin
DEFAULTAPPS="
defaultarchiver=
defaultaudioeditor=
defaultaudiomixer=
defaultaudioplayer=
defaultbrowser=light
defaultcalendar=
defaultcdplayer=
defaultcdrecorder=
defaultchat=hexchat
defaultchmviewer=
defaultconnect=
defaultcontact=osmo
defaultdraw=inkscape
defaultemail=
defaultfilemanager=roxfiler
defaulthandler=
defaulthtmleditor=geany
defaulthtmlviewer=light
defaultimageeditor=mtpaint
defaultimageviewer=viewnior
defaultmediaplayer=gnome-mplayer
defaultpaint=
defaultpdfviewer=evince
defaultprocessmanager=
defaultrun=
defaultscreenshot=tas
defaultspreadsheet=gnumeric
defaultterminal=lxterminal
defaulttexteditor=geany
defaulttextviewer=geany
defaultwordprocessor=abiword
"
## -- NON-FREE firmware --
## this downloads and installs to fdrive firmwares that
## may be needed by the kernel drivers (wireless + dvb).
## a yes or no val to NONFREE_FW is needed to automate build
## Note 0: FDRV_INC= must be unset
## Note 1: see the file support/fw.conf for configuration
## Note 2: if you select b43* (any) in the fw.conf then b43-fwcutter
## is downloaded, compiled and installed if you don't already have it
## Note 3: if nouveau=true then a python script 'extract_firmware.py'
## is downloaded along with the full nvidia driver. It may take a while.
## Note 4: you can choose to keep downloaded binaries if you set the
## 'save_dld=true' var in fw.conf. They'll be used next time instead
## of downloading them again.
#NONFREE_FW=yes
## -- EXTRA FLAG --
## This allows some customisation for the iso name
## eg: slacko64-6.9.9.1-uefi-k3.16.iso
## where XTRA_FLG='-k3.16' (the dash is a requirement)
#XTRA_FLG=''
## - extra commands --
## Here add custom commands to be executed inside sandbox3/rootfs-complete
EXTRA_COMMANDS="
echo 'Executing EXTRA_COMMANDS............011222'
echo 'S15Pup64 System built on: $(date)' >> etc/system_build_date
# fix /bin/login 190520 PAM added
mv bin/login bin/full-pam-login
ln -s /bin/busybox bin/login
# old lib links - ncurses:
ln -s libncurses.so.6 lib64/libncurses.so.5
ln -s libncursesw.so.6 lib64/libncursesw.so.5
ln -s libform.so.6 usr/lib64/libform.so.5
ln -s libformw.so.6 usr/lib64/libformw.so.5
ln -s libmenu.so.6 usr/lib64/libmenu.so.5
ln -s libmenuw.so.6 usr/lib64/libmenuw.so.5
ln -s libpanel.so.6 usr/lib64/libpanel.so.5
ln -s libpanelw.so.6 usr/lib64/libpanelw.so.5
rm usr/lib64/libtermcap.so
ln -s ../../lib64/libtinfo.so.6 usr/lib64/libtermcap.so
# others:
ln -s libgif.so.7 usr/lib64/libgif.so.4
ln -s libgif.so.7 usr/lib64/libgif.so
ln -s libungif.so.7 usr/lib64/libungif.so
ln -s libiw.so.30 usr/lib64/libiw.so.29
ln -s libpcre.so.1 usr/lib64/libpcre.so.3
ln -s libavdevice.so.57 usr/lib64/libavdevice.so.56
ln -s libavformat.so.57 usr/lib64/libavformat.so.56
ln -s libavcodec.so.57 usr/lib64/libavcodec.so.56
ln -s libswscale.so.4 usr/lib64/libswscale.so.3
ln -s libavutil.so.55 usr/lib64/libavutil.so.54
ln -s libexiv2.so.27 usr/lib64/libexiv2.so.14
ln -s libexiv2.so.27 usr/lib64/libexiv2.so.26
ln -s libvpx.so.7 usr/lib64/libvpx.so.4
# libidn update 120518
ln -s libidn.so.12 usr/lib64/libidn.so.11
# remove unsupported items 090819
rm usr/lib64/alsa-lib/smixer/smixer-python.so
rm usr/lib64/libkeybinder-3.0.so.0.0.0
rm usr/lib64/libpoppler-qt*
# Prepare for gyro's new init with overlayfs
cp etc/DISTRO_SPECS ../build
# copy adrv, fdrv and README into iso
cp ../README-extra_sfs ../*drv*.sfs ../build
# fix PPM
echo \"PKG_REPOS_ENABLED=\' Packages-puppy-slacko6415.0-official Packages-puppy-noarch-official Packages-puppy-s15pup64-extra Packages-slackware64-15.0-official Packages-slackware64-15.0-salix \'\" >> var/packages/PKGS_MANAGEMENT
# cursor default link
rm root/.icons/default && ln -s Premium root/.icons/default
# fix pcur - hide Apply button
sed -i 's%THEME|X%THEME%' usr/sbin/pcur
sed -i 's%Apply%!%' usr/sbin/pcur
sed -i 's%apply%zero%' usr/sbin/pcur
# ptheme fixes
sed -i 's%</JWM>%%' root/.jwm/jwmrc-personal
echo '<ButtonClose>/root/.jwm/window_buttons/close.png</ButtonClose><ButtonMax>/root/.jwm/window_buttons/max.png</ButtonMax><ButtonMaxActive>/root/.jwm/window_buttons/maxact.png</ButtonMaxActive><ButtonMin>/root/.jwm/window_buttons/min.png</ButtonMin></JWM>' >> root/.jwm/jwmrc-personal
sed -i 's%>Puppy Standard</Option>%>ROX</Option>%' root/.config/rox.sourceforge.net/ROX-Filer/Options
sed -i 's%show_thumbs\">0%show_thumbs\">1%' root/.config/rox.sourceforge.net/ROX-Filer/Options
sed -i 's%\"Places\"%\"Places\" icon=\"puppy.svg\"%' usr/share/jwm/tray_templates/Puppy/jwmrc-tray2
sed -i 's%\"Places\"%\"Places\" icon=\"puppy.svg\"%' root/.jwm/jwmrc-tray2
sed -i 's/%H:%M/%a %d %b %H:%M/' usr/share/jwm/tray_templates/Puppy/jwmrc-tray2
sed -i 's/%H:%M/%a %d %b %H:%M/' root/.jwm/jwmrc-tray2
# revert to combobox in quicksetup to give scrollable lists
sed -i 's%comboboxtext%combobox%g' usr/sbin/quicksetup
# turn splash borders off
sed -i \"/-border true|false (default: true)/ c\
-border true|false (default: false)\" usr/lib/gtkdialog/box_splash
sed -i \"/border=true/ c\
border=false\" usr/lib/gtkdialog/box_splash
# fix RoxFiler icons
sed -i 's%>Puppy Standard</Option>%>ROX</Option>%' root/.config/rox.sourceforge.net/ROX-Filer/Options
# Add Notes to menu
sed -i '/help48.png/a<Program label=\"Notes\" icon=\"help48.png\">/usr/bin/show_scpup_notes.sh</Program>' etc/xdg/templates/_root_.jwmrc
sed -i '/help48.png/a<Program label=\"Notes\" icon=\"help48.png\">/usr/bin/show_scpup_notes.sh</Program>' root/.jwmrc
# Change some root directory icons
ln -s /usr/local/lib/X11/pixmaps/home48.png root/.DirIcon
ln -s /usr/local/lib/X11/pixmaps/edit48.png root/my-documents/.DirIcon
ln -s /usr/local/lib/X11/pixmaps/utility48.png root/my-applications/.DirIcon
ln -s /usr/local/lib/X11/pixmaps/connect48.png root/network/.DirIcon
ln -s /usr/local/lib/X11/pixmaps/www48.png root/Web-Server/.DirIcon
chown -R webuser:webgroup root/Web-Server/.DirIcon
# set pup-event autoplay true (2 formats 170118) 151122
#sed -i 's%HOTPLUGNOISY=\"false\"%HOTPLUGNOISY=true%' etc/eventmanager
#sed -i 's%HOTPLUGNOISY=false%HOTPLUGNOISY=true%' etc/eventmanager
# fix /etc/fonts/conf.avail/53-monospace-lcd-filter.conf
#sed -i 's%DejaVu Sans Mono</string>%DejaVu Sans Mono</string></test><test name=\"family\">%' etc/fonts/conf.avail/53-monospace-lcd-filter.conf
# xarchive - recognise pet 180719
sed -i 's%tgz%tgz pet%' usr/lib/xarchive/wrappers/tar-wrap.sh
sed -i 's%txz%txz pet%' usr/lib/xarchive/wrappers/tar-wrap.sh
# ptheme fix
sed -i 's%>Puppy Standard</Option>%>ROX</Option>%' root/.config/rox.sourceforge.net/ROX-Filer/Options
# udevtrules_cd fix
sed -i \"s%--lock-media %%\" lib/udev/rules.d/60-cdrom_id.rules
# libao pulseaudio fix
rm usr/lib64/ao/plugins-4/libpulse.so
# poppler-0.68.0-i586 upgrade fix 010918 required by evince
ln -s libpoppler.so.79 usr/lib64/libpoppler.so.62
# transmission needs remaking 030819:
ln -s libevent-2.1.so.7 usr/lib64/libevent-2.0.so.5
# requires due libical-3.0.4-i586-2
ln -s libical.so.3 usr/lib64/libical.so.2
ln -s libicalss.so.3 usr/lib64/libicalss.so.2
ln -s libicalvcal.so.3 usr/lib64/libicalvcal.so.2
# flac 110217:
rm -r usr/lib64/xmms
# /etc/fstab not required 010517
rm etc/fstab && touch etc/fstab
# Python update 261020:
rm -rf usr/lib64/python3.9
rm -rf usr/x86_64-slackware-linux
# guile-3.0.0-i586-1 .go type change 041217 & 170120
rm -rf usr/lib64/guile/3.0/ccache
# llvm-cut extra removes (package template?)
rm -rf usr/lib64/cmake
rm usr/lib64/libMesaOpenCL.so.*
rm usr/lib64/libfindAllSymbols.so.*
rm usr/lib64/*Plugin.so
rm usr/lib64/*Polly* #310120
ln -s liblz.so.1 usr/lib64/libPolly.so.12 # bodge for 64bit only
rm usr/lib64/LLVMgold.so
rm usr/lib64/liblld*
rm usr/lib64/libLLVMExtensions.so.*
rm usr/lib64/libLLVMLTO.so.*
rm usr/lib64/libLTO.so.*
rm usr/lib64/libclang*
rm usr/lib64/libompd.so
rm usr/lib64/libomptarget*
rm usr/bin/lld usr/bin/lit-cpuid usr/bin/lli-child-target usr/bin/pp-trace
# unwanted stuff in gcc_lib 100618
rm -rf usr/libexec/gcc
# fix new font/*** types 110418
ln -s application_x-font-ttf root/Choices/MIME-types/font_woff
ln -s application_x-font-ttf root/Choices/MIME-types/application_x-font-pcf
# python-2.7 removal 010119
rm -rf usr/lib64/python2.7
# from gutenprint 090119
rm -rf usr/lib64/gimp
# no notification server 010619 so:
chmod 644 usr/bin/notify-send
# gnutls update for libgnomeprintcups.so 010520
ln -s libnettle.so.8 usr/lib64/libnettle.so.6
ln -s libhogweed.so.6 usr/lib64/libhogweed.so.4
# 141019
ln -s libdvdread.so.7 usr/lib64/libdvdread.so.4
ln -s libdvdread.so.7 usr/lib64/libdvdread.so.8
# 271019 & 041219
sed -i 's%AutoAddDevices\" \"false%AutoAddDevices\" \"true%' etc/X11/xorg.conf-auto-pc
echo "NoDisplay=true" >> usr/share/applications/config_libinput.desktop
ln -s p_config_libinput usr/local/bin/flsynclient
# 110520
rm usr/share/applications/pkgdialog.desktop usr/share/applications/gpkgdialog.desktop
# remove missing depends 050222
rm usr/bin/alsabat usr/bin/gsx usr/libexec/libinput/libinput-debug-gui usr/lib64/sasl2/libsql.so.3.0.0 usr/bin/rsvg-view-3
# 100322 remove dependent missing
rm usr/libexec/openldap/argon2.so.2* usr/libexec/openldap/back_sql* usr/libexec/slapd
# 191022 make blank etc/environment to stop bash errors
mv etc/environment etc/environment-notes
touch etc/environment
# 031122 PPM wrapper
mv usr/local/petget/pkg_chooser.sh usr/local/petget/pkg_chooser_orig.sh
mv usr/local/petget/ppm-wrapper usr/local/petget/pkg_chooser.sh
sed -i 's%ps --no-headers -C pkg_chooser%ps --no-headers -C pkg_chooser_orig%' usr/local/petget/pkg_chooser_orig.sh
rm usr/local/bin/ppm
ln -s ../petget/pkg_chooser_orig.sh usr/local/bin/ppm
# 171122 for /eudev/lib/udev/rules.d/50-udev-default.rules
echo 'input:x:31:' >> etc/group
# Adwaita link for Abiword petbuild
ln -s 'Puppy Standard' usr/share/icons/Adwaita
# PupControl
ln -s ../../sbin/ptheme /usr/local/jwm_config/pdesktop
#
# see Packages-extra-lxpup64 for reverts
# 231218 libpcre2-8.so.0 put in zz_fix_scpup - wget-1.20-1 dependency
# 170319 libxml2 REVERTED to 2.9.4 from 14.2 for osmo/contacts+ segfault
# 070822 ln -s libffi.so.7 usr/lib64/libffi.so.6 put in zz_fix_scpup
# 140722 hardinfo binary & modules replaced by debian/bullseye to remove libsoup2 dep
"