diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-01 14:54:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-27 20:48:16 +0000 |
commit | 17da0af6deae5f8dc94e5dabac4e4005b02654b6 (patch) | |
tree | ba4a0a1b7e4fd9f68fbb443ee8897f5fc43f4792 /debian/rules | |
parent | Releasing debian version 1.11.1+dfsg-4. (diff) | |
download | netdata-17da0af6deae5f8dc94e5dabac4e4005b02654b6.tar.xz netdata-17da0af6deae5f8dc94e5dabac4e4005b02654b6.zip |
Moving netdata plugins to /usr/lib/netdata.
This dropps multiarch-coinstallability, however,
all but a few plugins are arch-indep anyway,
and otherwise the package splitting woudn't work.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/debian/rules b/debian/rules index 9eadb4c0b..6ba1e769a 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,5 @@ #!/usr/bin/make -f -# Find the arch we are building for, as this determines -# the location of plugins in /usr/lib -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) TOP = $(CURDIR)/debian/netdata VERSION := $(shell dpkg-parsechangelog -SVersion) @@ -17,8 +14,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -O3 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -MULTIARCH_INSTALL = debian/netdata.postinst - %: dh $@ @@ -44,12 +39,9 @@ override_dh_autoreconf_clean: dh_autoreconf_clean override_dh_auto_configure: - dh_auto_configure -- --libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH) --disable-x86-sse --enable-plugin-freeipmi --with-math - -$(MULTIARCH_INSTALL): % : %.in - sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ + dh_auto_configure -- --libdir=/usr/lib --libexecdir=/usr/lib --disable-x86-sse --enable-plugin-freeipmi --with-math -override_dh_install: $(MULTIARCH_INSTALL) +override_dh_install: # Remove unneeded .keep files find debian/tmp -name .keep -delete @@ -69,8 +61,8 @@ override_dh_fixperms-arch: # apps.plugin should only be runnable by the netdata user. It will be # given extra capabilities in the postinst script. # - chmod 0754 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/plugins.d/apps.plugin - chmod 0644 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/plugins.d/loopsleepms.sh.inc - chmod 4754 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/plugins.d/freeipmi.plugin - chmod 0644 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/charts.d/*.sh - chmod 0644 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/python.d/*.py + chmod 0754 $(TOP)/usr/lib/netdata/plugins.d/apps.plugin + chmod 0644 $(TOP)/usr/lib/netdata/plugins.d/loopsleepms.sh.inc + chmod 4754 $(TOP)/usr/lib/netdata/plugins.d/freeipmi.plugin + chmod 0644 $(TOP)/usr/lib/netdata/charts.d/*.sh + chmod 0644 $(TOP)/usr/lib/netdata/python.d/*.py |