]>
Commit | Line | Data |
---|---|---|
6d4a602f | 1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
201e5f68 | 4 | # Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> # |
6d4a602f | 5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
201e5f68 | 27 | VER = stable-11.3.0 |
6d4a602f | 28 | |
29 | THISAPP = open-vm-tools-$(VER) | |
30 | DL_FILE = $(THISAPP).tar.gz | |
31 | DL_FROM = $(URL_IPFIRE) | |
201e5f68 | 32 | DIR_APP = $(DIR_SRC)/$(THISAPP)/open-vm-tools |
6d4a602f | 33 | TARGET = $(DIR_INFO)/$(THISAPP) |
6cf219c4 | 34 | SUP_ARCH = x86_64 |
6d4a602f | 35 | PROG = openvmtools |
201e5f68 | 36 | PAK_VER = 8 |
17cd1141 | 37 | |
bf6c7007 | 38 | DEPS = libtirpc |
6d4a602f | 39 | |
103e2dfa MT |
40 | CFLAGS += -Wno-error=array-bounds |
41 | ||
6d4a602f | 42 | ############################################################################### |
43 | # Top-level Rules | |
44 | ############################################################################### | |
45 | ||
46 | objects = $(DL_FILE) | |
47 | ||
48 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
49 | ||
201e5f68 | 50 | $(DL_FILE)_MD5 = 9b138316060f6ae39f58f7377caea31d |
6d4a602f | 51 | |
52 | install : $(TARGET) | |
53 | ||
54 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
55 | ||
56 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
57 | ||
58 | md5 : $(subst %,%_MD5,$(objects)) | |
59 | ||
60 | dist: | |
61 | @$(PAK) | |
62 | ############################################################################### | |
63 | # Downloading, checking, md5sum | |
64 | ############################################################################### | |
65 | ||
66 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
67 | @$(CHECK) | |
68 | ||
69 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
70 | @$(LOAD) | |
71 | ||
72 | $(subst %,%_MD5,$(objects)) : | |
73 | @$(MD5) | |
74 | ||
75 | ############################################################################### | |
76 | # Installation Details | |
77 | ############################################################################### | |
78 | ||
79 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
80 | @$(PREBUILD) | |
81 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) | |
201e5f68 | 82 | cd $(DIR_APP) && autoreconf -vfi |
8f6e4eaf MF |
83 | cd $(DIR_APP) && ./configure \ |
84 | --prefix=/usr \ | |
a2359cc0 | 85 | --sysconfdir=/etc \ |
8f6e4eaf | 86 | --with-kernel-release=$(KVER)-ipfire \ |
a2359cc0 | 87 | --without-ssl \ |
8f6e4eaf MF |
88 | --without-pam \ |
89 | --without-gtk2 \ | |
90 | --without-gtkmm \ | |
8f6e4eaf MF |
91 | --without-icu \ |
92 | --without-x \ | |
93 | --with-linuxdir=/usr/src/linux \ | |
94 | --without-kernel-modules \ | |
95 | --disable-deploypkg \ | |
96 | --without-xerces | |
97 | ||
6d4a602f | 98 | cd $(DIR_APP) && make $(MAKETUNING) |
99 | cd $(DIR_APP) && make install | |
a2359cc0 | 100 | |
f22bfcf4 JS |
101 | #install initscripts |
102 | $(call INSTALL_INITSCRIPT,openvmtools) | |
6d4a602f | 103 | ln -sf ../init.d/openvmtools /etc/rc.d/rc3.d/S60openvmtools |
104 | ln -sf ../init.d/openvmtools /etc/rc.d/rc0.d/K01openvmtools | |
105 | ln -sf ../init.d/openvmtools /etc/rc.d/rc6.d/K01openvmtools | |
a2359cc0 | 106 | rm -rvf /usr/share/openvmtools |
6d4a602f | 107 | |
108 | @rm -rf $(DIR_APP) | |
109 | @$(POSTBUILD) |