Skip to content

Commit

Permalink
build: correct install locations of pmproxy configs
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Apr 26, 2019
1 parent f2ff398 commit 6989da0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build/rpm/fedora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2843,6 +2843,7 @@ cd
%config(noreplace) %{_confdir}/pmcd/rc.local
%dir %{_confdir}/pmproxy
%config(noreplace) %{_confdir}/pmproxy/pmproxy.options
%config(noreplace) %{_confdir}/pmproxy/pmproxy.conf
%dir %{_confdir}/pmie
%dir %{_confdir}/pmie/control.d
%config(noreplace) %{_confdir}/pmie/control
Expand All @@ -2854,8 +2855,6 @@ cd
%dir %attr(0775,pcp,pcp) %{_confdir}/nssdb
%dir %{_confdir}/discover
%config(noreplace) %{_confdir}/discover/pcp-kube-pods.conf
%dir %{_confdir}/pmproxy
%config(noreplace) %{_confdir}/pmproxy/pmproxy.conf
%dir %{_confdir}/pmseries
%config(noreplace) %{_confdir}/pmseries/pmseries.conf

Expand Down
4 changes: 2 additions & 2 deletions src/pmproxy/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ TOPDIR = ../..
include $(TOPDIR)/src/include/builddefs

SUBDIRS = src
CONFIGS = pmproxy.conf pmproxy.options pmproxy.defaults
LDIRT = *.log pmproxy.service

default: $(SUBDIRS) pmproxy.service
Expand All @@ -26,7 +25,8 @@ default: $(SUBDIRS) pmproxy.service
install: $(SUBDIRS)
$(SUBDIRS_MAKERULE)
$(INSTALL) -m 755 -d $(PCP_SYSCONF_DIR)/pmproxy
$(INSTALL) -m 644 $(CONFIGS) $(PCP_SYSCONF_DIR)/pmproxy
$(INSTALL) -m 644 pmproxy.conf pmproxy.options $(PCP_SYSCONF_DIR)/pmproxy
$(INSTALL) -m 644 pmproxy.defaults $(PCP_SYSCONFIG_DIR)/pmproxy
$(INSTALL) -m 755 rc_pmproxy $(PCP_RC_DIR)/pmproxy
ifeq ($(ENABLE_SYSTEMD),true)
$(INSTALL) -m 644 pmproxy.service $(PCP_SYSTEMDUNIT_DIR)/pmproxy.service
Expand Down

0 comments on commit 6989da0

Please sign in to comment.