# Changelog:# 0.99.12 - Added PKG_SANIFYNOTOUCH variable to avoid sanifysource from# touching all files on a package as that can break some builds (like vala)## 0.99.11 - Added a check to see if the current system supports the # new slackware packages.#------## PKG_USEAUTOGENSH - Normally null.## Set this to a non-null value if the source package needs autogen.sh run## instead of the normal configure script during the configure stage.#### PKG_SANIFYNOTOUCH - Normally null.## Set this to make the sanifysource to not execute a touch on all files on## a tarball. This is usually a good idea but sometimes can break a build.#### The following booleans may be set if you know the analysis functions won't## catch on to the presence of certain facilities belonging to a package.## (or if you don't trust the automagic package analyzer)----## sanifysource() dirname## This routine merely chowns, chmods, and touches the source files.##sanifysource() { local dirname=${1:?'Internal error: sanifysource() requires a dirname!'} if [ "$dirname" = "/" ]; then die "No, I will not trash your filesystem." fi # This syntax DOES NOT WORK! It winds up ignoring directories. #spewdo "find $dirname -type d -o -type f -exec touch {} \;" if [ -z "$PKG_SANIFYNOTOUCH" ]; then spewdo "find $dirname \( -type d -or -type f \) -exec touch {} \;" fi #spewdo "find $dirname -type d -o -type f -exec chown root.root {} \;" spewdo "find $dirname \( -type d -or -type f \) -exec chown root.root {} \;" spewdo "find $dirname -type d -exec chmod go-w+x {} \;" # This _should_ be safe. spewdo "find $dirname -type f -exec chmod go-wx {} \;"}