/
Makefile.in
81 lines (66 loc) · 2.48 KB
/
Makefile.in
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
75
76
77
78
79
80
81
#
# This file is used as the template to create the
# Makefile for the SUSE specific installation.
#
#
# for Bareos release @VERSION@ (@DATE@) -- @DISTNAME@
#
@MCOMMON@
FIREWALL_DIR = /etc/sysconfig/SuSEfirewall2.d/services/
nothing:
install: install-autostart install-firewall install_logrotate
install_logrotate:
@$(MKDIR) $(DESTDIR)/etc/logrotate.d
@$(INSTALL_DATA) ../../scripts/logrotate $(DESTDIR)/etc/logrotate.d/bareos-dir
install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
install-firewall: install-firewall-fd install-firewall-sd install-firewall-dir
install-firewall-fd:
@$(MKDIR) $(DESTDIR)/$(FIREWALL_DIR)
@$(INSTALL_DATA) bareos-fd.fw $(DESTDIR)/$(FIREWALL_DIR)/bareos-fd
install-firewall-sd:
@$(MKDIR) $(DESTDIR)/$(FIREWALL_DIR)
@$(INSTALL_DATA) bareos-sd.fw $(DESTDIR)/$(FIREWALL_DIR)/bareos-sd
install-firewall-dir:
@$(MKDIR) $(DESTDIR)/$(FIREWALL_DIR)
@$(INSTALL_DATA) bareos-dir.fw $(DESTDIR)/$(FIREWALL_DIR)/bareos-dir
install-autostart-fd:
@if test x$(DESTDIR) = x -a -f /etc/init.d/bareos-fd; then \
/sbin/chkconfig --del bareos-fd; \
fi
@$(MKDIR) $(DESTDIR)/etc/init.d
@$(INSTALL_PROGRAM) bareos-fd $(DESTDIR)/etc/init.d/bareos-fd
@$(SYMLINK) ../../etc/init.d/bareos-fd $(DESTDIR)$(sbindir)/rcbareos-fd
# set symlinks for script at startup and shutdown
@if test x$(DESTDIR) = x ; then \
/sbin/chkconfig --add bareos-fd; \
fi
install-autostart-sd:
@if test x$(DESTDIR) = x -a -f /etc/init.d/bareos-sd; then \
/sbin/chkconfig --del bareos-sd; \
fi
@$(MKDIR) $(DESTDIR)/etc/init.d
@$(INSTALL_PROGRAM) bareos-sd $(DESTDIR)/etc/init.d/bareos-sd
@$(SYMLINK) ../../etc/init.d/bareos-sd $(DESTDIR)$(sbindir)/rcbareos-sd
# set symlinks for script at startup and shutdown
@if test x$(DESTDIR) = x ; then \
/sbin/chkconfig --add bareos-sd; \
fi
install-autostart-dir:
@if test x$(DESTDIR) = x -a -f /etc/init.d/bareos-dir; then \
/sbin/chkconfig --del bareos-dir; \
fi
@$(MKDIR) $(DESTDIR)/etc/init.d
@$(INSTALL_PROGRAM) bareos-dir $(DESTDIR)/etc/init.d/bareos-dir
@$(SYMLINK) ../../etc/init.d/bareos-dir $(DESTDIR)$(sbindir)/rcbareos-dir
# set symlinks for script at startup and shutdown
@if test x$(DESTDIR) = x ; then \
/sbin/chkconfig --add bareos-dir; \
fi
clean:
@$(RMF) 1 2 3
distclean: clean
@$(RMF) Makefile bareos-*.spec bareos.*.spec bareos.spec
@$(RMF) bareos-sd bareos-fd bareos-dir
devclean: clean
@$(RMF) Makefile bareos-*.spec bareos.*.spec bareos.spec
@$(RMF) bareos-sd bareos-fd bareos-dir