Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4 include /usr/share/dpkg/pkg-info.mk
5
6 # Fix build on these arches (LP: #1951408) (#1000215)
7 ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf mipsel m68k sh4 hppa))
8 export DEB_CPPFLAGS_MAINT_APPEND = -DUATOMIC_NO_LINK_ERROR
9 endif
10
11 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
13 DEB_CONFIGURE_EXTRA_FLAGS := \
14 --disable-linux-io_uring --enable-firewalld --libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH) --with-mountutildir=/usr/sbin
15
16 # Disable tcmalloc due to problems with dlopen (LP: #1950777 #1951126 Debian: #999700 #999619)
17 DEB_CONFIGURE_EXTRA_FLAGS += --without-tcmalloc
18
19 %:
20 dh $@ --with python3
21
22 override_dh_install:
23 cp extras/run-gluster.tmpfiles $(CURDIR)/debian/glusterfs-server.tmpfiles
24 cp extras/systemd/glusterd.service $(CURDIR)/debian/glusterfs-server.glusterd.service
25 cp extras/systemd/glustereventsd.service $(CURDIR)/debian/glusterfs-server.glustereventsd.service
26 cp extras/systemd/gluster-ta-volume.service $(CURDIR)/debian/glusterfs-server.gluster-ta-volume.service
27 cp extras/systemd/glusterfssharedstorage.service $(CURDIR)/debian/glusterfs-server.glusterfssharedstorage.service
28 strip --remove-section=.comment --remove-section=.note --strip-unneeded \
29 debian/tmp/usr/lib/*/glusterfs/*/xlator/debug/trace.so
30 strip --remove-section=.comment --remove-section=.note --strip-unneeded \
31 debian/tmp/usr/lib/*/glusterfs/*/xlator/debug/error-gen.so
32 strip --remove-section=.comment --remove-section=.note --strip-unneeded \
33 debian/tmp/usr/lib/*/glusterfs/*/xlator/debug/io-stats.so
34 strip --remove-section=.comment --remove-section=.note --strip-unneeded \
35 debian/tmp/usr/lib/*/glusterfs/*/xlator/debug/sink.so
36 strip --remove-section=.comment --remove-section=.note --strip-unneeded \
37 debian/tmp/usr/lib/*/glusterfs/*/xlator/debug/delay-gen.so
38 find debian/tmp/usr/lib -type f -name \*.la -delete
39 dh_install
40 rm -f $(CURDIR)/debian/glusterfs-common/usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/python/syncdaemon/README.md
41 rm -rf $(CURDIR)/debian/glusterfs-common/usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/gfevents/__pycache__/
42
43 override_dh_missing:
44 dh_missing --list-missing
45
46 override_dh_clean:
47 rm -rf $(CURDIR)/libglusterfs/src/__pycache__/
48 dh_clean
49
50 override_dh_auto_configure:
51 dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
52
53 override_dh_installsystemd:
54 dh_installsystemd --no-start --no-enable --restart-after-upgrade --name=glusterd
55 dh_installsystemd --no-start --no-enable --restart-after-upgrade --name=glustereventsd
56 dh_installsystemd --no-start --no-enable --restart-after-upgrade --name=glusterfssharedstorage
57 dh_installsystemd --no-start --no-enable --restart-after-upgrade --name=gluster-ta-volume
58 dh_installsystemd --name=glusterfsd
59
60 override_dh_python3:
61 dh_python3 usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/$(DEB_VERSION_UPSTREAM)/xlator/features/glupy/
62 dh_python3 usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/python/syncdaemon/
63 dh_python3 usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/glusterfind/
64 dh_python3 usr/lib/$(DEB_HOST_MULTIARCH)/glusterfs/events/
65 dh_python3
66
67 override_dh_makeshlibs:
68 dh_makeshlibs --no-scripts -VUpstream-Version