]>
Commit | Line | Data |
---|---|---|
bab4b623 VJ |
1 | # not a GNU package. You can remove this line, if |
2 | # have all needed files, that a GNU package needs | |
3 | AUTOMAKE_OPTIONS = foreign 1.4 | |
52936818 | 4 | ACLOCAL_AMFLAGS = -I m4 |
25804f5a | 5 | EXTRA_DIST = ChangeLog COPYING LICENSE suricata.yaml.in \ |
99d9e095 JI |
6 | threshold.config \ |
7 | $(SURICATA_UPDATE_DIR) \ | |
a51d1f7c | 8 | lua |
a7d90162 | 9 | SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \ |
cbcbc0f6 | 10 | $(SURICATA_UPDATE_DIR) |
f7111f38 | 11 | |
50ac3e04 EL |
12 | CLEANFILES = stamp-h[0-9]* |
13 | ||
25804f5a EL |
14 | install-data-am: |
15 | @echo "Run 'make install-conf' if you want to install initial configuration files. Or 'make install-full' to install configuration and rules"; | |
16 | ||
c810748a JI |
17 | install-full: |
18 | $(MAKE) install | |
19 | $(MAKE) install-conf | |
20 | $(MAKE) install-rules | |
25804f5a EL |
21 | |
22 | install-conf: | |
2b81caf7 JI |
23 | install -d "$(DESTDIR)$(e_sysconfdir)" |
24 | @test -e "$(DESTDIR)$(e_sysconfdir)/suricata.yaml" || install -m 600 "$(top_srcdir)/suricata.yaml" "$(DESTDIR)$(e_sysconfdir)" | |
99d9e095 JI |
25 | @test -e "$(DESTDIR)$(e_sysconfdir)/classification.config" || install -m 600 "$(top_srcdir)/etc/classification.config" "$(DESTDIR)$(e_sysconfdir)" |
26 | @test -e "$(DESTDIR)$(e_sysconfdir)/reference.config" || install -m 600 "$(top_srcdir)/etc/reference.config" "$(DESTDIR)$(e_sysconfdir)" | |
2b81caf7 JI |
27 | @test -e "$(DESTDIR)$(e_sysconfdir)/threshold.config" || install -m 600 "$(top_srcdir)/threshold.config" "$(DESTDIR)$(e_sysconfdir)" |
28 | install -d "$(DESTDIR)$(e_logfilesdir)" | |
29 | install -d "$(DESTDIR)$(e_logcertsdir)" | |
30 | install -d "$(DESTDIR)$(e_rundir)" | |
31 | install -m 770 -d "$(DESTDIR)$(e_localstatedir)" | |
25804f5a EL |
32 | |
33 | install-rules: | |
03da49bf | 34 | if INSTALL_SURICATA_UPDATE |
5fbb7cef | 35 | LD_LIBRARY_PATH=$(libdir) $(DESTDIR)$(bindir)/suricata-update \ |
732ce3f1 JI |
36 | --suricata $(DESTDIR)$(bindir)/suricata \ |
37 | --suricata-conf $(DESTDIR)$(sysconfdir)/suricata/suricata.yaml \ | |
38 | --no-test --no-reload | |
39 | else | |
8cf4afab JI |
40 | @echo "error: rules not installed as suricata-update not available" |
41 | @exit 1 | |
daa9dcb7 | 42 | endif |
697e9e66 | 43 | @echo "" |
3c116653 JI |
44 | @echo "You can now start suricata by running as root something like:" |
45 | @echo " $(DESTDIR)$(bindir)/suricata -c $(DESTDIR)$(e_sysconfdir)suricata.yaml -i eth0" | |
697e9e66 VJ |
46 | @echo "" |
47 | @echo "If a library like libhtp.so is not found, you can run suricata with:" | |
3c116653 JI |
48 | @echo " LD_LIBRARY_PATH="$(DESTDIR)$(prefix)/lib" "$(DESTDIR)$(bindir)/suricata" -c "$(DESTDIR)$(e_sysconfdir)suricata.yaml" -i eth0" |
49 | @echo "" | |
50 | @echo "The Emerging Threats Open rules are now installed. Rules can be" | |
51 | @echo "updated and managed with the suricata-update tool." | |
52 | @echo "" | |
53 | @echo "For more information please see:" | |
54 | @echo " https://suricata.readthedocs.io/en/latest/rule-management/index.html" | |
697e9e66 | 55 | @echo "" |