| 1 |
# nepenthes meta-Makefile |
|---|
| 2 |
# Maximillian Dornseif |
|---|
| 3 |
# $Id$ |
|---|
| 4 |
|
|---|
| 5 |
AUTOMAKE_OPTIONS = foreign |
|---|
| 6 |
|
|---|
| 7 |
SUBDIRS = nepenthes-core modules |
|---|
| 8 |
#tools |
|---|
| 9 |
|
|---|
| 10 |
EXTRA_DIST = configure.ac CHANGES doc/README.VFS doc/logo-shaded.svg doc/nepenthes.8 conf/nepenthes.conf.dist |
|---|
| 11 |
|
|---|
| 12 |
docdir = $(prefix)/share/doc |
|---|
| 13 |
doc_DATA = doc/README.VFS doc/logo-shaded.svg |
|---|
| 14 |
|
|---|
| 15 |
#sysconf_DATA = conf/nepenthes.conf.dist |
|---|
| 16 |
|
|---|
| 17 |
AM_CXXFLAGS = '' |
|---|
| 18 |
|
|---|
| 19 |
#ifndef NDEBUG |
|---|
| 20 |
#AM_CXXFLAGS += -g |
|---|
| 21 |
#endifndef |
|---|
| 22 |
|
|---|
| 23 |
#ifdef PROFILE |
|---|
| 24 |
#AM_CXXFLAGS += -pg |
|---|
| 25 |
#endifdef |
|---|
| 26 |
|
|---|
| 27 |
# $(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf.dist |
|---|
| 28 |
|
|---|
| 29 |
install-data-local: |
|---|
| 30 |
$(mkinstalldirs) $(DESTDIR)$(sysconfdir) |
|---|
| 31 |
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/nepenthes |
|---|
| 32 |
$(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf.dist; \ |
|---|
| 33 |
if [ ! -e $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf ]; then \ |
|---|
| 34 |
$(INSTALL_DATA) $(srcdir)/conf/nepenthes.conf.dist $(DESTDIR)$(sysconfdir)/nepenthes/nepenthes.conf; \ |
|---|
| 35 |
fi |
|---|
| 36 |
# for src in `find modules -name '*.conf.dist'`; do \ |
|---|
| 37 |
# $(INSTALL_DATA) "$$src" $(DESTDIR)$(sysconfdir)/nepenthes ; \ |
|---|
| 38 |
# done |
|---|
| 39 |
for src in `find modules -name '*.conf.dist'`; do \ |
|---|
| 40 |
dst="$(DESTDIR)$(sysconfdir)/nepenthes/`basename "$$src" | perl -npe 's/\.dist$$//'`" ; \ |
|---|
| 41 |
if [ ! -e "$$dst" ] ; then \ |
|---|
| 42 |
$(INSTALL_DATA) "$$src" "$$dst" ; \ |
|---|
| 43 |
fi ; \ |
|---|
| 44 |
done |
|---|
| 45 |
|
|---|
| 46 |
$(mkinstalldirs) $(DESTDIR)$(mandir) |
|---|
| 47 |
$(mkinstalldirs) $(DESTDIR)$(mandir)/man8 |
|---|
| 48 |
$(INSTALL_DATA) $(srcdir)/doc/nepenthes.8 $(DESTDIR)$(mandir)/man8/nepenthes.8; |
|---|
| 49 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache |
|---|
| 50 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes |
|---|
| 51 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/pcap |
|---|
| 52 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/signatures |
|---|
| 53 |
|
|---|
| 54 |
$(INSTALL_DATA) modules/shellcode-signatures/shellcode-signatures.sc $(DESTDIR)$(localstatedir)/cache/nepenthes/signatures |
|---|
| 55 |
|
|---|
| 56 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool |
|---|
| 57 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes |
|---|
| 58 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes/gotek |
|---|
| 59 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes/submitpostgres |
|---|
| 60 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/log |
|---|
| 61 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/pcap |
|---|
| 62 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/binaries |
|---|
| 63 |
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/hexdumps |
|---|
| 64 |
|
|---|