summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules37
2 files changed, 1 insertions, 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 <lhw@ring0.de>,
Federico Ceratto <federico@debian.org>,
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