]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/libvirt
{libvirt,qemu,samba}: Bump package versions for glibc changes
[ipfire-2.x.git] / lfs / libvirt
CommitLineData
272ac1b4
JS
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
e22b4257 4# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
272ac1b4
JS
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
25include Config
26
f15707c7
RR
27SUMMARY = Server side daemon and supporting files for libvirt
28
084bd67b 29VER = 7.10.0
272ac1b4
JS
30
31THISAPP = libvirt-$(VER)
d996e17a 32DL_FILE = $(THISAPP).tar.xz
272ac1b4
JS
33DL_FROM = $(URL_IPFIRE)
34DIR_APP = $(DIR_SRC)/$(THISAPP)
35TARGET = $(DIR_INFO)/$(THISAPP)
e22b4257 36SUP_ARCH = x86_64 aarch64
272ac1b4 37PROG = libvirt
a15a7582 38PAK_VER = 29
272ac1b4 39
0216f1ec 40DEPS = ebtables libpciaccess libtirpc libyajl ncat qemu
272ac1b4 41
f15707c7
RR
42SERVICES = libvirtd virtlogd
43
272ac1b4
JS
44###############################################################################
45# Top-level Rules
46###############################################################################
47
48objects = $(DL_FILE)
49
50$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
51
9a7e4d85 52$(DL_FILE)_BLAKE2 = 6cb2ab5913d382b11d24b46154dc3250355050cd3038f64ba571b35f33ae5bd0a322d4b96469bd6c78fd848c87f2e6fc7213c33e5bdb9d375a9b81d2a40899bb
272ac1b4
JS
53
54install : $(TARGET)
55check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56
57download :$(patsubst %,$(DIR_DL)/%,$(objects))
58
9a7e4d85 59b2 : $(subst %,%_BLAKE2,$(objects))
272ac1b4 60
66c36198 61dist:
272ac1b4
JS
62 $(PAK)
63
64###############################################################################
9a7e4d85 65# Downloading, checking, b2sum
272ac1b4
JS
66###############################################################################
67
68$(patsubst %,$(DIR_CHK)/%,$(objects)) :
69 @$(CHECK)
70
71$(patsubst %,$(DIR_DL)/%,$(objects)) :
72 @$(LOAD)
73
9a7e4d85
PM
74$(subst %,%_BLAKE2,$(objects)) :
75 @$(B2SUM)
272ac1b4
JS
76
77###############################################################################
78# Installation Details
79###############################################################################
80
81$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
82 @$(PREBUILD)
d996e17a 83 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar Jxf $(DIR_DL)/$(DL_FILE)
196cdada 84
272ac1b4 85 cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libvirt/0001-Change-default-behavior-of-libvirt-guests.sh-for-IPF.patch
34097d0b 86 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/libvirt-7.10.0-fix-glibc-headers.patch
196cdada 87
084bd67b 88 cd $(DIR_APP) && meson \
196cdada
MF
89 --prefix=/usr \
90 --localstatedir=/var \
91 --sysconfdir=/etc \
084bd67b
AB
92 -D docs=disabled \
93 -D sasl=disabled \
94 -D driver_vbox=disabled \
95 -D driver_lxc=disabled \
96 -D driver_esx=disabled \
97 -D driver_vmware=disabled \
98 -D driver_openvz=disabled \
99 -D firewalld=disabled \
100 -D driver_network=disabled \
101 -D driver_interface=enabled \
102 -D wireshark_dissector=disabled \
103 -D nls=disabled \
104 -D tests=disabled \
105 -D qemu_user=nobody \
106 -D qemu_group=kvm \
107 -D storage_dir=enabled \
108 -D storage_fs=enabled \
109 -D storage_lvm=enabled \
110 -D storage_iscsi=disabled \
111 -D storage_scsi=disabled \
112 -D storage_mpath=disabled \
113 -D storage_disk=disabled \
114 -D storage_rbd=disabled \
115 -D storage_sheepdog=disabled \
116 -D storage_gluster=disabled \
117 -D storage_zfs=disabled \
118 builddir/
119 cd $(DIR_APP) && ninja -C builddir/ $(MAKETUNING) $(EXTRA_MAKE)
120 cd $(DIR_APP) && ninja -C builddir/ install
196cdada 121
c8b7d517 122 #install initscripts
f15707c7 123 @$(call INSTALL_INITSCRIPTS,$(SERVICES))
272ac1b4 124 mv /usr/libexec/libvirt-guests.sh /etc/rc.d/init.d/libvirt-guests
196cdada 125
3a4a8b05
JS
126 # Backup
127 install -v -m 644 $(DIR_SRC)/config/backup/includes/libvirt /var/ipfire/backup/addons/includes/libvirt
196cdada 128
3e5d4e6f
JS
129 # Install libvirtd.conf
130 cp -fv $(DIR_SRC)/config/libvirt/libvirtd.conf /etc/libvirt
272ac1b4
JS
131 @rm -rf $(DIR_APP)
132 @$(POSTBUILD)