-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
47 lines (41 loc) · 957 Bytes
/
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
SUBDIRS = lib
SNIFD_CFILES = snifd/listen.c \
snifd/sock.c \
snifd/port.c \
snifd/host.c \
snifd/buf.c \
snifd/ctl.c \
snifd/cln.c \
snifd/srv.c \
snifd/fifo.c \
snifd/abuse.c \
snifd/watch.c \
snifd/fwd.c \
snifd/util.c \
snifd/jTree.c \
snifd/help.c \
snifd/snifd.c
SNIFD_HFILES = snifd/listen.h \
snifd/sock.h \
snifd/port.h \
snifd/host.h \
snifd/buf.h \
snifd/ctl.h \
snifd/cln.h \
snifd/srv.h \
snifd/fifo.h \
snifd/abuse.h \
snifd/watch.h \
snifd/fwd.h \
snifd/util.h \
snifd/jTree.h \
snifd/help.h
bin_PROGRAMS = snifd/snifd
bin_SCRIPTS = bin/snif-conn
snifd_snifd_LDADD = lib/libsnif.la -lssl -lcrypto
snifd_snifd_SOURCES = $(SNIFD_CFILES) $(SNIFD_HFILES)
snifd_etcdir = /etc/snif
install-data-hook:
[ -d $(snifd_etcdir) ] || ( ( useradd -U snif || true ) && mkdir -m 02750 $(snifd_etcdir) && chown snif:snif $(snifd_etcdir) )
cp -n etc/snif.conf $(snifd_etcdir)/
[ -d /lib/systemd/system ] && cp etc/systemd/* /lib/systemd/system || true