d/rules: Fix installation location

This commit is contained in:
Jan Wagner 2016-12-08 09:09:45 +01:00
parent 0769a79a16
commit d014d9b695

4
debian/rules vendored
View file

@ -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.