-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathMakefile.am
31 lines (29 loc) · 1.03 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
## Makefile.am -- Process this file with automake to produce Makefile.in
SUBDIRS = src usr etc
EXTRA_DIST = examples tools test etc
install-exec-hook:
id gstreamill || test "$$?" -eq 9 || { \
useradd gstreamill; \
}
usermod -a -G video,audio gstreamill;
chown root:gstreamill $(bindir)/gstreamill
chmod u+s $(bindir)/gstreamill
test -s /var/lib/gstreamill || { \
mkdir -p /var/lib/gstreamill; \
chown -R root:gstreamill /var/lib/gstreamill; \
chmod -R g+w /var/lib/gstreamill; \
}
test -s /var/log/gstreamill || { \
mkdir -p /var/log/gstreamill; \
}
chown -R root:gstreamill /var/log/gstreamill;
chmod -R g+w /var/log/gstreamill;
test -s /usr/share/gstreamill && { \
chown -R root:gstreamill /usr/share/gstreamill; \
chmod -R g+w /usr/share/gstreamill; \
}
test -s /usr/lib/systemd/system/gstreamill.service && { \
systemctl enable gstreamill; \
install -c -m 755 tools/cleangstmill.sh '$(bindir)/cleangstmill.sh'; \
install -c -m 755 tools/startjobs.sh '$(bindir)/startjobs.sh'; \
} || true