summaryrefslogtreecommitdiffstats
path: root/source/a/ndctl/ndctl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/ndctl/ndctl.SlackBuild')
-rwxr-xr-xsource/a/ndctl/ndctl.SlackBuild6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/a/ndctl/ndctl.SlackBuild b/source/a/ndctl/ndctl.SlackBuild
index 65ba4ab8..e1ae0f7f 100755
--- a/source/a/ndctl/ndctl.SlackBuild
+++ b/source/a/ndctl/ndctl.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ndctl
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -123,9 +123,7 @@ mv $PKG/etc/ndctl/monitor.conf $PKG/etc/ndctl/monitor.conf.new
# since it isn't available on a default installation. No matter, we'll just
# install the completion file manually:
mkdir -p $PKG/usr/share/bash-completion/completions
-cp -a contrib/ndctl $PKG/usr/share/bash-completion/completions
-chown root:root $PKG/usr/share/bash-completion/completions
-chmod 644 $PKG/usr/share/bash-completion/completions
+cat contrib/ndctl > $PKG/usr/share/bash-completion/completions/ndctl
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null