aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-08-08 23:05:28 +0200
committer Eric Hameleers <alien@slackware.com>2016-08-08 23:05:28 +0200
commit3aa99574453b599cf4269bcea4b46997641855ef (patch)
tree33ff7d0c43e6573ae49a6e3261f7d318a50a7bb6 /make_slackware_live.sh
parent6403d94842ba3d9a67583b594e3c47e27b3f2bd6 (diff)
downloadliveslak-3aa99574453b599cf4269bcea4b46997641855ef.tar.gz
liveslak-3aa99574453b599cf4269bcea4b46997641855ef.tar.xz
XFCE: add tigervnc and HP printer support.
While still staying below the CDROM size limit of 737.280.000 bytes, I was able to add lftp, fltk and tigervnc (because I need them), cdrtools and dosfstools (because iso2usb.sh needs them), as well as hplip and net-snmp to complement the recently added cups packages. I hope the XFCE variant now has a fully functional print support.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 3ca6234..afcabd6 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -387,10 +387,25 @@ function install_pkgs() {
if [ "$TRIM" = "doc" -o "$TRIM" = "mandoc" -o "$LIVEDE" = "XFCE" ]; then
# Remove undesired (too big for a live OS) document subdirectories:
(cd "${2}/usr/doc" && find . -type d -mindepth 2 -maxdepth 2 -exec rm -rf {} \;)
+ rm -rf "$2"/usr/share/gtk-doc
+ rm -rf "$2"/usr/share/help
+ # Remove residual bloat:
+ rm -f "${2}"/usr/doc/*/*.{html,css,xml,pdf,db,bz2,xz}
fi
if [ "$TRIM" = "mandoc" ]; then
- # Also remove man pages:
- rm -rf "$2"/usr/man
+ # Also remove man and info pages:
+ rm -rf "$2"/usr/man "$2"/usr/info
+ fi
+ if [ "$LIVEDE" = "XFCE" ]; then
+ # By pruning stuff that no one likely needs anyway,
+ # we make room for packages we would otherwise not be able to add.
+ # MySQL embedded is only used by Amarok:
+ rm -f "$2"/usr/bin/mysql*embedded*
+ # I am against torture:
+ rm -f "$2"/usr/bin/smbtorture
+ # Also remove some of the big unused/esoteric static libraries:
+ rm -rf "$2"/usr/lib${DIRSUFFIX}/{libaudiofile,libgdk,libglib,libgtk}.a
+ rm -rf "$2"/usr/lib${DIRSUFFIX}/{liblftp*,libnl}.a
fi
# End install_pkgs