From 263592886b72e6975253530f3a13681c33cab93e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 13:39:22 +0200 Subject: Updating packaging for upstreams move to cmake. Signed-off-by: Daniel Baumann --- debian/control | 1 + debian/rules | 37 ------------------------------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/debian/control b/debian/control index 9971c948e..f17aa9527 100644 --- a/debian/control +++ b/debian/control @@ -6,6 +6,7 @@ Uploaders: Lennart Weller , Federico Ceratto , Build-Depends: + cmake, debhelper-compat (= 13), dh-apache2, libcap-dev, diff --git a/debian/rules b/debian/rules index 7a5329089..02fc058e1 100755 --- a/debian/rules +++ b/debian/rules @@ -2,13 +2,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all -VERSION := $(shell dpkg-parsechangelog -SVersion) - -VERSION_MAJOR := $(word 1, $(subst ., ,$(VERSION))) -VERSION_MINOR := $(word 2, $(subst ., ,$(VERSION))) -VERSION_FIX := $(word 3, $(subst -, ,$(subst ., ,$(VERSION)))) -VERSION_SUFFIX := -$(word 4, $(subst -, ,$(subst ., ,$(VERSION)))) - include /usr/share/dpkg/architecture.mk ifeq ($(DEB_HOST_ARCH),s390x) @@ -22,36 +15,6 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: dh ${@} --with apache2 -execute_before_dh_autoreconf: - rm -f debian/configure.ac.orig - cp configure.ac debian/configure.ac.orig - - sed -i -e 's/^\(define(\[VERSION_MAJOR]\).*/\1, [$(VERSION_MAJOR)])/' \ - -e 's/^\(define(\[VERSION_MINOR]\).*/\1, [$(VERSION_MINOR)])/' \ - -e 's/^\(define(\[VERSION_FIX]\).*/\1, [$(VERSION_FIX)])/' \ - -e 's/^\(define(\[VERSION_SUFFIX]\).*/\1, [$(VERSION_SUFFIX)])/' \ - configure.ac - -execute_before_dh_autoreconf_clean: - if [ -e debian/configure.ac.orig ]; \ - then \ - rm -f configure.ac; \ - mv debian/configure.ac.orig configure.ac; \ - fi - -override_dh_auto_configure: - dh_auto_configure -- \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --disable-cloud \ - --disable-exporting-prometheus-remote-write \ - --enable-dbengine \ - --enable-https \ - --enable-plugin-cups \ - --enable-plugin-nfacct \ - --enable-x86-sse \ - --with-math - execute_after_dh_auto_install: # Removing unused files rm -f debian/tmp/etc/netdata/.install-type -- cgit v1.2.3