/
Makefile.in
79 lines (62 loc) · 3.14 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
#
# This file is used as the template to create the
# Makefile for the Univention specific installation.
# Univention is based on Debian,
# therefore it also calls the Debian Makefile
#
# for Bareos release @VERSION@ (@DATE@) -- @DISTNAME@
#
@MCOMMON@
all:
(cd ../debian; $(MAKE) $@;)
$(MKDIR) ../../conffiles/
cp -r conffiles/. ../../conffiles/.
(cd ../..; platforms/univention/create_ucs_template_files.sh conffiles/)
# remove autoconf template files
find ../../conffiles/ -name "*.in" -exec rm {} \;
@$(MKDIR) ../../AppCenter/
$(INSTALL_DATA) AppCenter/univention-bareos.ini ../../AppCenter/
$(INSTALL_DATA) AppCenter/LICENSE_AGREEMENT ../../AppCenter/
$(INSTALL_DATA) AppCenter/README ../../AppCenter/
$(INSTALL_DATA) AppCenter/README_DE ../../AppCenter/
$(INSTALL_DATA) AppCenter/bareos-webui_screenshot.png ../../AppCenter/
$(INSTALL_DATA) ../../src/images/bareos-logo.svg ../../AppCenter/
$(INSTALL_DATA) ../../src/images/bareos-logo-full.svg ../../AppCenter/
# disabled. use static release key
#sh get_bareos_release_key.sh bareos-com-release.key
install:
(cd ../debian; $(MAKE) $@;)
@echo "generating Univention Config Registry (UCR) files ..."
(cd ../..; univention-install-config-registry)
@$(MKDIR) $(DESTDIR)/etc/bareos/autogenerated/fd-configs/
@$(INSTALL_CONFIG) fd-windows.template $(DESTDIR)/etc/bareos/autogenerated/fd-configs/windows.template
@$(INSTALL_CONFIG) fd-generic.template $(DESTDIR)/etc/bareos/autogenerated/fd-configs/generic.template
@$(MKDIR) $(DESTDIR)/etc/bareos/autogenerated/fd-secrets/
@$(MKDIR) $(DESTDIR)/etc/bareos/autogenerated/clients/
@$(INSTALL_CONFIG) job-windows.template $(DESTDIR)/etc/bareos/autogenerated/clients/windows.template
@$(INSTALL_CONFIG) job-generic.template $(DESTDIR)/etc/bareos/autogenerated/clients/generic.template
@$(MKDIR) $(DESTDIR)/etc/cron.d/
@$(INSTALL_CONFIG) univention-bareos.cron $(DESTDIR)/etc/cron.d/univention-bareos
@$(MKDIR) $(DESTDIR)/usr/lib/univention-directory-listener/system
@$(INSTALL_PROGRAM) univention-bareos.py $(DESTDIR)/usr/lib/univention-directory-listener/system
@$(MKDIR) $(DESTDIR)/usr/lib/univention-install/
@$(INSTALL_PROGRAM) 62univention-bareos.inst $(DESTDIR)/usr/lib/univention-install/
@$(MKDIR) $(DESTDIR)/usr/lib/univention-uninstall/
@$(INSTALL_PROGRAM) 63univention-bareos.uinst $(DESTDIR)/usr/lib/univention-uninstall/
@$(MKDIR) $(DESTDIR)/usr/share/univention-bareos/
@$(INSTALL_PROGRAM) restart_director $(DESTDIR)/usr/share/univention-bareos/
@$(INSTALL_CONFIG) univention-bareos.schema $(DESTDIR)/usr/share/univention-bareos/
@$(MKDIR) $(DESTDIR)/etc/univention/templates/scripts/etc/bareos/
@$(INSTALL_PROGRAM) bareos-dir.conf $(DESTDIR)/etc/univention/templates/scripts/etc/bareos/
@$(INSTALL_CONFIG) bareos-com-release.key $(DESTDIR)/etc/bareos/
clean:
(cd ../debian; $(MAKE) $@;)
@$(RMF) 1 2 3
distclean: clean
(cd ../debian; $(MAKE) $@;)
@$(RMF) Makefile
devclean: clean
(cd ../debian; $(MAKE) $@;)
@$(RMF) Makefile
%:
(cd ../debian; $(MAKE) $@;)