-
Notifications
You must be signed in to change notification settings - Fork 329
/
Makefile.am
51 lines (43 loc) · 1.75 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
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS=foreign
SUBDIRS=safe_c_stub lib bin
joy_api:
(doxygen Doxyfile)
joy_test:
test/run_tests.py
bin/unit_test
test/run_tests.py
clean_make:
rm lib/Makefile
rm bin/Makefile
echo "You must rerun configure"
install-data-hook:
# mkdir -p $(DESTDIR)/etc/init.d
# cp install_joy/joy.rc $(DESTDIR)/etc/init.d/joy
mkdir -p $(DESTDIR)/usr/lib/systemd/system
cp install_joy/joy.service $(DESTDIR)/usr/lib/systemd/system
mkdir -p $(DESTDIR)/etc/systemd/system/joy.service.d
cp install_joy/joy-accounting.conf $(DESTDIR)/etc/systemd/system/joy.service.d/20-accounting.conf
mkdir -p $(DESTDIR)/$(prefix)/var/log
mkdir -p $(DESTDIR)/$(prefix)/var/joy
mkdir -p $(DESTDIR)/$(prefix)/etc/joy
mkdir -p $(DESTDIR)/etc/logrotate.d
cp install_joy/joy.logrotate $(DESTDIR)/etc/logrotate.d/joy
chmod 644 $(DESTDIR)/etc/logrotate.d/joy
mkdir -p $(DESTDIR)/$(prefix)/share/joy
mkdir -p $(DESTDIR)/$(prefix)/share/man
mkdir -p $(DESTDIR)/$(prefix)/share/man/man1
cp doc/joy.1 $(DESTDIR)/$(prefix)/share/man/man1
cp sleuth $(DESTDIR)/$(prefix)/bin
cp resources/tls_fingerprint.json $(DESTDIR)/$(prefix)/etc/joy
cp install_joy/options.cfg $(DESTDIR)/$(prefix)/etc/joy
cp internal.net $(DESTDIR)/$(prefix)/etc/joy
mkdir -p $(DESTDIR)/$(prefix)/include/joy
# SLEUTHVER= grep version setup.py | awk -F\' '{print $2}'
(cd sleuth_pkg && python setup.py bdist --format=gztar)
# SLEUTHFILE="dist/sleuth-${SLEUTHVER}.linux-${build_cpu}.tar.gz"
SLEUTHFILE="sleuth_pkg/dist/sleuth-1.0.linux-${build_cpu}.tar.gz"
tar -xf $(SLEUTHFILE) -C $(DESTDIR)
EXTRA_DIST=internal.net build_pkg install_joy test sleuth_pkg rpm examples.sh \
config.sh compact_bd.txt Makefile.joy sleuth Makefile.joy src/Makefile.joy doc \
resources fingerprinting VERSION