2 # Copyright (c) 2013-2016 Red Hat.
3 # Copyright (c) 2000,2003,2004 Silicon Graphics, Inc. All Rights Reserved.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 include $(TOPDIR
)/src
/include/builddefs
18 -include .
/GNUlocaldefs
21 linux_proc linux_xfs linux \
22 darwin freebsd netbsd solaris aix windows \
23 sample simple trivial sendmail mailq txmon \
24 apache cisco trace shping mounts weblog \
25 mmv lmsensors process roomtemp summary etw \
26 lustrecomm infiniband logger bash systemd \
27 gfs2 jbd2 cifs rpm nvidia papi perfevent \
28 dm pipe openbsd docker
30 PLPMDAS
= bonding netfilter zimbra postgresql \
31 dbping memcache mysql oracle vmware kvm \
32 named news pdns samba dtsrun postfix gpsd \
33 rsyslog elasticsearch snmp nginx nfsclient \
34 ds389 ds389log activemq lustre gpfs slurm \
35 bind2 redis nutcracker
37 PYPMDAS
= gluster zswap unbound mic json libvirt
39 SUBDIRS
= $(CPMDAS
) $(PLPMDAS
) $(PYPMDAS
)
42 default
:: default_pcp
44 default_pcp
: $(SUBDIRS
)
45 @echo
'# Performance Metrics Domain Specifications' > pmcd.conf
46 @echo
'# ' >> pmcd.conf
47 @echo
'# This file is automatically generated during the build' >> pmcd.conf
48 @echo
'# Name Id IPC IPC Params File/Cmd' >> pmcd.conf
51 @echo
'[access]' >> pmcd.conf
52 @echo
'disallow ".*" : store;' >> pmcd.conf
53 @echo
'disallow ":*" : store;' >> pmcd.conf
54 @echo
'allow "local:*" : all;' >> pmcd.conf
56 install :: install_pcp
58 install_pcp
:: $(SUBDIRS
)
61 install_pcp
:: default_pcp
62 $(INSTALL
) -m
755 -d
`dirname $(PCP_PMCDCONF_PATH)`
63 $(INSTALL
) -m
644 pmcd.conf
$(PCP_PMCDCONF_PATH
)