install-data-local:
@for file in $(CONFIG_FILES); do \
if [ ! -e $(icinga2confdir)/$$file ]; then \
- $(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
+ $(INSTALL_DATA) $(INSTALL_OPTS) -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
fi; \
done
@if [ ! -e $(icinga2confdir) ]; then \
$(MKDIR_P) $(icinga2confdir); \
for file in $(CONFIG_FILES); do \
- $(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
+ $(INSTALL_DATA) $(INSTALL_OPTS) -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
done; \
fi
@$(MKDIR_P) $(icinga2confdir); \
for file in $(CONFIG_FILES); do \
if [ ! -e $(icinga2confdir)/$$file ]; then \
- $(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
+ $(INSTALL_DATA) $(INSTALL_OPTS) -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
fi; \
done
%setup -q -n %{name}-%{version}
%build
-%configure --with-icinga-user=$USER \
- --with-icinga-group=$USER \
- --with-icingacmd-user=$USER \
- --with-icingacmd-group=$USER
+%configure --with-icinga-user=%{icinga_user} \
+ --with-icinga-group=%{icinga_group} \
+ --with-icingacmd-user=%{icinga_user} \
+ --with-icingacmd-group=%{icinga_group}
make %{?_smp_mflags}