aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:49:55 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:49:55 -0400
commit76898ff2b20038065de9c6d1b7e22bc3d504ca05 (patch)
tree31a0ea2ea77a42aecf2573a7353269e2c3602f2c /system
parentf62c7fab7c48382ba36453cf238903a541385ec9 (diff)
system/nagios-plugins: Fixed for bash4.
Diffstat (limited to 'system')
-rw-r--r--system/nagios-plugins/nagios-plugins.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/system/nagios-plugins/nagios-plugins.SlackBuild b/system/nagios-plugins/nagios-plugins.SlackBuild
index 011801b8eb65..1facb4f6f8e2 100644
--- a/system/nagios-plugins/nagios-plugins.SlackBuild
+++ b/system/nagios-plugins/nagios-plugins.SlackBuild
@@ -74,12 +74,8 @@ make install DESTDIR=$PKG
# otherwise most people will never realise they exist
cp -a contrib $PKG/usr/libexec/nagios/.
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
chown -R root.nagios $PKG/usr/libexec/nagios
chmod u+s $PKG/usr/libexec/nagios/check_{icmp,dhcp};