I built Kamailio 6.1 using trixie Debian dir. I modified rules (below) by adding to modules to EXCLUDED_MODULES and using empty PACKAGE_GROUPS and EXTRA_GROUPS.
Build went fine, but when I installed the package, I got systemctl error:
# dpkg -i kamailio_6.1.1_amd64.deb Selecting previously unselected package kamailio. (Reading database ... 296773 files and directories currently installed.) Preparing to unpack kamailio_6.1.1_amd64.deb ... Unpacking kamailio (6.1.1) ... Setting up kamailio (6.1.1) ... Created symlink '/etc/systemd/system/multi-user.target.wants/kamailio.service' → '/usr/lib/systemd/system/kamailio.service'. Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 148. Processing triggers for man-db (2.13.1-1) ...
-- Juha
---------------------- rules
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode. #export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk include /usr/share/dpkg/pkg-info.mk
# Enable parallel builds. NUMJOBS = 1 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif
export RADCLI=1 export WOLFSSL_INTERNAL=no # tlsa export KTLS_INCLUDE_TLSA=yes export LIBSSL_STATIC_SRCLIB=yes export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
# Modules not in the "main" kamailio package: EXCLUDED_MODULES = EXCLUDED_MODULES += mono geoip dnssec java berkeley acc_diameter app_jsdt auth_diameter auth_xkeys benchmark blst call_control call_obj carrierroute alias_db app_lua cfg_db cfgt counters crypto db_cluster db_flatstore db_text db2_ops debugger dialog diversion dlgs dmq dmq_usrloc domainpolicy drouting evrexec exec file_out group imc influxdbc json jsonrpcc jsonrpcs keepalive kemix log_custom log_systemd lost lrkproxy lwsc mangler math matrix mediaproxy memcached mohqueue mqueue msrp nat_traversal nosip p_usrloc pdb pdt peerstate pipelimit posops prefix_route ptimer pua_json pv_headers pvtpl qos ratelimit regex rtjson rtpproxy sca seas secfilter sipcapture sipjson siprepo sipt slack sms smsops speeddial ss7ops sst statistics statsc statsd sworker systemdops textopsx timer tlsa tmrec topoh topos topos_htable tsilo uac uid_auth_db uid_avp_db uid_domain uid_gflags uid_uri_db uri_db userblocklist xhttp_prom xhttp_rpc xprint
# Extra modules to skip, because they are not compilable now: # - regardless if they go to the main kamailio package or to some module # package, they will be excluded from compile and install of all. EXTRA_EXCLUDED_MODULES += bdb EXTRA_EXCLUDED_MODULES += oracle EXTRA_EXCLUDED_MODULES += pa EXTRA_EXCLUDED_MODULES += iptrtpproxy EXTRA_EXCLUDED_MODULES += python ## --EXCLUDED--
# Module groups that are packaged in separate packages (with the name # kamailio-$(group_name)-modules). # Note: the order is important (should be in dependency order, the one # on which other depend first) PACKAGE_GROUPS =
# Module groups to be packaged onto kamailio-extra-modules. EXTRA_GROUPS =
INSTALL_MODULES := $(addprefix install_, $(PACKAGE_GROUPS))
# https://wiki.debian.org/ReproducibleBuilds/ export DEB_CFLAGS_MAINT_APPEND=-DVERSION_NODATE
.PHONY: skip-modules $(INSTALL_MODULES) skip-modules: @echo "$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)"
%: dh $@ --buildsystem=cmake
override_dh_auto_configure: dh_auto_configure -- \ -DBUILD_DOC=ON \ -DUSE_GIT=OFF \ -DEXCLUDE_MODULES="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \ -DMODULE_GROUP_NAME="KSTANDARD $(shell echo "$(addprefix K, $(PACKAGE_GROUPS) $(EXTRA_GROUPS))"| tr '[:lower:]' '[:upper:]')"
execute_after_dh_auto_build: cmake --build "obj-${DEB_HOST_GNU_TYPE}" -t dbschema
override_dh_auto_test: