forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
82 lines (75 loc) · 1.71 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
SCL_SUBDIRS = \
apache \
arr \
cee \
cim \
cisco \
collectd \
checkpoint \
default-network-drivers \
darwinosl \
discord \
elasticsearch \
ewmm \
fortigate \
google \
graphite \
graylog2 \
hdfs \
iptables \
jellyfin \
junos \
kafka \
linux-audit \
loadbalancer \
loggly \
logmatic \
logscale \
mariadb \
mbox \
netskope \
nodejs \
openobserve \
opensearch \
osquery \
pacct \
paloalto \
pihole \
pgsql \
python \
qbittorrent \
rewrite \
slack \
snmptrap \
solaris \
splunk \
sudo \
sumologic \
syslogconf \
system \
websense \
telegram \
windowseventlog
SCL_CONFIGS = scl.conf syslog-ng.conf
EXTRA_DIST += $(addprefix scl/,$(SCL_CONFIGS) $(SCL_SUBDIRS)) scl/CMakeLists.txt
scl-install-data-local:
if [ -f $(DESTDIR)/$(sysconfdir)/syslog-ng.conf ]; then \
echo "Not overwriting existing configuration file, you might want to upgrade manually: syslog-ng.conf"; \
else \
$(install_sh_DATA) $(srcdir)/scl/syslog-ng.conf $(DESTDIR)/$(sysconfdir)/syslog-ng.conf; \
fi
$(mkinstalldirs) $(DESTDIR)/$(scldir)
if [ -f $(DESTDIR)/$(config_includedir)/scl.conf ]; then \
echo "Not overwriting existing configuration file, you might want to upgrade manually: scl.conf"; \
else \
$(install_sh_DATA) $(srcdir)/scl/scl.conf $(DESTDIR)/$(config_includedir)/scl.conf; \
fi
(cd $(srcdir)/scl; tar cf - $(SCL_SUBDIRS)) | (cd $(DESTDIR)/$(scldir) && tar xf - --no-same-owner)
chmod -R u+rwX $(DESTDIR)/$(scldir)
scl-uninstall-local:
rm -f $(DESTDIR)/$(sysconfdir)/syslog-ng.conf
rm -f $(DESTDIR)/$(config_includedir)/scl.conf
rm -rf $(DESTDIR)/$(scldir)
scl-install: scl-install-data-local
INSTALL_EXEC_HOOKS += scl-install-data-local
UNINSTALL_HOOKS += scl-uninstall-local