diff --git a/debian/rules b/debian/rules index 2752d73..36f8c80 100755 --- a/debian/rules +++ b/debian/rules @@ -32,8 +32,8 @@ install: build # Add here commands to install the package into debian/nagios-snmp-plugins. for PLUGINS in plugins/*.pl; \ do \ - install -D -m 0755 $$PLUGINS $(NP_DIR)$(NP_LIBEXEC)/$$PLUGINS || exit 1; \ - sed -i "s#/usr/local/icinga/libexec#$(NP_LIBEXEC)#" $(NP_DIR)$(NP_LIBEXEC)/$$PLUGINS || exit 1; \ + install -D -m 0755 $$PLUGINS $(NP_DIR)$(NP_LIBEXEC)/`basename $$PLUGINS` || exit 1; \ + sed -i "s#/usr/local/icinga/libexec#$(NP_LIBEXEC)#" $(NP_DIR)$(NP_LIBEXEC)/`basename $$PLUGINS` || exit 1; \ done # copying templates them into seperate "template" directories outside of # /usr/share/doc for ucf to use.