-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (58 loc) · 1.73 KB
/
Makefile
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
# OASIS_START
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
SETUP = ocaml setup.ml
build: setup.data
$(SETUP) -build $(BUILDFLAGS)
doc: setup.data build
$(SETUP) -doc $(DOCFLAGS)
test: setup.data build
$(SETUP) -test $(TESTFLAGS)
all:
$(SETUP) -all $(ALLFLAGS)
install: setup.data
$(SETUP) -install $(INSTALLFLAGS)
uninstall: setup.data
$(SETUP) -uninstall $(UNINSTALLFLAGS)
reinstall: setup.data
$(SETUP) -reinstall $(REINSTALLFLAGS)
clean:
$(SETUP) -clean $(CLEANFLAGS)
distclean:
$(SETUP) -distclean $(DISTCLEANFLAGS)
setup.data:
$(SETUP) -configure $(CONFIGUREFLAGS)
configure:
$(SETUP) -configure $(CONFIGUREFLAGS)
.PHONY: build doc test all install uninstall reinstall clean distclean configure
# OASIS_STOP
sys-install:
groupadd --system srsly
useradd \
--system \
--gid srsly \
--home /var/lib/srsly \
--comment "srsly daemon" \
--shell /bin/false \
srsly
install -d -m0755 /etc/srsly
install -d -m0700 /etc/srsly/srs_secrets.d
install -d -m0755 /usr/lib/srsly
install -d -m0755 /usr/sbin
install -d -m0755 /var/lib/srsly
install -d -m0755 /var/lib/srsly/dev
install -d -m0755 /var/lib/srsly/etc
install -d -m0755 /var/lib/srsly/lib
install -m0600 etc/srslyd.conf /etc/srsly/srslyd.conf
install -m0700 _build/src/srsly.native /usr/sbin/srsly
install -m0700 _build/src/srsly_milter.native /usr/lib/srsly/srsly-milter
install -m0700 _build/src/srslyd.native /usr/lib/srsly/srslyd
touch /etc/srsly/srs_secret
chown root:root /etc/srsly/srs_secret
chmod 0600 /etc/srsly/srs_secret
srsly new-secret > /etc/srsly/srs_secret
sys-uninstall:
rm -r /etc/srsly
rm -r /usr/lib/srsly
rm -r /var/lib/srsly
rm /usr/sbin/srsly
userdel srsly