summaryrefslogtreecommitdiffstats
path: root/source/ap/linuxdoc-tools/postbuildfixes.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2009-08-26 10:00:38 -0500
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:41:17 +0200
commit5a12e7c134274dba706667107d10d231517d3e05 (patch)
tree55718d5acb710fde798d9f38d0bbaf594ed4b296 /source/ap/linuxdoc-tools/postbuildfixes.sh
downloadcurrent-slackware-13.0.tar.gz
current-slackware-13.0.tar.xz
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P.
Diffstat (limited to 'source/ap/linuxdoc-tools/postbuildfixes.sh')
-rwxr-xr-xsource/ap/linuxdoc-tools/postbuildfixes.sh69
1 files changed, 69 insertions, 0 deletions
diff --git a/source/ap/linuxdoc-tools/postbuildfixes.sh b/source/ap/linuxdoc-tools/postbuildfixes.sh
new file mode 100755
index 000000000..b9e305eec
--- /dev/null
+++ b/source/ap/linuxdoc-tools/postbuildfixes.sh
@@ -0,0 +1,69 @@
+#!/bin/bash
+
+# Once altertrack has determined what the contents of the package
+# should be, it copies them into $SLACKTRACKFAKEROOT
+# From here we can make modifications to the package's contents
+# immediately prior to the invocation of makepkg: altertrack will
+# do nothing else with the contents of the package after the execution
+# of this script.
+
+# If you modify anything here, be careful *not* to include the full
+# path name - only use relative paths (ie rm usr/bin/foo *not* rm /usr/bin/foo).
+
+# Enter the package's contents:
+cd $SLACKTRACKFAKEROOT
+
+# OpenSP creates this symlink; we delete it.
+if [ -L usr/share/doc ]; then
+ rm -f usr/share/doc
+fi
+
+# Incase you had CUPS running:
+rm -rf etc/cups etc/printcap
+# crond:
+rm -rf var/spool/cron
+rmdir var/spool
+
+# perllocal.pod files don't belong in packages.
+# SGMLSPL creates this:
+find . -name perllocal.pod -print0 | xargs -0 rm -f
+
+# Some doc dirs have attracted setuid.
+# We don't need setuid for anything in this package:
+chmod -R a-s .
+
+# Ensure some permissions.
+# I don't know why but these dirs are installed chmod 1755:
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/pk/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/pk/ljfour/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/pk/ljfour/jknappen/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/pk/ljfour/jknappen/ec/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/source/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/source/jknappen/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/source/jknappen/ec/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/tfm/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/tfm/jknappen/
+#drwxr-xr-t root/root 0 2006-05-27 15:42:44 var/lib/texmf/tfm/jknappen/ec/
+#find var/lib/texmf -type d -print0 | xargs -0 chmod 755
+# This directory needs these permissions to permit pleb accounts to make
+# fonts:
+#chmod 1777 var/lib/texmf
+#
+# Never mind: I think this stuff is surplus to requirements:
+rm -rf var/lib/texmf
+# Now to prevent deletion of anything else that lives in the package's '/var'
+rmdir var/lib
+rmdir var
+
+# There's no reason to include huge redundant documentation:
+cd usr/doc
+find . -name "*.txt" | while read docfile ; do
+ basedocname=$(echo $docfile | rev | cut -f 2- -d . | rev)
+ rm -fv ${basedocname}.{html,pdf,xml}
+ rm -fv docbook-xsl*/reference.pdf.gz
+done
+
+# Now you should manually extract the .tgz
+# - check through the install/doinst.sh script;
+# - check the contents, permissions and ownerships in the package archive.