-
Notifications
You must be signed in to change notification settings - Fork 276
/
_00build.conf
259 lines (231 loc) · 12.9 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
#
# 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
STRIP_BINARIES=no
## Kernel tarballs repo URL for choosing/downloading kernel
KIT_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=http://distro.ibiblio.org/puppylinux/huge_kernels/huge-5.10-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="non-free-firmware-pc"
## 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/bwp32/adrv_dpupbw32_23.12.sfs
## build devx? yes/no - any other value = ask
BUILD_DEVX=yes
BUILD_NLSX=yes
## include devx SFS in ISO?
DEVX_IN_ISO=no
## include docx SFS in ISO?
DOCX_IN_ISO=no
[ "$DISTRO_VARIANT" = "retro" ] && DOCX_IN_ISO=no
## include nlsx SFS in ISO?
NLSX_IN_ISO=no
[ "$DISTRO_VARIANT" = "retro" ] && NLSX_IN_ISO=no
## include kbuild SFS in ISO?
KBUILD_IN_ISO=yes
[ "$DISTRO_VARIANT" = "retro" ] && KBUILD_IN_ISO=no
## UnionFS: aufs or overlay
UNIONFS=overlay
## symlink /bin, /sbin and /lib to their /usr counterparts, like Debian?
USR_SYMLINKS=yes
## build bdrv? yes/no
BUILD_BDRV=yes
## packages to build from source
PETBUILDS="busybox aaa_pup_c disktype dmz-cursor-theme geany gexec gtkdialog gtk_theme_flat_grey_rounded gtk_theme_polished_blue gtk_theme_gradient_grey gtk_theme_buntoo_ambience gtk_theme_stark_blueish gxmessage l3afpad lxtask mtpaint transmission xarchiver xcur2png xdelta Xdialog yad pmaterial_icons puppy_standard_icons puppy_flat_icons connman-puppy connman-gtk fixmenusd spot-pkexec notification-daemon-stub weechat claws-mail viewnior"
[ "$DISTRO_TARGETARCH" = "x86_64" ] && PETBUILDS="$PETBUILDS efilinux"
[ "$DISTRO_VARIANT" != "retro" ] && PETBUILDS="$PETBUILDS abiword gnumeric gparted gmeasures fpm2 xpad gtkhash ExpenseTracker grsync uget fsearch mtr"
if [ "$DISTRO_VARIANT" = "dwl" -o "$DISTRO_VARIANT" = "xwayland" ]; then
PETBUILDS="$PETBUILDS dwl-kiosk swaylock wlopm"
fi
if [ "$DISTRO_VARIANT" = "dwl" ]; then
PETBUILDS="$PETBUILDS foot-puppy yambar-dwl spacefm"
else
PETBUILDS="$PETBUILDS firewallstatus freememapplet jwm lxterminal pa-applet powerapplet_tray xdg-puppy-jwm connman-ui rox-filer deadbeef"
if [ "$DISTRO_VARIANT" != "xwayland" ]; then
PETBUILDS="$PETBUILDS xlockmore"
fi
fi
## GTK+ version to use when building packages that support GTK+ 2
PETBUILD_GTK=3
## Include the windows puppy installer LICK by Luke Lorimer aka <noryb009>
LICK_IN_ISO=yes
## compression method to be used (SFS files)
#SFSCOMP='-comp xz -Xbcj x86 -b 512K'
#SFSCOMP='-comp xz -Xbcj arm,armthumb -b 512K'
#SFSCOMP='-comp gzip'
#SFSCOMP='-noI -noD -noF -noX'
SFSCOMP='-comp xz -Xbcj x86 -b 1024K -no-exports -no-xattrs'
#SFSCOMP='-comp zstd -Xcompression-level 19 -b 256K -no-exports -no-xattrs'
## if "$WOOF_HOSTARCH" = "$WOOF_TARGETARCH"
## This is usually not needed
EXTRA_STRIPPING=no
## You can choose a theme here if you wish
## otherwise 3builddistro will ask you to choose one
THEME_WALLPAPER="tahrpup.svg"
THEME_GTK2="Flat-grey-rounded"
THEME_JWM="Flat-grey-jwmrc"
THEME_JWM_BUTTONS=""
THEME_GTK_ICONS="Puppy Standard"
THEME_DESK_ICONS="StandardSvg"
THEME_MOUSE="Breeze_Snow"
## XERRS_FLG if set to 'yes' enables logging of X errors in /tmp/xerrs.log
## if unset or or any value other than 'yes' X logging is disabled. User can change this in 'Startup Manager'
## For testing builds XERRS_FLG=yes is recommended. If the target device is low RAM suggest to leave this unset, especially for release
#XERRS_FLG=yes
## XSPOT_FLG if set to 'yes' X runs as spot
## if unset or or any value other than 'yes' X runs as root.
XSPOT_FLG=no
## include Pkg in build (y/n). If commented then asked in 3builddistro
INCLUDE_PKG=n
## choice to build 64 bit support only for UEFI booting
## or 64 bit and 32 bit UEFI support
## if not set then only 64 bit support is builtin to the iso image
## which is the default
#UEFI_32=y
## -- 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=xarchiver
defaultaudioeditor=mhwaveedit
defaultaudiomixer=pavucontrol
defaultaudioplayer=deadbeef
defaultbrowser=light
defaultcalendar=osmo --calendar
defaultcdplayer=deadbeef /dev/sr0/all.cda
defaultcdrecorder=pburn
defaultchat=weechat-shell
defaultchmviewer=
defaultconnect=connman-gtk
defaultcontact=osmo
defaultdraw=mtpaint
defaultemail=claws-mail
defaultfilemanager=roxfiler
defaulthandler=
defaulthtmleditor=geany
defaulthtmlviewer=light
defaultimageeditor=mtpaint
defaultimageviewer=viewnior
defaultmediaplayer=mpv --player-operation-mode=pseudo-gui
defaultpaint=mtpaint
defaultpdfviewer=qpdfview
defaultprocessmanager=lxtask
defaultrun=prun
defaultscreenshot=tas
defaultspreadsheet=gnumeric
defaultterminal=lxterminal
defaulttexteditor=geany
defaulttextviewer=l3afpad
defaulttorrent=transmission-gtk
defaultwordprocessor=abiword
"
## PROMPT - change the CLI prompt to whatever you like. Default is unset
#PROMPT='PS1="\w\$ "'
## -- 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="
cp -f ../../packages-dpupbw32/zz-bw32-setup/root/Choices/ROX-Filer/PuppyPin root/Choices/ROX-Filer/PuppyPin
# Useful info in iso
cp etc/DISTRO_SPECS ../build
# Copy samba and README into iso
cp ../../packages-pet/samba*.sfs ../build
cp ../../support/bwp32/*sfs ../build
sed -z -i 's/warning_func/\#warning_func/2' usr/sbin/firewall_ng
chroot . /usr/sbin/firewall_ng enable
sed -z -i 's/\#warning_func/warning_func/1' usr/sbin/firewall_ng
#chroot . /usr/sbin/setup-spot firefox=true
#chroot . /usr/sbin/setup-spot firefox-esr=true
#chroot . /usr/sbin/setup-spot claws-mail=true
#chroot . /usr/sbin/setup-spot transmission-gtk=true
#chroot . /usr/sbin/setup-spot weechat=true
#chroot . /usr/sbin/setup-spot uget-gtk=true
#chroot . /usr/sbin/setup-spot putty=true
#[ \"\$DISTRO_VARIANT\" != \"dwl\" ] && mv -f root/.spot-status root/.spot-status.orig
#[ \"\$DISTRO_VARIANT\" != \"dwl\" ] && chroot . /usr/sbin/setup-spot powerapplet_tray=true
#[ \"\$DISTRO_VARIANT\" != \"dwl\" ] && mv -f root/.spot-status.orig root/.spot-status
./usr/sbin/pup-advert-blocker start ./etc/hosts
#rm -f usr/share/applications/conky.desktop usr/share/applications/connman-gtk.desktop usr/share/applications/pupX-X-settings.desktop usr/share/applications/Mouse-keyboard-Wizard.desktop usr/share/applications/Xorg-Video-Wizard.desktop usr/share/applications/BootManager-configure-bootup.desktop usr/share/applications/wallpaper.desktop usr/share/applications/FontManager.desktop usr/share/applications/Set-date-and-time.desktop usr/share/applications/Set-timezone.desktop usr/share/applications/ptheme.desktop usr/share/applications/Psync.desktop usr/share/applications/Puppy-package-manager-check-deps.desktop
#for i in usr/share/themes/*; do case \"\$i\" in usr/share/themes/Default|usr/share/themes/Emacs|usr/share/themes/Flat-grey-rounded|usr/share/themes/Polished-Blue|usr/share/themes/Gradient-grey|usr/share/themes/buntoo-ambience|usr/share/themes/stark-blueish|usr/share/themes/Numix) ;; *) rm -vrf \"\$i\" ;; esac; done
#for i in usr/share/jwm/themes/*; do case \"\$i\" in usr/share/jwm/themes/Buntoo-jwmrc|usr/share/jwm/themes/Gradient_grey-jwmrc|usr/share/jwm/themes/Gradient-blueish-jwmrc|usr/share/jwm/themes/Flat-grey-jwmrc|usr/share/jwm/themes/Stark_blueish-jwmrc|usr/share/jwm/themes/Numix-jwmrc|usr/share/jwm/themes/Breeze-jwmrc) ;; *) rm -vf \"\$i\" ;; esac; done
#for i in usr/share/jwm/themes_window_buttons/*; do case \"\$i\" in usr/share/jwm/themes_window_buttons/Maccish|usr/share/jwm/themes_window_buttons/XPish|usr/share/jwm/themes_window_buttons/Buntu|usr/share/jwm/themes_window_buttons/Buntu_white|usr/share/jwm/themes_window_buttons/Breeze) ;; *) rm -rvf \"\$i\" ;; esac; done
#rm -vf usr/share/backgrounds/*.jpg usr/share/backgrounds/Sky.svg \"usr/share/backgrounds/Stardust bright.svg\" \"usr/share/backgrounds/Stardust dark.svg\" usr/share/backgrounds/xfwallpaper.svg usr/share/backgrounds/default.svg usr/share/backgrounds/412.svg
#rm -f usr/share/backgrounds/Black.svg usr/share/backgrounds/Blue.svg usr/share/backgrounds/DarkGray.svg usr/share/backgrounds/LightGray.svg usr/share/backgrounds/SolidDarkGray.svg usr/share/backgrounds/Pink.svg usr/share/backgrounds/Purple.svg
#rm -f etc/fonts/conf.d/10-hinting-slight.conf etc/fonts/conf.d/10-autohint.conf
ln -s /usr/share/fontconfig/conf.avail/10-hinting-none.conf etc/fonts/conf.d/
rm -f var/packages/Packages-debian-*
rm -f var/packages/Packages-puppy-dpup32-extra
truncate -s 0 var/packages/Packages-*
chroot . run-as-spot weechat-headless -r \"/server add libera irc.libera.chat/6697 -autoconnect -ssl;/set irc.server.libera.autojoin #puppylinux;/quit\"
rm -f usr/bin/weechat-headless
rm -f etc/localtime
ln -s /usr/share/zoneinfo/Etc/GMT-0 etc/localtime
sed -i \"s/exec ppm/exec synaptic/\" usr/local/bin/missingdefaultapp
sed -i -e 's/successfuly/successfully/' -e 's/'XkbConfigmanager!/'XkbConfig/' usr/sbin/xkbconfigmanager
sed -i 's/ICON_PLACE_SPACING=.*$/ICON_PLACE_SPACING=96/' etc/eventmanager
sed -i -e 's/comboboxtext/combobox/' -e 's/gtkdialog -p/gtk2dialog -p/g' usr/sbin/quicksetup
#sed -i -e 's/640/740/' -e 's/gtkdialog -p/gtk2dialog -p/' usr/local/apps/Wallpaper/AppRun
sed -i 's/^Categories=.*$/Categories=AudioVideo;/' usr/share/applications/io.github.celluloid_player.Celluloid.desktop
sed -i 's/^Categories=.*$/Categories=AudioVideo;/' usr/share/applications/mpv.desktop
sed -i -e 's/^Categories=.*$/Categories=X-Document-viewer;/' -e 's/^Comment=.*$/Comment=Tabbed document viewer/' usr/share/applications/qpdfview.desktop
sed -i 's/^Categories=.*$/Categories=AudioVideo;/' usr/share/applications/qwinff.desktop
sed -i 's/^Categories=.*$/Categories=AudioVideo;/' usr/share/applications/simplescreenrecorder.desktop
sed -i 's/gtkdialog -/gtk2dialog -/g' usr/bin/xsaneshell
sed -i 's/gtkdialog -/gtk2dialog -/g' usr/sbin/firewall_ng
sed -i 's/gtkdialog4/gtk2dialog/g' usr/bin/pmwget
sed -i 's/gtkdialog/gtk2dialog/' usr/local/bin/peasyport
sed -i 's/gtkdialog3/gtk2dialog/' usr/local/bin/peasyscale
sed -i 's/gtkdialog3/gtk2dialog/' usr/sbin/peasydiff
sed -i 's/gtkdialog3/gtk2dialog/' usr/sbin/peasyprint
sed -i 's/gtkdialog3/gtk2dialog/' usr/local/peasyglue/peasyglue
sed -i -e 's/gtkdialog --center/gtk2dialog --center/' -e 's/xml_info/xml_info_gtk2/g' usr/sbin/dotpup
sed -i -e 's/(gtkdialog/(gtk2dialog/' -e 's/xml_info/xml_info_gtk2/g' usr/sbin/fontmanager
sed -i -e 's/timeout 60/timeout 8/' -e 's/60 seconds/8 seconds/' etc/rc.d/rc.shutdown
sed -i -e 's/\$GTKDIALOG -p/gtk2dialog -p/' usr/local/UrxvtControl/urxvtcontrol
sed -i -e 's/gtkdialog --space/gtk2dialog --space/' usr/bin/pfontview
sed -i -e 's/gtkdialog --program/gtk2dialog --program/g' usr/sbin/loginmanager
sed -i -e 's/aplay/play/' usr/local/apps/Trash/template/temp-AppRun
sed -i -e 's/aplay/play/' usr/local/apps/Trash/AppRun
sed -i -e 's/button-press-event/button-release-event/' usr/local/pfind/pfind
sed -i -e '0,/defaultfilemanager/ s/defaultfilemanager/rox/' usr/local/pfind/pfindrc
sed -i -e '0,/defaultfilemanager/ s/defaultfilemanager/rox/' root/.pfind/pfindrc
rm -f root/.config/rox.sourceforge.net/OpenWith/ffinfo
#rm -f usr/bin/gcolor2
rm -f usr/local/jwmdesk/uimanager
rm -f usr/bin/zenity
echo \"kernel.yama.ptrace_scope = 1\" > etc/sysctl.d/10-ptrace.conf
echo \"plocate:x:114:\" >> etc/group
[ \"\$DISTRO_VARIANT\" = \"dwl\" ] && rm -f etc/xdg/autostart/blueman.desktop
[ \"\$DISTRO_VARIANT\" = \"dwl\" -o \"\$DISTRO_VARIANT\" = \"xwayland\" ] && rm -f etc/xdg/autostart/xinput-apply.desktop etc/xdg/autostart/xkb-apply.desktop etc/xdg/autostart/xorg-mousekeys.desktop
ln -s blas/libblas.so.3 usr/lib/i386-linux-gnu/libblas.so.3
ln -s lapack/liblapack.so.3 usr/lib/i386-linux-gnu/liblapack.so.3
ln -s libglut.so.3.12 usr/lib/i386-linux-gnu/libglut.so.3
ln -s libffi.so.8 usr/lib/i386-linux-gnu/libffi.so.6
# BookwormPup32 fixes 031123
rm usr/bin/xfimage usr/bin/xfpack usr/bin/xfwrite
rm usr/share/applications/xfi.desktop usr/share/applications/xfp.desktop usr/share/applications/xfw.desktop
rm root/.config/autostart/netmon_wce.desktop # in /etc/xdg/autostart/backup
# Deadbeef help fix 140224
cp -f ../../petbuild-output/deadbeef-latest/usr/share/doc/deadbeef usr/share/doc
"