CDBS was the "most" compatible but is dropped in Ubuntu 26.04 and now in
Debian too. Switch to Debhelper 9. Keep autotools-dev (dh-autoreconf is
"too" recent). dh-systemd may not be available (require debhelper >=
9.
20160709).
Priority: optional
Maintainer: Vincent Bernat <bernat@debian.org>
Build-Depends: debhelper (>= 9),
- cdbs,
autotools-dev,
- dh-autoreconf,
libsnmp-dev,
libxml2-dev,
libevent-dev (>= 2.0.5),
debian/tmp/usr/include/*.h
debian/tmp/usr/include/*.hpp
-debian/tmp/usr/lib/*.so
-debian/tmp/usr/lib/*.a
-debian/tmp/usr/lib/pkgconfig/*.pc
+debian/tmp/usr/lib/*/*.so
+debian/tmp/usr/lib/*/*.a
+debian/tmp/usr/lib/*/pkgconfig/*.pc
debian/tmp/lib/systemd/system/lldpd.service
-debian/tmp/usr/lib/*.so.*
+debian/tmp/usr/lib/*/*.so.*
debian/tmp/usr/share/man/man8/*
debian/tmp/usr/sbin/lldp*
debian/tmp/usr/share/bash-completion/completions/*
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/autoreconf.mk
-include /usr/share/cdbs/1/class/autotools.mk
+DH_WITH = $(if $(wildcard /usr/bin/dh_systemd_enable),--with systemd)
-DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml --enable-pie
-DEB_CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system
+%:
+ dh $@ $(DH_WITH)
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --with-snmp \
+ --with-xml \
+ --enable-pie \
+ --with-systemdsystemunitdir=/lib/systemd/system