summaryrefslogtreecommitdiffstats
path: root/system/preload/preload.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/preload/preload.SlackBuild')
-rw-r--r--system/preload/preload.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/system/preload/preload.SlackBuild b/system/preload/preload.SlackBuild
index a5fe11626b..e978d1e73f 100644
--- a/system/preload/preload.SlackBuild
+++ b/system/preload/preload.SlackBuild
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=preload
-VERSION=0.6.3
-BUILD=${BUILD:-3}
+VERSION=0.6.4
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -78,13 +76,15 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSON \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
cp $CWD/preload.8 .
make pkgdocdir=/usr/doc/$PRGNAM-$VERSION || \
- make pkgdocdir=/usr/doc/$PRGNAM-$VERSION
+ make pkgdocdir=/usr/doc/$PRGNAM-$VERSION
+# Yes, this is intentional
+
make install \
pkgdocdir=/usr/doc/$PRGNAM-$VERSION \
DESTDIR=$PKG
@@ -92,6 +92,9 @@ make install \
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Clobber the bad manpage (I thought the stuff above fixed it)
+gzip -9c $CWD/preload.8 > $PKG/usr/man/man8/preload.8.gz
+
# Create the lockfile directory
# We'll use /var/run/preload instead of /var/lock/subsys, so that a stale
# lockfile hanging around won't keep preload from starting on boot